Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009223/0.0009223, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.07/1.07, allocations: 205.2 MB / 214.1 MB, free: 5.168 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008937/0.0008938, allocations: 94.7 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1543/0.1552, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06534/0.2205, allocations: 47.57 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5059/0.7265, allocations: 325.5 MB / 0.672 GB, free: 64.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.7267, allocations: 87.14 kB / 0.6721 GB, free: 64.32 MB / 426.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.4037/1.13, allocations: 143.7 MB / 0.8124 GB, free: 99.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/1.13, allocations: 11.98 kB / 0.8124 GB, free: 99.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000459/1.131, allocations: 103 kB / 0.8125 GB, free: 99.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/1.132, allocations: 0.6162 MB / 0.8131 GB, free: 99.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.281e-05/1.132, allocations: 76.41 kB / 0.8132 GB, free: 99.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/1.132, allocations: 31.91 kB / 0.8132 GB, free: 98.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008457/1.133, allocations: 0.6189 MB / 0.8138 GB, free: 98.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009001/1.134, allocations: 0.746 MB / 0.8145 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/1.134, allocations: 4 kB / 0.8145 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.954e-05/1.134, allocations: 4 kB / 0.8145 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.043e-05/1.134, allocations: 44.97 kB / 0.8146 GB, free: 97.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003928/1.138, allocations: 3.317 MB / 0.8178 GB, free: 94.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004117/1.139, allocations: 322.4 kB / 0.8181 GB, free: 93.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/1.139, allocations: 257.1 kB / 0.8184 GB, free: 93.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001557/1.14, allocations: 1.388 MB / 0.8197 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003572/1.141, allocations: 356.5 kB / 0.8201 GB, free: 91.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 1.804e-06/1.141, allocations: 0 / 0.8201 GB, free: 91.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.002709/1.143, allocations: 1.331 MB / 0.8214 GB, free: 90.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/1.144, allocations: 265 kB / 0.8216 GB, free: 89.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005157/1.144, allocations: 0.5385 MB / 0.8221 GB, free: 89.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.034e-05/1.144, allocations: 33.69 kB / 0.8222 GB, free: 89.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/1.144, allocations: 323.2 kB / 0.8225 GB, free: 88.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.068e-05/1.144, allocations: 134.2 kB / 0.8226 GB, free: 88.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/1.144, allocations: 4 kB / 0.8226 GB, free: 88.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/1.144, allocations: 378.8 kB / 0.823 GB, free: 88.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/1.145, allocations: 249.3 kB / 0.8232 GB, free: 88.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/1.145, allocations: 0.4903 MB / 0.8237 GB, free: 87.58 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/1.148, allocations: 0.8018 MB / 0.8245 GB, free: 86.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.148, allocations: 0 / 0.8245 GB, free: 86.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004015/1.152, allocations: 1.308 MB / 0.8258 GB, free: 85.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003624/1.153, allocations: 2.447 MB / 0.8281 GB, free: 82.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/1.153, allocations: 4 kB / 0.8281 GB, free: 82.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003573/1.153, allocations: 112.8 kB / 0.8283 GB, free: 82.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/1.154, allocations: 143.7 kB / 0.8284 GB, free: 82.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005938/1.154, allocations: 0.7162 MB / 0.8291 GB, free: 81.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/1.155, allocations: 39.98 kB / 0.8291 GB, free: 81.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.958e-05/1.155, allocations: 39.98 kB / 0.8292 GB, free: 81.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.522e-06/1.155, allocations: 4 kB / 0.8292 GB, free: 81.75 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003929/1.159, allocations: 1.194 MB / 0.8303 GB, free: 80.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/1.159, allocations: 11.91 kB / 0.8303 GB, free: 80.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003166/1.159, allocations: 108.8 kB / 0.8304 GB, free: 80.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/1.16, allocations: 135.8 kB / 0.8306 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003908/1.16, allocations: 0.6694 MB / 0.8312 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005601/1.161, allocations: 39.95 kB / 0.8313 GB, free: 79.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.938e-05/1.161, allocations: 40.05 kB / 0.8313 GB, free: 79.53 MB / 426.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.0002404/1.161, allocations: 182 kB / 0.8315 GB, free: 79.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.692e-05/1.161, allocations: 75.19 kB / 0.8316 GB, free: 79.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/1.162, allocations: 0.6194 MB / 0.8322 GB, free: 78.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.162, allocations: 4 kB / 0.8322 GB, free: 78.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.162, allocations: 3.906 kB / 0.8322 GB, free: 78.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/1.162, allocations: 0 / 0.8322 GB, free: 78.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/1.164, allocations: 1.303 MB / 0.8334 GB, free: 77.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/1.164, allocations: 0 / 0.8334 GB, free: 77.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002976/1.165, allocations: 63.91 kB / 0.8335 GB, free: 77.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003139/1.165, allocations: 104.8 kB / 0.8336 GB, free: 77.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/1.165, allocations: 7.984 kB / 0.8336 GB, free: 77.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000489/1.166, allocations: 0.7005 MB / 0.8343 GB, free: 76.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/1.166, allocations: 3.938 kB / 0.8343 GB, free: 76.38 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001178/1.167, allocations: 0.9669 MB / 0.8352 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00154/1.168, allocations: 1.667 MB / 0.8369 GB, free: 73.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/1.169, allocations: 148.2 kB / 0.837 GB, free: 73.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/1.169, allocations: 8 kB / 0.837 GB, free: 73.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/1.169, allocations: 32.03 kB / 0.837 GB, free: 73.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.019e-05/1.169, allocations: 35.94 kB / 0.8371 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/1.169, allocations: 27.92 kB / 0.8371 GB, free: 73.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003777/1.17, allocations: 423.1 kB / 0.8375 GB, free: 73.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002742/1.172, allocations: 0.6312 MB / 0.8381 GB, free: 72.38 MB / 426.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.001308/1.174, allocations: 0.5984 MB / 0.8387 GB, free: 71.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/1.175, allocations: 0.997 MB / 0.8397 GB, free: 70.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.175, allocations: 4.062 kB / 0.8397 GB, free: 70.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003905/1.176, allocations: 290.2 kB / 0.84 GB, free: 70.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/1.177, allocations: 219.9 kB / 0.8402 GB, free: 70.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/1.178, allocations: 1.061 MB / 0.8412 GB, free: 69.21 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005158/1.179, allocations: 1.046 MB / 0.8422 GB, free: 68.14 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/1.179, allocations: 0 / 0.8422 GB, free: 68.14 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)