Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.0009317/0.0009317, allocations: 183.3 kB / 8.135 MB, free: 2.223 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.074/1.074, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.001131/0.001131, allocations: 107.1 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1134/0.1145, allocations: 55.81 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.2944, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08059/0.375, allocations: 82.17 MB / 469.2 MB, free: 4.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.3752, allocations: 75.91 kB / 469.2 MB, free: 4.516 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.02067/0.3959, allocations: 8.575 MB / 477.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.396, allocations: 8 kB / 477.8 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.279e-05/0.3961, allocations: 43.53 kB / 477.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.3966, allocations: 332 kB / 478.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.3966, allocations: 20 kB / 478.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.3966, allocations: 12 kB / 478.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002569/0.3969, allocations: 136.8 kB / 478.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.3973, allocations: 256.7 kB / 478.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3973, allocations: 0 / 478.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.3973, allocations: 0 / 478.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3973, allocations: 4 kB / 478.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.3986, allocations: 0.7468 MB / 479.4 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.399, allocations: 195.9 kB / 479.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.3991, allocations: 72.86 kB / 479.6 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.3991, allocations: 4 kB / 479.6 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.3993, allocations: 124.4 kB / 479.7 MB, free: 9.828 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3993, allocations: 0 / 479.7 MB, free: 9.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004766/0.3998, allocations: 248 kB / 480 MB, free: 9.578 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.3999, allocations: 312.4 kB / 480.3 MB, free: 9.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.4003, allocations: 354 kB / 480.6 MB, free: 8.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.4003, allocations: 29.7 kB / 480.7 MB, free: 8.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.4004, allocations: 148.3 kB / 480.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.4005, allocations: 74.86 kB / 480.9 MB, free: 8.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.4005, allocations: 0.9375 kB / 480.9 MB, free: 8.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.4006, allocations: 346.8 kB / 481.2 MB, free: 8.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.4007, allocations: 67.92 kB / 481.3 MB, free: 8.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.4009, allocations: 160.2 kB / 481.5 MB, free: 7.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.401, allocations: 77.95 kB / 481.5 MB, free: 7.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.401, allocations: 0 / 481.5 MB, free: 7.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004473/0.4015, allocations: 269.6 kB / 481.8 MB, free: 7.629 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.4015, allocations: 4 kB / 481.8 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.4015, allocations: 4 kB / 481.8 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001806/0.4017, allocations: 41.02 kB / 481.8 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/0.4019, allocations: 55.84 kB / 481.9 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.4031, allocations: 1.385 MB / 483.3 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.4033, allocations: 19.75 kB / 483.3 MB, free: 6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.4033, allocations: 4.047 kB / 483.3 MB, free: 5.996 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.4035, allocations: 123.8 kB / 483.4 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.4035, allocations: 43.53 kB / 483.5 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004602/0.404, allocations: 261 kB / 483.7 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.404, allocations: 4 kB / 483.7 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.404, allocations: 0 / 483.7 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004546/0.4045, allocations: 0.5633 MB / 484.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008611/0.4053, allocations: 0.681 MB / 485 MB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.4054, allocations: 8 kB / 485 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.4056, allocations: 51.92 kB / 485 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.4056, allocations: 3.984 kB / 485 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.4056, allocations: 0 / 485 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4056, allocations: 4 kB / 485 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4056, allocations: 0 / 485 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004483/0.4061, allocations: 395.7 kB / 485.4 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009005/0.407, allocations: 1.015 MB / 486.4 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.4072, allocations: 148.5 kB / 486.6 MB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.078e-05/0.4072, allocations: 11.98 kB / 486.6 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.4074, allocations: 4 kB / 486.6 MB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.4075, allocations: 11.89 kB / 486.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.4075, allocations: 11.98 kB / 486.6 MB, free: 2.457 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002565/0.4078, allocations: 280.7 kB / 486.9 MB, free: 2.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009102/0.4087, allocations: 103.8 kB / 487 MB, free: 2.086 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * 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 (25): * Single equations (assignments): 23 * 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.000601/0.4093, allocations: 326 kB / 487.3 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004599/0.4098, allocations: 278.3 kB / 487.6 MB, free: 1.562 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4098, allocations: 4 kB / 487.6 MB, free: 1.559 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.4099, allocations: 91.8 kB / 487.7 MB, free: 1.469 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.4103, allocations: 86.92 kB / 487.8 MB, free: 1.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.4114, allocations: 0.5498 MB / 488.3 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004718/0.4119, allocations: 0.849 MB / 489.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4119, allocations: 0 / 489.2 MB, free: 15.94 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1)