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.001519/0.001519, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.16/2.16, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001174/0.001174, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.246e-05/3.274e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09902/0.09909, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5037/0.6029, allocations: 80.39 MB / 449.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.6032, allocations: 74.77 kB / 449.6 MB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0327/0.636, allocations: 6.719 MB / 456.4 MB, free: 6.992 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.636, allocations: 0 / 456.4 MB, free: 6.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.68e-05/0.6361, allocations: 15.98 kB / 456.4 MB, free: 6.977 MB / 330.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.002147/0.6382, allocations: 0.6537 MB / 457 MB, free: 6.301 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.6383, allocations: 12.03 kB / 457 MB, free: 6.289 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002164/0.6385, allocations: 82.52 kB / 457.1 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.6387, allocations: 39.53 kB / 457.2 MB, free: 6.184 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000581/0.6393, allocations: 291.9 kB / 457.4 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/0.6394, allocations: 32.17 kB / 457.5 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.6395, allocations: 39.44 kB / 457.5 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.6406, allocations: 394.9 kB / 457.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.6407, allocations: 3.938 kB / 457.9 MB, free: 5.559 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.6408, allocations: 14.06 kB / 457.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.6408, allocations: 8 kB / 457.9 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.6419, allocations: 376.5 kB / 458.3 MB, free: 5.297 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004166/0.6461, allocations: 1.31 MB / 459.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.6472, allocations: 338.1 kB / 459.9 MB, free: 3.961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005535/0.6478, allocations: 219.5 kB / 460.1 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.318e-05/0.6479, allocations: 12.44 kB / 460.2 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.6479, allocations: 38.44 kB / 460.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 4.047e-06/0.6479, allocations: 0 / 460.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.005125/0.6531, allocations: 1.584 MB / 461.8 MB, free: 2.258 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.6532, allocations: 59.84 kB / 461.8 MB, free: 2.184 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.6536, allocations: 199 kB / 462 MB, free: 1.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.6537, allocations: 41.7 kB / 462.1 MB, free: 1.934 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.6539, allocations: 231.1 kB / 462.3 MB, free: 1.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.6541, allocations: 177.6 kB / 462.5 MB, free: 1.531 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.6542, allocations: 11.94 kB / 462.5 MB, free: 1.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.6544, allocations: 330.8 kB / 462.8 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005975/0.655, allocations: 189.1 kB / 463 MB, free: 1.004 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006837/0.6557, allocations: 263.2 kB / 463.2 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004885/0.6562, allocations: 147.2 kB / 463.4 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.6562, allocations: 0 / 463.4 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002739/0.659, allocations: 0.6961 MB / 464.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.6591, allocations: 4 kB / 464.1 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/0.6591, allocations: 4 kB / 464.1 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.6608, allocations: 434.4 kB / 464.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/0.6614, allocations: 75.89 kB / 464.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004453/0.6659, allocations: 3.382 MB / 468 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.6671, allocations: 104 kB / 468.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.6672, allocations: 23.98 kB / 468.1 MB, free: 11.56 MB / 346.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 () * 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.0002897/0.6675, allocations: 144.7 kB / 468.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.6677, allocations: 31.62 kB / 468.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/0.6703, allocations: 0.7144 MB / 469 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/0.6704, allocations: 7.984 kB / 469 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.6704, allocations: 0 / 469 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.6704, allocations: 0 / 469 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00335/0.6738, allocations: 1.159 MB / 470.2 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6738, allocations: 0 / 470.2 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005823/0.6744, allocations: 59.91 kB / 470.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.676, allocations: 426.2 kB / 470.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.6761, allocations: 23.97 kB / 470.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00449/0.6806, allocations: 3.35 MB / 474 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6807, allocations: 0 / 474 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.6834, allocations: 0.8835 MB / 474.9 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/0.6839, allocations: 156.7 kB / 475 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.684, allocations: 16 kB / 475.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00096/0.685, allocations: 103.9 kB / 475.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/0.6854, allocations: 116.2 kB / 475.3 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.568e-05/0.6855, allocations: 19.98 kB / 475.3 MB, free: 3.934 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.6858, allocations: 171.1 kB / 475.5 MB, free: 3.766 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6858, allocations: 0 / 475.5 MB, free: 3.766 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008087/0.6866, allocations: 127.9 kB / 475.6 MB, free: 3.641 MB / 346.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) * 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.00329/0.6899, allocations: 1.472 MB / 477.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.6922, allocations: 0.7662 MB / 477.8 MB, free: 1.328 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.6922, allocations: 0 / 477.8 MB, free: 1.328 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.6935, allocations: 0.5059 MB / 478.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.6942, allocations: 44.47 kB / 478.4 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.6979, allocations: 0.9219 MB / 479.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.6985, allocations: 0.8114 MB / 480.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.6988, allocations: 107.4 kB / 480.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6988, allocations: 0 / 480.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.031/3.729, allocations: 9.991 MB / 490.2 MB, free: 4.836 MB / 362.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