Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 182 kB / 8.129 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.12/1.12, allocations: 221.4 MB / 229.9 MB, free: 3.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008539/0.0008541, allocations: 97.83 kB / 280.8 MB, free: 1.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08857/0.08945, allocations: 55.81 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.2658, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07761/0.3435, allocations: 82.23 MB / 469.2 MB, free: 4.508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.3437, allocations: 86.14 kB / 469.3 MB, free: 4.426 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.02369/0.3674, allocations: 9.748 MB / 479.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.3674, allocations: 12 kB / 479.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.762e-05/0.3675, allocations: 43.44 kB / 479.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.3679, allocations: 315.4 kB / 479.4 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.368, allocations: 8 kB / 479.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.368, allocations: 19.91 kB / 479.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000273/0.3683, allocations: 157.2 kB / 479.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.3686, allocations: 250.3 kB / 479.9 MB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.3687, allocations: 4.5 kB / 479.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.3687, allocations: 0 / 479.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3687, allocations: 8 kB / 479.9 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.3699, allocations: 0.8084 MB / 480.7 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.3702, allocations: 183 kB / 480.8 MB, free: 8.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.3704, allocations: 97.34 kB / 480.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.3704, allocations: 5.125 kB / 480.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.3706, allocations: 145.6 kB / 481.1 MB, free: 8.461 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.603e-06/0.3706, allocations: 0 / 481.1 MB, free: 8.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001573/0.3722, allocations: 1.036 MB / 482.1 MB, free: 7.328 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.3723, allocations: 187.9 kB / 482.3 MB, free: 7.102 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.3725, allocations: 271.5 kB / 482.6 MB, free: 6.832 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.3726, allocations: 25.7 kB / 482.6 MB, free: 6.801 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.3726, allocations: 148.6 kB / 482.7 MB, free: 6.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.41e-05/0.3727, allocations: 134 kB / 482.9 MB, free: 6.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.113e-05/0.3728, allocations: 3.938 kB / 482.9 MB, free: 6.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.3729, allocations: 346.8 kB / 483.2 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.373, allocations: 80.88 kB / 483.3 MB, free: 6.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.3732, allocations: 168.4 kB / 483.5 MB, free: 5.891 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.3733, allocations: 105.6 kB / 483.6 MB, free: 5.789 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.3733, allocations: 0 / 483.6 MB, free: 5.789 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000467/0.3738, allocations: 322.9 kB / 483.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.3738, allocations: 7.906 kB / 483.9 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3739, allocations: 4 kB / 483.9 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.072e-05/0.3739, allocations: 20.84 kB / 483.9 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/0.3743, allocations: 91.89 kB / 484 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008136/0.3751, allocations: 1.232 MB / 485.2 MB, free: 4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.3753, allocations: 4.031 kB / 485.2 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.3753, allocations: 16 kB / 485.3 MB, free: 3.98 MB / 362.7 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.0001262/0.3754, allocations: 122.8 kB / 485.4 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.3755, allocations: 39.53 kB / 485.4 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004722/0.376, allocations: 297.9 kB / 485.7 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.376, allocations: 4 kB / 485.7 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.376, allocations: 0 / 485.7 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004724/0.3765, allocations: 0.6334 MB / 486.3 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009371/0.3774, allocations: 0.7787 MB / 487.1 MB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3774, allocations: 0 / 487.1 MB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.3778, allocations: 83.89 kB / 487.2 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.3778, allocations: 3.906 kB / 487.2 MB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.3778, allocations: 8.125 kB / 487.2 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3779, allocations: 4 kB / 487.2 MB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3779, allocations: 0 / 487.2 MB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005802/0.3784, allocations: 0.5593 MB / 487.8 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001233/0.3797, allocations: 1.28 MB / 489.1 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.3798, allocations: 144.6 kB / 489.2 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.086e-05/0.3799, allocations: 4 kB / 489.2 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.3801, allocations: 15.98 kB / 489.2 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.3802, allocations: 23.88 kB / 489.2 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.3802, allocations: 16.38 kB / 489.3 MB, free: 15.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001957/0.3804, allocations: 215.1 kB / 489.5 MB, free: 15.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009043/0.3813, allocations: 91.94 kB / 489.6 MB, free: 15.37 MB / 378.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) * 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.0005793/0.3819, allocations: 333.7 kB / 489.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004584/0.3824, allocations: 337.3 kB / 490.2 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3824, allocations: 0 / 490.2 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.3825, allocations: 132.4 kB / 490.3 MB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.383, allocations: 69.48 kB / 490.4 MB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.3842, allocations: 0.7882 MB / 491.2 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004134/0.3846, allocations: 0.8699 MB / 492.1 MB, free: 12.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3846, allocations: 0 / 492.1 MB, free: 12.88 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1)