Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.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.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",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.002213/0.002213, allocations: 185.8 kB / 16.41 MB, free: 5.727 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.056/2.056, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.00118/0.00118, allocations: 83.31 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004018/0.0004017, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3404, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.4787, allocations: 83.51 MB / 458.1 MB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003169/0.4791, allocations: 75.95 kB / 458.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07629/0.5554, allocations: 14.92 MB / 473.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.5554, allocations: 0 / 473.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.057e-05/0.5555, allocations: 20 kB / 473.2 MB, free: 14.12 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.004569/0.5601, allocations: 1.131 MB / 474.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.5601, allocations: 8.031 kB / 474.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003351/0.5605, allocations: 114.5 kB / 474.4 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003272/0.5608, allocations: 90.92 kB / 474.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009049/0.5617, allocations: 412.7 kB / 474.9 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-05/0.5618, allocations: 50 kB / 474.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.5621, allocations: 75.91 kB / 475 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002941/0.565, allocations: 0.7959 MB / 475.8 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.351e-05/0.5651, allocations: 0 / 475.8 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.5653, allocations: 39.88 kB / 475.9 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.5653, allocations: 19.95 kB / 475.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003885/0.5692, allocations: 0.8471 MB / 476.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008128/0.5774, allocations: 2.439 MB / 479.2 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.5799, allocations: 0.7135 MB / 479.9 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001729/0.5801, allocations: 12.98 kB / 479.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002102/0.5822, allocations: 0.5595 MB / 480.4 MB, free: 6.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 6.572e-06/0.5822, allocations: 3.984 kB / 480.5 MB, free: 6.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.0221/0.6043, allocations: 4.411 MB / 484.9 MB, free: 2.039 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.931e-05/0.6045, allocations: 64.41 kB / 484.9 MB, free: 1.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.6056, allocations: 321.1 kB / 485.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000469/0.6061, allocations: 57.69 kB / 485.3 MB, free: 1.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003893/0.6065, allocations: 303.5 kB / 485.6 MB, free: 1.281 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009351/0.6075, allocations: 370.8 kB / 486 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.6077, allocations: 27.94 kB / 486 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002941/0.608, allocations: 346.8 kB / 486.3 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003077/0.6111, allocations: 430.4 kB / 486.7 MB, free: 124 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003267/0.6145, allocations: 0.515 MB / 487.3 MB, free: 15.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.6163, allocations: 374.4 kB / 487.6 MB, free: 15.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6164, allocations: 0 / 487.6 MB, free: 15.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005451/0.6218, allocations: 1.295 MB / 488.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.6219, allocations: 4 kB / 488.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/0.6219, allocations: 7.938 kB / 488.9 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001842/0.6238, allocations: 0.5567 MB / 489.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.6254, allocations: 215.7 kB / 489.7 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006534/0.632, allocations: 3.236 MB / 492.9 MB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00238/0.6344, allocations: 235.9 kB / 493.2 MB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.6346, allocations: 39.94 kB / 493.2 MB, free: 9.426 MB / 378.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: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 110 * 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: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006652/0.6353, allocations: 225.6 kB / 493.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.6355, allocations: 71.25 kB / 493.5 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005245/0.6408, allocations: 1.333 MB / 494.8 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.6408, allocations: 8 kB / 494.8 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6408, allocations: 0 / 494.8 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.951e-05/0.6409, allocations: 7.984 kB / 494.8 MB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008112/0.649, allocations: 2.493 MB / 497.3 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/0.6491, allocations: 4 kB / 497.3 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.6507, allocations: 188 kB / 497.5 MB, free: 4.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001802/0.6526, allocations: 0.5293 MB / 498 MB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/0.6528, allocations: 35.97 kB / 498.1 MB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005912/0.6587, allocations: 3.081 MB / 0.4894 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.6588, allocations: 0 / 0.4894 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2734/0.9321, allocations: 1.914 MB / 0.4913 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007117/0.9329, allocations: 231 kB / 0.4915 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002205/0.9332, allocations: 30.62 kB / 0.4915 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002515/0.9357, allocations: 253.9 kB / 0.4918 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001684/0.9374, allocations: 432.9 kB / 0.4922 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/0.9376, allocations: 47.52 kB / 0.4922 GB, free: 106.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004383/0.9381, allocations: 253.2 kB / 0.4925 GB, free: 106.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9381, allocations: 0 / 0.4925 GB, free: 106.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001313/0.9394, allocations: 244.2 kB / 0.4927 GB, free: 106.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007361/0.9468, allocations: 3.075 MB / 0.4957 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004521/0.9514, allocations: 1.236 MB / 0.4969 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.9514, allocations: 1.219 kB / 0.4969 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.954, allocations: 0.7344 MB / 0.4976 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.9552, allocations: 108.1 kB / 0.4977 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/0.9712, allocations: 6.121 MB / 0.5037 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.9717, allocations: 0.9519 MB / 0.5047 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006322/0.9723, allocations: 242.4 kB / 0.5049 GB, free: 101 MB / 378.7 MB Notification: Performance of SimCode: time 1.412e-06/0.9723, allocations: 0 / 0.5049 GB, free: 101 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.176/4.148, allocations: 19.4 MB / 0.5238 GB, free: 89.7 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat