Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_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.001012/0.001012, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009192/0.0009192, allocations: 90.58 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.648e-05/2.658e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08647, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3179/0.4044, allocations: 83.42 MB / 453.5 MB, free: 9.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.4047, allocations: 75.02 kB / 453.6 MB, free: 9.891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04338/0.4481, allocations: 14.9 MB / 468.5 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4481, allocations: 0 / 468.5 MB, free: 12.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.381e-05/0.4482, allocations: 24 kB / 468.5 MB, free: 12.33 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002547/0.4507, allocations: 1.07 MB / 469.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.4508, allocations: 12.03 kB / 469.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.4509, allocations: 110.5 kB / 469.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002278/0.4512, allocations: 87.02 kB / 469.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.4518, allocations: 423.1 kB / 470.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.558e-05/0.4518, allocations: 50 kB / 470.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.452, allocations: 71.91 kB / 470.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.4533, allocations: 0.7257 MB / 471.1 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.935e-05/0.4534, allocations: 15.91 kB / 471.1 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.312e-05/0.4535, allocations: 24 kB / 471.1 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.4535, allocations: 19.95 kB / 471.1 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.4548, allocations: 0.7146 MB / 471.8 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004552/0.4593, allocations: 2.435 MB / 474.3 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.4604, allocations: 0.6286 MB / 474.9 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006164/0.461, allocations: 411.8 kB / 475.3 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.574e-05/0.4611, allocations: 8.781 kB / 475.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008603/0.462, allocations: 0.4902 MB / 475.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 3.727e-06/0.462, allocations: 0 / 475.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.00633/0.4684, allocations: 2.944 MB / 478.7 MB, free: 1.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.4684, allocations: 68.34 kB / 478.8 MB, free: 1.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.4688, allocations: 315.1 kB / 479.1 MB, free: 1.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.491e-05/0.469, allocations: 57.69 kB / 479.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.4692, allocations: 257.1 kB / 479.4 MB, free: 1.059 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002885/0.4694, allocations: 374.8 kB / 479.8 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-05/0.4695, allocations: 24 kB / 479.8 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4697, allocations: 370.8 kB / 480.2 MB, free: 300 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006328/0.4703, allocations: 358.6 kB / 480.5 MB, free: 15.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.471, allocations: 451.5 kB / 481 MB, free: 15.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005556/0.4716, allocations: 304.9 kB / 481.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4716, allocations: 4 kB / 481.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002384/0.474, allocations: 1.174 MB / 482.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.474, allocations: 4 kB / 482.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.474, allocations: 11.98 kB / 482.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.4751, allocations: 0.5373 MB / 483 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.4759, allocations: 211.7 kB / 483.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.4799, allocations: 3.221 MB / 486.4 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.4812, allocations: 239.8 kB / 486.7 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.4813, allocations: 35.98 kB / 486.7 MB, free: 9.543 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: 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 () * 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.0002831/0.4816, allocations: 172 kB / 486.9 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.4818, allocations: 75.14 kB / 486.9 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002423/0.4842, allocations: 1.197 MB / 488.1 MB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.4842, allocations: 12 kB / 488.1 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.4842, allocations: 0 / 488.1 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.4843, allocations: 7.969 kB / 488.1 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/0.4883, allocations: 2.349 MB / 490.5 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4883, allocations: 0 / 490.5 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007903/0.4891, allocations: 188 kB / 490.7 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000957/0.4901, allocations: 0.5138 MB / 491.2 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.08e-05/0.4902, allocations: 47.89 kB / 491.2 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003664/0.4939, allocations: 3.054 MB / 494.3 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.4939, allocations: 4.031 kB / 494.3 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003016/0.4969, allocations: 1.708 MB / 496 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004122/0.4974, allocations: 236 kB / 496.2 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.4975, allocations: 39.94 kB / 496.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.4988, allocations: 247.8 kB / 496.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009546/0.4997, allocations: 432.1 kB / 496.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.4999, allocations: 47.94 kB / 497 MB, free: 14.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002988/0.5002, allocations: 249.2 kB / 497.2 MB, free: 14.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5002, allocations: 0 / 497.2 MB, free: 14.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009306/0.5011, allocations: 247.9 kB / 497.5 MB, free: 14.31 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) * 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.003994/0.5051, allocations: 2.874 MB / 0.4886 GB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.5071, allocations: 1.094 MB / 0.4897 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5071, allocations: 0 / 0.4897 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/0.5084, allocations: 0.7157 MB / 0.4904 GB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.5091, allocations: 114.9 kB / 0.4905 GB, free: 9.387 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.5134, allocations: 1.928 MB / 0.4924 GB, free: 7.398 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005295/0.5139, allocations: 0.9476 MB / 0.4933 GB, free: 6.418 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003359/0.5143, allocations: 77.36 kB / 0.4934 GB, free: 6.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.5147, allocations: 235.3 kB / 0.4936 GB, free: 6.109 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5147, allocations: 0 / 0.4936 GB, free: 6.109 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03894/0.5536, allocations: 20.55 MB / 0.5137 GB, free: 1.523 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.5539, allocations: 185.4 kB / 0.5138 GB, free: 1.297 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.911, allocations: 0 / 0.5138 GB, free: 1.297 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat