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.001535/0.001534, allocations: 185.4 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 1.994/1.994, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001127/0.001126, allocations: 87.3 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003916, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3425, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1353/0.4779, allocations: 81.97 MB / 456.6 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.4783, allocations: 83.95 kB / 456.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04425/0.5226, allocations: 9.572 MB / 466.3 MB, free: 5.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5226, allocations: 0 / 466.3 MB, free: 5.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.212e-05/0.5227, allocations: 4 kB / 466.3 MB, free: 5.059 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00136/0.524, allocations: 0.6605 MB / 466.9 MB, free: 4.352 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.5241, allocations: 8.031 kB / 466.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.5242, allocations: 67 kB / 467 MB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.5244, allocations: 51.47 kB / 467 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006767/0.5251, allocations: 327.3 kB / 467.4 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.5251, allocations: 16.56 kB / 467.4 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.461e-05/0.5252, allocations: 31.94 kB / 467.4 MB, free: 3.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007884/0.526, allocations: 303.1 kB / 467.7 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.5261, allocations: 0 / 467.7 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.5261, allocations: 12 kB / 467.7 MB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.5262, allocations: 15.95 kB / 467.7 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005627/0.5267, allocations: 186.1 kB / 467.9 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.529, allocations: 0.8872 MB / 468.8 MB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000901/0.53, allocations: 269.9 kB / 469.1 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.53, allocations: 4.281 kB / 469.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.5305, allocations: 153.8 kB / 469.2 MB, free: 1.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 2.996e-06/0.5305, allocations: 0 / 469.2 MB, free: 1.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.003748/0.5343, allocations: 1.334 MB / 470.6 MB, free: 464 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.5344, allocations: 183.9 kB / 470.7 MB, free: 236 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006345/0.5351, allocations: 315.7 kB / 471 MB, free: 15.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.316e-05/0.5351, allocations: 37.7 kB / 471.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.5353, allocations: 238.9 kB / 471.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.5355, allocations: 141.9 kB / 471.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.5356, allocations: 8 kB / 471.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5357, allocations: 334.8 kB / 471.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.536, allocations: 84.84 kB / 471.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003953/0.5365, allocations: 181.3 kB / 472 MB, free: 14.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003653/0.5368, allocations: 113.8 kB / 472.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.5369, allocations: 0 / 472.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009363/0.5378, allocations: 339 kB / 472.5 MB, free: 14.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.5378, allocations: 11.94 kB / 472.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.5379, allocations: 7.922 kB / 472.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.538, allocations: 24.78 kB / 472.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/0.5387, allocations: 87.89 kB / 472.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.5402, allocations: 1.292 MB / 473.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.5406, allocations: 15.94 kB / 473.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.5406, allocations: 16 kB / 473.9 MB, free: 12.81 MB / 362.7 MB 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 () * Number of clocked 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.0003315/0.5409, allocations: 174.5 kB / 474.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.541, allocations: 39.53 kB / 474.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009905/0.5421, allocations: 345.9 kB / 474.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.5421, allocations: 4 kB / 474.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.5421, allocations: 0 / 474.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001009/0.5431, allocations: 0.6645 MB / 475.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.5453, allocations: 0.8877 MB / 476 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.5454, allocations: 0 / 476 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006765/0.546, allocations: 75.89 kB / 476.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.692e-05/0.5461, allocations: 8.016 kB / 476.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.536e-05/0.5461, allocations: 16.12 kB / 476.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.278e-06/0.5462, allocations: 8 kB / 476.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5462, allocations: 0 / 476.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.5477, allocations: 0.6064 MB / 476.8 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.548, allocations: 144.7 kB / 476.9 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.434e-05/0.5481, allocations: 8 kB / 476.9 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.5485, allocations: 23.98 kB / 476.9 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.595e-05/0.5486, allocations: 27.92 kB / 477 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.5486, allocations: 12 kB / 477 MB, free: 9.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004529/0.5491, allocations: 255 kB / 477.2 MB, free: 9.273 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5491, allocations: 4 kB / 477.2 MB, free: 9.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006403/0.5498, allocations: 108.6 kB / 477.3 MB, free: 9.164 MB / 362.7 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) * Number of clocked states: 0 () * 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.003081/0.5529, allocations: 1.764 MB / 479.1 MB, free: 7.379 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.5541, allocations: 366.8 kB / 479.4 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.5541, allocations: 0 / 479.4 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004008/0.5545, allocations: 147.8 kB / 479.6 MB, free: 6.863 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007989/0.5554, allocations: 82.48 kB / 479.7 MB, free: 6.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006375/0.5618, allocations: 3.184 MB / 482.9 MB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.5624, allocations: 0.8236 MB / 483.7 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003617/0.5627, allocations: 135.4 kB / 483.8 MB, free: 2.527 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5628, allocations: 0 / 483.8 MB, free: 2.527 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.098/3.66, allocations: 7.516 MB / 491.3 MB, free: 11.01 MB / 378.7 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