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.002696/0.002695, allocations: 179 kB / 8.364 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 86.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.515e-05/2.507e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3489, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4944, allocations: 79.74 MB / 442.2 MB, free: 6.492 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.4947, allocations: 70.67 kB / 442.2 MB, free: 6.426 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03273/0.5275, allocations: 6.668 MB / 448.9 MB, free: 15.8 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5276, allocations: 4 kB / 448.9 MB, free: 15.8 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.386e-05/0.5276, allocations: 12 kB / 448.9 MB, free: 15.79 MB / 347.1 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.002228/0.5298, allocations: 0.6629 MB / 449.6 MB, free: 15.07 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.5299, allocations: 8.031 kB / 449.6 MB, free: 15.07 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002303/0.5302, allocations: 43.44 kB / 449.6 MB, free: 15.02 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006075/0.5308, allocations: 290.4 kB / 449.9 MB, free: 14.7 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.833e-05/0.5309, allocations: 12 kB / 449.9 MB, free: 14.69 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.531, allocations: 23.95 kB / 449.9 MB, free: 14.66 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001091/0.5321, allocations: 353.4 kB / 450.3 MB, free: 14.32 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.5331, allocations: 342 kB / 450.6 MB, free: 13.98 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.264e-05/0.5332, allocations: 8 kB / 450.6 MB, free: 13.97 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.053e-05/0.5333, allocations: 0 / 450.6 MB, free: 13.97 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.5333, allocations: 8 kB / 450.6 MB, free: 13.96 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004568/0.5379, allocations: 1.221 MB / 451.9 MB, free: 12.68 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.539, allocations: 328.7 kB / 452.2 MB, free: 12.35 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005257/0.5396, allocations: 203.9 kB / 452.4 MB, free: 12.15 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.234e-05/0.5397, allocations: 4.438 kB / 452.4 MB, free: 12.14 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.5397, allocations: 39 kB / 452.4 MB, free: 12.1 MB / 347.1 MB Notification: Performance of pre-optimization done (n=47): time 3.045e-06/0.5397, allocations: 0 / 452.4 MB, free: 12.1 MB / 347.1 MB Notification: Performance of matching and sorting (n=51): time 0.005553/0.5453, allocations: 1.52 MB / 453.9 MB, free: 10.48 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.5454, allocations: 55.84 kB / 454 MB, free: 10.41 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.5457, allocations: 192.4 kB / 454.2 MB, free: 10.21 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.5458, allocations: 33.7 kB / 454.2 MB, free: 10.18 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.546, allocations: 219.2 kB / 454.4 MB, free: 9.961 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002425/0.5463, allocations: 165.6 kB / 454.6 MB, free: 9.797 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.5463, allocations: 0 / 454.6 MB, free: 9.797 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.5465, allocations: 334.8 kB / 454.9 MB, free: 9.461 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.547, allocations: 179.1 kB / 455.1 MB, free: 9.285 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005809/0.5476, allocations: 246.1 kB / 455.3 MB, free: 9.027 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006722/0.5483, allocations: 158 kB / 455.5 MB, free: 8.871 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.5483, allocations: 0 / 455.5 MB, free: 8.871 MB / 347.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002651/0.551, allocations: 0.6454 MB / 456.1 MB, free: 8.211 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.5511, allocations: 12.12 kB / 456.1 MB, free: 8.199 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.5511, allocations: 0 / 456.1 MB, free: 8.199 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.5527, allocations: 444.8 kB / 456.6 MB, free: 7.758 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.5533, allocations: 63.91 kB / 456.6 MB, free: 7.695 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004238/0.5576, allocations: 3.351 MB / 460 MB, free: 4.094 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.5587, allocations: 96.09 kB / 460.1 MB, free: 4 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.5588, allocations: 23.98 kB / 460.1 MB, free: 3.977 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0002965/0.5591, allocations: 121.8 kB / 460.2 MB, free: 3.852 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001974/0.5611, allocations: 0.5428 MB / 460.8 MB, free: 3.297 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.5612, allocations: 31.62 kB / 460.8 MB, free: 3.266 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.5637, allocations: 0.6754 MB / 461.5 MB, free: 2.566 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.5638, allocations: 4 kB / 461.5 MB, free: 2.562 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.5638, allocations: 4 kB / 461.5 MB, free: 2.559 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.5638, allocations: 3.984 kB / 461.5 MB, free: 2.555 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003084/0.5669, allocations: 1.089 MB / 462.6 MB, free: 1.41 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.567, allocations: 0 / 462.6 MB, free: 1.41 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.5675, allocations: 56.94 kB / 462.6 MB, free: 1.355 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001508/0.5691, allocations: 426.2 kB / 463.1 MB, free: 0.9297 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.561e-05/0.5692, allocations: 7.969 kB / 463.1 MB, free: 0.9219 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004381/0.5736, allocations: 3.308 MB / 466.4 MB, free: 13.36 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5737, allocations: 0 / 466.4 MB, free: 13.36 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/0.5762, allocations: 0.8522 MB / 467.2 MB, free: 12.49 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003648/0.5767, allocations: 152.7 kB / 467.4 MB, free: 12.32 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.5768, allocations: 16.05 kB / 467.4 MB, free: 12.3 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009337/0.5778, allocations: 92 kB / 467.5 MB, free: 12.21 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003614/0.5781, allocations: 112.2 kB / 467.6 MB, free: 12.11 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-05/0.5782, allocations: 27.97 kB / 467.6 MB, free: 12.08 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.5785, allocations: 156 kB / 467.8 MB, free: 11.92 MB / 363.1 MB Notification: Performance of sort global known variables: time 8.015e-06/0.5785, allocations: 0 / 467.8 MB, free: 11.92 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007645/0.5793, allocations: 111.9 kB / 467.9 MB, free: 11.81 MB / 363.1 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) * 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.003099/0.5824, allocations: 1.428 MB / 469.3 MB, free: 10.34 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.5844, allocations: 0.7312 MB / 470 MB, free: 9.582 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5845, allocations: 0 / 470 MB, free: 9.582 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.5857, allocations: 487.5 kB / 470.5 MB, free: 9.082 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006809/0.5864, allocations: 37.47 kB / 470.5 MB, free: 9.047 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.5899, allocations: 0.8713 MB / 471.4 MB, free: 8.141 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.5905, allocations: 0.8075 MB / 472.2 MB, free: 7.301 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.5908, allocations: 107.4 kB / 472.3 MB, free: 7.195 MB / 363.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5908, allocations: 0 / 472.3 MB, free: 7.195 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.104/3.694, allocations: 9.865 MB / 482.2 MB, free: 13.36 MB / 379.1 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