Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 178.9 kB / 8.478 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.2 MB / 214.1 MB, free: 13.84 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.0009396/0.0009395, allocations: 96.45 kB / 262.1 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1092/0.1102, allocations: 52.97 MB / 315.1 MB, free: 8.562 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.3912, allocations: 47.56 MB / 362.6 MB, free: 45.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.4953, allocations: 81.15 MB / 443.8 MB, free: 4.734 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.4956, allocations: 73.95 kB / 443.8 MB, free: 4.664 MB / 330.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.02706/0.5227, allocations: 9.775 MB / 453.6 MB, free: 10.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5227, allocations: 8 kB / 453.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.5229, allocations: 43.53 kB / 453.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005682/0.5235, allocations: 315.4 kB / 454 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.5235, allocations: 8 kB / 454 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.5236, allocations: 16.75 kB / 454 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003212/0.5239, allocations: 164.9 kB / 454.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003855/0.5243, allocations: 245.2 kB / 454.4 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.5243, allocations: 3.984 kB / 454.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.5244, allocations: 4 kB / 454.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.5244, allocations: 8 kB / 454.4 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.5258, allocations: 0.8084 MB / 455.2 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003933/0.5263, allocations: 199.1 kB / 455.4 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.5264, allocations: 81.42 kB / 455.5 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.5265, allocations: 8.219 kB / 455.5 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.5267, allocations: 145.6 kB / 455.7 MB, free: 8.711 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 2.043e-06/0.5267, allocations: 0 / 455.7 MB, free: 8.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.001829/0.5285, allocations: 1.035 MB / 456.7 MB, free: 7.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.5286, allocations: 193.5 kB / 456.9 MB, free: 7.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003684/0.529, allocations: 291.5 kB / 457.2 MB, free: 7.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.529, allocations: 25.7 kB / 457.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9e-05/0.5291, allocations: 148.6 kB / 457.3 MB, free: 6.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.733e-05/0.5292, allocations: 134 kB / 457.5 MB, free: 6.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.265e-05/0.5293, allocations: 0 / 457.5 MB, free: 6.746 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5294, allocations: 350.8 kB / 457.8 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.5296, allocations: 80.86 kB / 457.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.5298, allocations: 160.5 kB / 458 MB, free: 6.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.5299, allocations: 105.5 kB / 458.1 MB, free: 6.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.53, allocations: 0 / 458.1 MB, free: 6.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005481/0.5305, allocations: 326.6 kB / 458.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.5305, allocations: 8.125 kB / 458.5 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.5305, allocations: 0 / 458.5 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.934e-05/0.5307, allocations: 24.84 kB / 458.5 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.531, allocations: 95.83 kB / 458.6 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009028/0.5319, allocations: 1.234 MB / 459.8 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.5321, allocations: 4 kB / 459.8 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.5322, allocations: 12 kB / 459.8 MB, free: 4.199 MB / 346.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.0001446/0.5323, allocations: 112.9 kB / 460 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.5324, allocations: 39.53 kB / 460 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00054/0.5329, allocations: 306 kB / 460.3 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.533, allocations: 4 kB / 460.3 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.533, allocations: 0 / 460.3 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004878/0.5335, allocations: 0.6293 MB / 460.9 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.5346, allocations: 0.7875 MB / 461.7 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.5346, allocations: 5.406 kB / 461.7 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/0.535, allocations: 79.83 kB / 461.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.535, allocations: 4 kB / 461.8 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.535, allocations: 8 kB / 461.8 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.535, allocations: 3.938 kB / 461.8 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.535, allocations: 4 kB / 461.8 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006892/0.5357, allocations: 0.5676 MB / 462.4 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001256/0.537, allocations: 1.28 MB / 463.7 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.5372, allocations: 144.6 kB / 463.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.961e-05/0.5373, allocations: 4 kB / 463.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.5375, allocations: 11.98 kB / 463.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.5375, allocations: 23.88 kB / 463.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.5376, allocations: 20 kB / 463.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002268/0.5378, allocations: 227.1 kB / 464.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009791/0.5388, allocations: 104.5 kB / 464.2 MB, free: 15.55 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) * 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.0007703/0.5396, allocations: 331.6 kB / 464.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006547/0.5402, allocations: 338.4 kB / 464.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.5403, allocations: 4 kB / 464.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.5405, allocations: 127.6 kB / 465 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.541, allocations: 69.36 kB / 465 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.5425, allocations: 0.8046 MB / 465.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005183/0.543, allocations: 0.8816 MB / 466.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5431, allocations: 0 / 466.7 MB, free: 12.98 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1)