Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",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.001467/0.001467, allocations: 181.9 kB / 8.367 MB, free: 0.7109 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.161/2.161, 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.001095/0.001095, allocations: 96.12 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.162e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3487, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.4854, allocations: 81.23 MB / 443.7 MB, free: 4.98 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/0.4858, allocations: 71.97 kB / 443.7 MB, free: 4.91 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0431/0.5289, allocations: 9.454 MB / 453.2 MB, free: 11.48 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.529, allocations: 0 / 453.2 MB, free: 11.48 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.529, allocations: 8 kB / 453.2 MB, free: 11.47 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001336/0.5304, allocations: 0.5994 MB / 453.8 MB, free: 10.83 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.149e-05/0.5304, allocations: 12.03 kB / 453.8 MB, free: 10.82 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.5306, allocations: 47.48 kB / 453.8 MB, free: 10.77 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007599/0.5314, allocations: 317.8 kB / 454.2 MB, free: 10.42 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.5314, allocations: 8 kB / 454.2 MB, free: 10.41 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-05/0.5315, allocations: 24.2 kB / 454.2 MB, free: 10.39 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004996/0.532, allocations: 157.1 kB / 454.3 MB, free: 10.23 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/0.5327, allocations: 249.9 kB / 454.6 MB, free: 9.965 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.5327, allocations: 0 / 454.6 MB, free: 9.965 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.5327, allocations: 0 / 454.6 MB, free: 9.965 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.5328, allocations: 11.95 kB / 454.6 MB, free: 9.953 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.5349, allocations: 0.8126 MB / 455.4 MB, free: 9.086 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/0.5357, allocations: 231.2 kB / 455.6 MB, free: 8.852 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.5359, allocations: 89.42 kB / 455.7 MB, free: 8.762 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.005e-05/0.536, allocations: 4.281 kB / 455.7 MB, free: 8.758 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003903/0.5364, allocations: 149.5 kB / 455.9 MB, free: 8.602 MB / 347.1 MB Notification: Performance of pre-optimization done (n=34): time 2.976e-06/0.5364, allocations: 0 / 455.9 MB, free: 8.602 MB / 347.1 MB Notification: Performance of matching and sorting (n=40): time 0.002934/0.5393, allocations: 1.051 MB / 456.9 MB, free: 7.457 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.5395, allocations: 189 kB / 457.1 MB, free: 7.23 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005462/0.5401, allocations: 297.1 kB / 457.4 MB, free: 6.934 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.5401, allocations: 29.7 kB / 457.4 MB, free: 6.898 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.5403, allocations: 235.3 kB / 457.7 MB, free: 6.668 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.5405, allocations: 130 kB / 457.8 MB, free: 6.539 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.779e-05/0.5405, allocations: 0 / 457.8 MB, free: 6.539 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.5407, allocations: 334.8 kB / 458.1 MB, free: 6.203 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.541, allocations: 76.88 kB / 458.2 MB, free: 6.129 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.5413, allocations: 168.4 kB / 458.4 MB, free: 5.93 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.5416, allocations: 105.6 kB / 458.5 MB, free: 5.828 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5416, allocations: 2.25 kB / 458.5 MB, free: 5.828 MB / 347.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008793/0.5425, allocations: 298.9 kB / 458.7 MB, free: 5.527 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.5426, allocations: 11.98 kB / 458.8 MB, free: 5.516 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5426, allocations: 0 / 458.8 MB, free: 5.516 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.5428, allocations: 20.86 kB / 458.8 MB, free: 5.492 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006343/0.5434, allocations: 84.02 kB / 458.9 MB, free: 5.41 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.5448, allocations: 1.24 MB / 460.1 MB, free: 4.055 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003759/0.5452, allocations: 4.031 kB / 460.1 MB, free: 4.051 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.5453, allocations: 16.16 kB / 460.1 MB, free: 4.035 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cylinder1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002411/0.5455, allocations: 128.8 kB / 460.2 MB, free: 3.902 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000837/0.5464, allocations: 286.3 kB / 460.5 MB, free: 3.613 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.672e-05/0.5465, allocations: 43.53 kB / 460.6 MB, free: 3.57 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008821/0.5474, allocations: 310.3 kB / 460.9 MB, free: 3.258 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.5474, allocations: 11.92 kB / 460.9 MB, free: 3.246 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.5474, allocations: 4 kB / 460.9 MB, free: 3.242 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008155/0.5482, allocations: 0.6293 MB / 461.5 MB, free: 2.508 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.5501, allocations: 0.7897 MB / 462.3 MB, free: 1.664 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.5502, allocations: 4.125 kB / 462.3 MB, free: 1.66 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006628/0.5508, allocations: 79.91 kB / 462.4 MB, free: 1.582 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.5509, allocations: 0 / 462.4 MB, free: 1.582 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/0.5509, allocations: 7.984 kB / 462.4 MB, free: 1.574 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.5509, allocations: 4.562 kB / 462.4 MB, free: 1.57 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.551, allocations: 3.938 kB / 462.4 MB, free: 1.566 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.5522, allocations: 0.5713 MB / 463 MB, free: 0.9414 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.5526, allocations: 140.7 kB / 463.1 MB, free: 0.7852 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.667e-05/0.5527, allocations: 11.95 kB / 463.1 MB, free: 0.7734 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/0.5531, allocations: 15.98 kB / 463.1 MB, free: 0.7578 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.619e-05/0.5532, allocations: 26.44 kB / 463.2 MB, free: 0.7344 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.22e-05/0.5532, allocations: 12 kB / 463.2 MB, free: 0.7227 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0004233/0.5537, allocations: 232.6 kB / 463.4 MB, free: 0.4922 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5537, allocations: 0 / 463.4 MB, free: 0.4922 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007181/0.5544, allocations: 100.5 kB / 463.5 MB, free: 404 kB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002794/0.5572, allocations: 1.642 MB / 465.1 MB, free: 14.75 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0009528/0.5582, allocations: 329.5 kB / 465.5 MB, free: 14.42 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.5583, allocations: 256 / 465.5 MB, free: 14.42 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.5586, allocations: 131.9 kB / 465.6 MB, free: 14.29 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008009/0.5594, allocations: 69.06 kB / 465.7 MB, free: 14.23 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.5622, allocations: 0.9241 MB / 466.6 MB, free: 13.24 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/0.5628, allocations: 0.8235 MB / 467.4 MB, free: 12.39 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.5631, allocations: 131.4 kB / 467.5 MB, free: 12.26 MB / 363.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5631, allocations: 4 kB / 467.5 MB, free: 12.26 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.251/3.815, allocations: 7.342 MB / 474.9 MB, free: 4.922 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat does not exist to compare? outputFormat=mat