Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002343/0.00235, allocations: 185.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001137/0.001136, allocations: 89.61 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00038/0.00038, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.333, allocations: 47.58 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.4646, allocations: 80.48 MB / 455.1 MB, free: 268 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.4649, allocations: 67.97 kB / 455.2 MB, free: 200 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03236/0.4973, allocations: 6.744 MB / 461.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4973, allocations: 0 / 461.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.374e-05/0.4974, allocations: 12 kB / 461.9 MB, free: 9.426 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.003159/0.5006, allocations: 0.694 MB / 462.6 MB, free: 8.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.768e-05/0.5007, allocations: 8.031 kB / 462.6 MB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003126/0.501, allocations: 79.44 kB / 462.7 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.5012, allocations: 43.53 kB / 462.8 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007972/0.502, allocations: 289.4 kB / 463 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.968e-05/0.5021, allocations: 32.95 kB / 463.1 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.5024, allocations: 39.91 kB / 463.1 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/0.5046, allocations: 430.3 kB / 463.5 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.034e-05/0.5047, allocations: 3.984 kB / 463.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.5049, allocations: 16 kB / 463.6 MB, free: 7.703 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.5049, allocations: 8 kB / 463.6 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002668/0.5076, allocations: 435.7 kB / 464 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006794/0.5144, allocations: 1.309 MB / 465.3 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002111/0.5166, allocations: 372.6 kB / 465.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003628/0.517, allocations: 8.422 kB / 465.7 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/0.5171, allocations: 39 kB / 465.7 MB, free: 5.461 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 6.212e-06/0.5171, allocations: 0 / 465.7 MB, free: 5.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.01475/0.5319, allocations: 2.296 MB / 468 MB, free: 3.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.532, allocations: 59.84 kB / 468.1 MB, free: 2.961 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004973/0.5325, allocations: 201.8 kB / 468.3 MB, free: 2.762 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002049/0.5328, allocations: 45.7 kB / 468.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.533, allocations: 223.2 kB / 468.5 MB, free: 2.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.5334, allocations: 181.6 kB / 468.7 MB, free: 2.309 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.5336, allocations: 12 kB / 468.7 MB, free: 2.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.5338, allocations: 326.8 kB / 469 MB, free: 1.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.5352, allocations: 221 kB / 469.2 MB, free: 1.754 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.5367, allocations: 288.6 kB / 469.5 MB, free: 1.453 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.5379, allocations: 186.1 kB / 469.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.942e-06/0.5379, allocations: 0 / 469.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005064/0.543, allocations: 0.743 MB / 470.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.5431, allocations: 4 kB / 470.5 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-05/0.5432, allocations: 4.125 kB / 470.5 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002724/0.5459, allocations: 455.2 kB / 470.9 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.5469, allocations: 79.83 kB / 471 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006753/0.5536, allocations: 3.397 MB / 474.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.5553, allocations: 104.2 kB / 474.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.5555, allocations: 23.98 kB / 474.5 MB, free: 12.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0005734/0.5561, allocations: 169.6 kB / 474.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.5563, allocations: 31.62 kB / 474.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/0.5611, allocations: 0.7654 MB / 475.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.991e-05/0.5612, allocations: 7.938 kB / 475.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.5613, allocations: 0 / 475.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/0.5613, allocations: 11.97 kB / 475.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005439/0.5668, allocations: 1.206 MB / 476.7 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.5669, allocations: 3.984 kB / 476.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009126/0.5678, allocations: 55.91 kB / 476.7 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002489/0.5703, allocations: 434.2 kB / 477.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.5705, allocations: 19.97 kB / 477.2 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006274/0.5768, allocations: 3.372 MB / 480.6 MB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/0.5769, allocations: 4.062 kB / 480.6 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005051/0.582, allocations: 0.9771 MB / 481.5 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.5824, allocations: 152.7 kB / 481.7 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.5825, allocations: 16 kB / 481.7 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009388/0.5835, allocations: 111.8 kB / 481.8 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003685/0.5838, allocations: 108.2 kB / 481.9 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.914e-05/0.5839, allocations: 23.97 kB / 481.9 MB, free: 4.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002728/0.5842, allocations: 169.9 kB / 482.1 MB, free: 4.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5842, allocations: 4 kB / 482.1 MB, free: 4.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007634/0.585, allocations: 127.9 kB / 482.2 MB, free: 3.984 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.003915/0.5889, allocations: 1.549 MB / 483.8 MB, free: 2.395 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.5916, allocations: 0.8251 MB / 484.6 MB, free: 1.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.5917, allocations: 7.938 kB / 484.6 MB, free: 1.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.5932, allocations: 0.5214 MB / 485.1 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006856/0.5939, allocations: 52.47 kB / 485.2 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009012/0.6029, allocations: 3.523 MB / 488.7 MB, free: 13.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.6035, allocations: 0.8113 MB / 489.5 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.6038, allocations: 107.4 kB / 489.6 MB, free: 12.37 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6038, allocations: 0 / 489.6 MB, free: 12.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.954/3.558, allocations: 9.964 MB / 499.6 MB, free: 2.406 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat