Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001106/0.001106, allocations: 196 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009234/0.0009235, allocations: 99.14 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1005/0.1014, allocations: 56.89 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09228/0.1937, allocations: 51.48 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.24/0.4338, allocations: 83.45 MB / 478.2 MB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4341, allocations: 78.92 kB / 478.2 MB, free: 9.797 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.02497/0.4591, allocations: 10.54 MB / 488.8 MB, free: 1.312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4591, allocations: 8 kB / 488.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4593, allocations: 43.53 kB / 488.8 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.4597, allocations: 322.2 kB / 489.1 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.4597, allocations: 8 kB / 489.1 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.987e-05/0.4598, allocations: 16 kB / 489.2 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002759/0.4601, allocations: 162.5 kB / 489.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.4604, allocations: 247.3 kB / 489.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.4604, allocations: 7.906 kB / 489.6 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.4604, allocations: 4 kB / 489.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.4605, allocations: 4 kB / 489.6 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.4617, allocations: 0.8054 MB / 490.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004058/0.4621, allocations: 195.8 kB / 490.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.4622, allocations: 84.36 kB / 490.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.57e-05/0.4623, allocations: 4.281 kB / 490.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.4625, allocations: 148.4 kB / 490.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 2.574e-06/0.4625, allocations: 0 / 490.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001897/0.4644, allocations: 1.033 MB / 491.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/0.4645, allocations: 190.9 kB / 492 MB, free: 14.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.4649, allocations: 280.2 kB / 492.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.4649, allocations: 25.7 kB / 492.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.465, allocations: 149.7 kB / 492.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.4651, allocations: 137.6 kB / 492.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.4651, allocations: 0 / 492.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4652, allocations: 343.8 kB / 492.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.4654, allocations: 81.12 kB / 493 MB, free: 13.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.4656, allocations: 168.2 kB / 493.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.4658, allocations: 105.9 kB / 493.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4658, allocations: 0 / 493.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005664/0.4664, allocations: 319.8 kB / 493.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.4664, allocations: 4 kB / 493.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.4664, allocations: 3.906 kB / 493.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000102/0.4665, allocations: 20.36 kB / 493.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.4669, allocations: 91.64 kB / 493.7 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009706/0.4679, allocations: 1.227 MB / 494.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001897/0.4681, allocations: 7.984 kB / 495 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.4682, allocations: 15.44 kB / 495 MB, free: 11.56 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.0001511/0.4683, allocations: 119.2 kB / 495.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.088e-05/0.4684, allocations: 43.66 kB / 495.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005256/0.4689, allocations: 296 kB / 495.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.4689, allocations: 7.984 kB / 495.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.4689, allocations: 0 / 495.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005202/0.4695, allocations: 0.6276 MB / 496.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.4706, allocations: 0.7786 MB / 496.8 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.4707, allocations: 12.05 kB / 496.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/0.4711, allocations: 75.81 kB / 496.9 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.4711, allocations: 4 kB / 496.9 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.4711, allocations: 3.562 kB / 496.9 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.4711, allocations: 7.984 kB / 496.9 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.4711, allocations: 4.125 kB / 496.9 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006958/0.4718, allocations: 0.5592 MB / 497.5 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001279/0.4731, allocations: 1.293 MB / 498.8 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.4733, allocations: 145.8 kB / 498.9 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.4734, allocations: 7.984 kB / 498.9 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.4736, allocations: 7.938 kB / 498.9 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.819e-05/0.4737, allocations: 28.94 kB / 499 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.4737, allocations: 11.19 kB / 499 MB, free: 7.926 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002705/0.474, allocations: 218.8 kB / 499.2 MB, free: 7.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001021/0.475, allocations: 98.17 kB / 499.3 MB, free: 7.664 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.0006866/0.4757, allocations: 323.8 kB / 499.6 MB, free: 7.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.4763, allocations: 337.6 kB / 499.9 MB, free: 7.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4763, allocations: 0 / 499.9 MB, free: 7.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.4765, allocations: 127.6 kB / 0.4883 GB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.477, allocations: 78.52 kB / 0.4884 GB, free: 7.031 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.4785, allocations: 0.7986 MB / 0.4892 GB, free: 6.258 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005293/0.479, allocations: 0.8712 MB / 0.49 GB, free: 5.375 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.479, allocations: 0 / 0.49 GB, free: 5.375 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1)