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.001114/0.001114, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.546/1.546, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0008726/0.0008726, allocations: 88.16 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.000282, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2512, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0969/0.3482, allocations: 83.51 MB / 459.4 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.3484, allocations: 75.95 kB / 459.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04459/0.393, allocations: 14.92 MB / 474.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3931, allocations: 0 / 474.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.244e-05/0.3931, allocations: 16 kB / 474.4 MB, free: 14.05 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.00311/0.3962, allocations: 1.135 MB / 475.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3963, allocations: 8.031 kB / 475.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003369/0.3966, allocations: 114.5 kB / 475.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.397, allocations: 94.91 kB / 475.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007411/0.3977, allocations: 408.7 kB / 476.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/0.3978, allocations: 50 kB / 476.2 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001832/0.398, allocations: 71.91 kB / 476.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.3998, allocations: 0.7919 MB / 477.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.3999, allocations: 4 kB / 477.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.656e-05/0.4, allocations: 39.92 kB / 477.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.4, allocations: 27.89 kB / 477.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/0.402, allocations: 0.8432 MB / 478 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005007/0.407, allocations: 2.439 MB / 480.4 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.4085, allocations: 0.7097 MB / 481.1 MB, free: 7.086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.386e-05/0.4086, allocations: 16.94 kB / 481.2 MB, free: 7.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.4099, allocations: 0.5594 MB / 481.7 MB, free: 6.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 3.828e-06/0.4099, allocations: 0 / 481.7 MB, free: 6.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.01185/0.4218, allocations: 4.417 MB / 486.1 MB, free: 1.957 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.4219, allocations: 64.41 kB / 486.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.4224, allocations: 317.1 kB / 486.5 MB, free: 1.566 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4225, allocations: 57.69 kB / 486.6 MB, free: 1.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.4228, allocations: 261.1 kB / 486.8 MB, free: 1.242 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/0.4231, allocations: 374.8 kB / 487.2 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.4232, allocations: 23.94 kB / 487.2 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.4234, allocations: 370.8 kB / 487.6 MB, free: 488 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009897/0.4244, allocations: 426.4 kB / 488 MB, free: 64 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.4255, allocations: 0.519 MB / 488.5 MB, free: 15.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008875/0.4264, allocations: 366.4 kB / 488.9 MB, free: 15.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4264, allocations: 4 kB / 488.9 MB, free: 15.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003157/0.4296, allocations: 1.319 MB / 490.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.4296, allocations: 4 kB / 490.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.961e-05/0.4297, allocations: 7.984 kB / 490.2 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.4308, allocations: 0.5644 MB / 490.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008521/0.4316, allocations: 203.7 kB / 491 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004017/0.4357, allocations: 3.236 MB / 494.2 MB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.437, allocations: 232.1 kB / 494.4 MB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/0.4372, allocations: 43.94 kB / 494.5 MB, free: 9.348 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.0004861/0.4377, allocations: 229.6 kB / 494.7 MB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.4379, allocations: 71.16 kB / 494.8 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003013/0.4409, allocations: 1.33 MB / 496.1 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.441, allocations: 16 kB / 496.1 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.441, allocations: 0 / 496.1 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.441, allocations: 3.984 kB / 496.1 MB, free: 7.668 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.4459, allocations: 2.496 MB / 498.6 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.4459, allocations: 0 / 498.6 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008195/0.4468, allocations: 192 kB / 498.8 MB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.4478, allocations: 0.5215 MB / 499.3 MB, free: 4.344 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.4479, allocations: 35.97 kB / 499.4 MB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003324/0.4512, allocations: 3.081 MB / 0.4907 GB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4513, allocations: 3.938 kB / 0.4907 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1752/0.6265, allocations: 1.92 MB / 0.4925 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005518/0.6271, allocations: 227.1 kB / 0.4928 GB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.6273, allocations: 36.75 kB / 0.4928 GB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.6287, allocations: 249.9 kB / 0.493 GB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008792/0.6296, allocations: 428 kB / 0.4934 GB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.6297, allocations: 52.44 kB / 0.4935 GB, free: 106.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002931/0.63, allocations: 253.1 kB / 0.4937 GB, free: 106.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.63, allocations: 0 / 0.4937 GB, free: 106.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001097/0.6311, allocations: 250.4 kB / 0.494 GB, free: 106.8 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.004457/0.6356, allocations: 3.076 MB / 0.497 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.6382, allocations: 1.229 MB / 0.4982 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.6383, allocations: 5.031 kB / 0.4982 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/0.64, allocations: 0.7796 MB / 0.4989 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008099/0.6408, allocations: 109.2 kB / 0.499 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009721/0.6506, allocations: 6.085 MB / 0.505 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.651, allocations: 0.9526 MB / 0.5059 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000403/0.6514, allocations: 66.7 kB / 0.506 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003837/0.6518, allocations: 241.3 kB / 0.5062 GB, free: 101.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6518, allocations: 0 / 0.5062 GB, free: 101.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03703/0.6889, allocations: 20.48 MB / 0.5262 GB, free: 88.5 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.6891, allocations: 211.3 kB / 0.5264 GB, free: 88.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.536/3.225, allocations: 0 / 0.5264 GB, free: 88.25 MB / 378.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