Ticket #4229: readBB.mos

File readBB.mos, 439 bytes (added by Bernhard Thiele, 8 years ago)
Line 
1print("Deleting tmp files from previous runs");
2system("rm -rf *.h *.o *.o *.json *.xml *.libs *.log *.makefile DrumBoiler_* sources binaries");
3
4bb_fmu_file_path := realpath("BouncingBall.fmu");
5print("Reading BouncingBall FMU from " + bb_fmu_file_path);
6imported_fmu_mo_file := importFMU("BouncingBall.fmu");
7loadFile(imported_fmu_mo_file);
8print("Simulating loaded FMU");
9simulate(BouncingBall_me_FMU, stopTime=3.0,outputFormat="csv");