Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",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.001019/0.001019, allocations: 187.3 kB / 8.137 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.142/1.142, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0008884/0.0008883, allocations: 100.7 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09098/0.0919, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.2812, allocations: 50.38 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5307/0.812, allocations: 326.1 MB / 0.6964 GB, free: 144.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.8122, allocations: 91.88 kB / 0.6964 GB, free: 144.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.4473/1.26, allocations: 146.8 MB / 0.8398 GB, free: 96.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/1.26, allocations: 7.906 kB / 0.8398 GB, free: 96.37 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006237/1.26, allocations: 102 kB / 0.8399 GB, free: 96.33 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/1.262, allocations: 0.6121 MB / 0.8405 GB, free: 96.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/1.262, allocations: 76.53 kB / 0.8405 GB, free: 96.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/1.262, allocations: 25.94 kB / 0.8406 GB, free: 96.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001029/1.263, allocations: 0.6142 MB / 0.8412 GB, free: 96.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/1.264, allocations: 0.7603 MB / 0.8419 GB, free: 95.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/1.264, allocations: 3.406 kB / 0.8419 GB, free: 95.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.304e-05/1.264, allocations: 0 / 0.8419 GB, free: 95.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.351e-05/1.264, allocations: 43.62 kB / 0.8419 GB, free: 95.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004762/1.269, allocations: 3.313 MB / 0.8452 GB, free: 94.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004707/1.27, allocations: 330 kB / 0.8455 GB, free: 94.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003266/1.27, allocations: 261.9 kB / 0.8457 GB, free: 94.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00195/1.272, allocations: 1.383 MB / 0.8471 GB, free: 93.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004593/1.272, allocations: 355.5 kB / 0.8474 GB, free: 93.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.236e-06/1.273, allocations: 0 / 0.8474 GB, free: 93.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.003295/1.276, allocations: 1.336 MB / 0.8487 GB, free: 92.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/1.276, allocations: 273.1 kB / 0.849 GB, free: 92.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/1.277, allocations: 0.5461 MB / 0.8495 GB, free: 92.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/1.277, allocations: 32.36 kB / 0.8496 GB, free: 92.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/1.277, allocations: 321.2 kB / 0.8499 GB, free: 92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/1.277, allocations: 136.5 kB / 0.85 GB, free: 91.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.502e-05/1.277, allocations: 0 / 0.85 GB, free: 91.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.425e-05/1.277, allocations: 381.9 kB / 0.8504 GB, free: 91.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/1.277, allocations: 246.1 kB / 0.8506 GB, free: 91.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004373/1.278, allocations: 0.4897 MB / 0.8511 GB, free: 91.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/1.279, allocations: 466.1 kB / 0.8515 GB, free: 91.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.279, allocations: 0.75 kB / 0.8515 GB, free: 91.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002031/1.281, allocations: 0.9795 MB / 0.8525 GB, free: 91.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000474/1.282, allocations: 2.436 MB / 0.8549 GB, free: 88.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/1.282, allocations: 3.719 kB / 0.8549 GB, free: 88.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004103/1.282, allocations: 120.2 kB / 0.855 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005132/1.283, allocations: 129.8 kB / 0.8551 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006857/1.283, allocations: 0.7233 MB / 0.8558 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007809/1.284, allocations: 43.08 kB / 0.8558 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.437e-05/1.284, allocations: 38.53 kB / 0.8559 GB, free: 88.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/1.284, allocations: 3.938 kB / 0.8559 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001919/1.286, allocations: 0.8515 MB / 0.8567 GB, free: 88.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/1.286, allocations: 6.406 kB / 0.8567 GB, free: 88.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003577/1.286, allocations: 108.2 kB / 0.8568 GB, free: 88.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/1.287, allocations: 142.6 kB / 0.857 GB, free: 88.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004974/1.287, allocations: 0.6771 MB / 0.8576 GB, free: 87.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006723/1.288, allocations: 34.92 kB / 0.8577 GB, free: 87.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.897e-05/1.288, allocations: 34.5 kB / 0.8577 GB, free: 87.64 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003104/1.289, allocations: 183.2 kB / 0.8579 GB, free: 87.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/1.289, allocations: 73.91 kB / 0.8579 GB, free: 87.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/1.29, allocations: 0.6214 MB / 0.8585 GB, free: 87.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/1.29, allocations: 7.531 kB / 0.8585 GB, free: 87.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/1.29, allocations: 3.438 kB / 0.8586 GB, free: 87.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/1.29, allocations: 0 / 0.8586 GB, free: 87.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/1.292, allocations: 1.302 MB / 0.8598 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/1.292, allocations: 3.938 kB / 0.8598 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003198/1.293, allocations: 59.95 kB / 0.8599 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003412/1.293, allocations: 104.9 kB / 0.86 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/1.293, allocations: 11.59 kB / 0.86 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005487/1.294, allocations: 0.6877 MB / 0.8607 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.294, allocations: 3.25 kB / 0.8607 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001284/1.295, allocations: 0.9734 MB / 0.8616 GB, free: 86.37 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001766/1.297, allocations: 1.67 MB / 0.8633 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/1.297, allocations: 149.8 kB / 0.8634 GB, free: 85.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/1.297, allocations: 14.88 kB / 0.8634 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005517/1.298, allocations: 24.03 kB / 0.8634 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.298, allocations: 40.27 kB / 0.8635 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/1.298, allocations: 19.47 kB / 0.8635 GB, free: 85.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0005274/1.299, allocations: 429.4 kB / 0.8639 GB, free: 85.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00341/1.302, allocations: 0.6344 MB / 0.8645 GB, free: 85.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001707/1.304, allocations: 0.5942 MB / 0.8651 GB, free: 85.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/1.306, allocations: 0.988 MB / 0.8661 GB, free: 85.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.306, allocations: 0 / 0.8661 GB, free: 85.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004475/1.306, allocations: 296.5 kB / 0.8663 GB, free: 85.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/1.307, allocations: 231.1 kB / 0.8666 GB, free: 85.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/1.31, allocations: 1.053 MB / 0.8676 GB, free: 84.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005985/1.31, allocations: 1.051 MB / 0.8686 GB, free: 84.21 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/1.31, allocations: 0 / 0.8686 GB, free: 84.21 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)