Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") [: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.1+maint.om/package.mo): time 0.003797/0.003797, allocations: 171.7 kB / 7.445 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.489/1.489, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001847/0.001847, allocations: 119.8 kB / 217.7 MB, free: 8.164 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.216e-06/8.246e-06, allocations: 4 kB / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1138, allocations: 38.76 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9708/1.085, allocations: 315.3 MB / 0.6014 GB, free: 123.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003825/1.085, allocations: 88.08 kB / 0.6015 GB, free: 123.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5679/1.653, allocations: 140.9 MB / 0.739 GB, free: 68.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.039e-05/1.653, allocations: 21.38 kB / 0.739 GB, free: 68.26 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002332/1.656, allocations: 1.071 MB / 0.7401 GB, free: 67.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/1.656, allocations: 9.703 kB / 0.7401 GB, free: 67.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004163/1.656, allocations: 99.12 kB / 0.7402 GB, free: 67.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001366/1.657, allocations: 0.6445 MB / 0.7408 GB, free: 67.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-05/1.657, allocations: 74.84 kB / 0.7409 GB, free: 67.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.52e-05/1.658, allocations: 26.31 kB / 0.7409 GB, free: 67.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008952/1.658, allocations: 0.5993 MB / 0.7415 GB, free: 67.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009633/1.659, allocations: 0.7324 MB / 0.7422 GB, free: 67.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/1.659, allocations: 3.969 kB / 0.7422 GB, free: 67.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.601e-05/1.66, allocations: 2.969 kB / 0.7422 GB, free: 67.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.952e-05/1.66, allocations: 44.78 kB / 0.7423 GB, free: 67.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00435/1.664, allocations: 3.321 MB / 0.7455 GB, free: 65.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/1.664, allocations: 292.5 kB / 0.7458 GB, free: 65.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/1.665, allocations: 228.7 kB / 0.746 GB, free: 65.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001762/1.667, allocations: 1.333 MB / 0.7473 GB, free: 64.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003869/1.667, allocations: 278.5 kB / 0.7476 GB, free: 64.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.484e-06/1.667, allocations: 0 / 0.7476 GB, free: 64.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.002933/1.67, allocations: 1.29 MB / 0.7488 GB, free: 63.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/1.67, allocations: 161.9 kB / 0.749 GB, free: 63.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006733/1.671, allocations: 0.5343 MB / 0.7495 GB, free: 63.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/1.671, allocations: 25.7 kB / 0.7495 GB, free: 63.61 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/1.671, allocations: 342.4 kB / 0.7499 GB, free: 63.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/1.671, allocations: 124.1 kB / 0.75 GB, free: 63.33 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/1.671, allocations: 3 kB / 0.75 GB, free: 63.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/1.671, allocations: 380.5 kB / 0.7503 GB, free: 63.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/1.672, allocations: 239 kB / 0.7506 GB, free: 63.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005156/1.672, allocations: 0.5064 MB / 0.7511 GB, free: 62.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/1.675, allocations: 0.7963 MB / 0.7518 GB, free: 62.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/1.675, allocations: 7.344 kB / 0.7518 GB, free: 62.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004597/1.68, allocations: 1.307 MB / 0.7531 GB, free: 62.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001477/1.681, allocations: 3.484 MB / 0.7565 GB, free: 58.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/1.682, allocations: 11.41 kB / 0.7565 GB, free: 58.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005116/1.682, allocations: 106.8 kB / 0.7566 GB, free: 58.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005597/1.683, allocations: 151.8 kB / 0.7568 GB, free: 58.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000769/1.683, allocations: 0.7179 MB / 0.7575 GB, free: 58.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008321/1.684, allocations: 34.3 kB / 0.7575 GB, free: 58.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.143e-05/1.684, allocations: 45.05 kB / 0.7576 GB, free: 58.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/1.684, allocations: 3.906 kB / 0.7576 GB, free: 58.41 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004184/1.689, allocations: 1.194 MB / 0.7587 GB, free: 58.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/1.689, allocations: 7.219 kB / 0.7587 GB, free: 58.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000385/1.689, allocations: 110.1 kB / 0.7588 GB, free: 58.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/1.689, allocations: 149.4 kB / 0.759 GB, free: 58.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004702/1.69, allocations: 0.67 MB / 0.7596 GB, free: 57.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007258/1.691, allocations: 38.39 kB / 0.7597 GB, free: 57.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/1.691, allocations: 35.25 kB / 0.7597 GB, free: 57.87 MB / 346.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 = 293.15 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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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.0003698/1.691, allocations: 182.2 kB / 0.7599 GB, free: 57.72 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/1.691, allocations: 77.09 kB / 0.76 GB, free: 57.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/1.693, allocations: 0.5846 MB / 0.7605 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/1.693, allocations: 7.562 kB / 0.7605 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/1.693, allocations: 0 / 0.7605 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/1.693, allocations: 3.703 kB / 0.7605 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/1.695, allocations: 1.222 MB / 0.7617 GB, free: 57.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/1.695, allocations: 3.812 kB / 0.7617 GB, free: 57.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/1.695, allocations: 55.72 kB / 0.7618 GB, free: 57.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003396/1.696, allocations: 99.44 kB / 0.7619 GB, free: 57.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/1.696, allocations: 10.94 kB / 0.7619 GB, free: 57.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005789/1.696, allocations: 0.6886 MB / 0.7626 GB, free: 56.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.696, allocations: 0 / 0.7626 GB, free: 56.8 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001366/1.698, allocations: 0.934 MB / 0.7635 GB, free: 56.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/1.698, allocations: 148.5 kB / 0.7636 GB, free: 56.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/1.698, allocations: 7.062 kB / 0.7636 GB, free: 56.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/1.698, allocations: 25.86 kB / 0.7637 GB, free: 56.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/1.699, allocations: 36.69 kB / 0.7637 GB, free: 56.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/1.699, allocations: 21.61 kB / 0.7637 GB, free: 56.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004796/1.699, allocations: 402 kB / 0.7641 GB, free: 56.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002191/1.701, allocations: 0.5233 MB / 0.7646 GB, free: 56.28 MB / 346.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: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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.001462/1.703, allocations: 0.5709 MB / 0.7652 GB, free: 56.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/1.704, allocations: 0.9648 MB / 0.7661 GB, free: 56.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.704, allocations: 3.938 kB / 0.7661 GB, free: 56.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004112/1.705, allocations: 258.2 kB / 0.7664 GB, free: 56 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/1.706, allocations: 221.4 kB / 0.7666 GB, free: 55.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/1.709, allocations: 1.084 MB / 0.7676 GB, free: 55.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008527/1.71, allocations: 1.041 MB / 0.7686 GB, free: 55.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/1.71, allocations: 0 / 0.7686 GB, free: 55.02 MB / 346.7 MB Notification: Performance of Templates: time 0.03476/1.745, allocations: 17.24 MB / 0.7855 GB, free: 54.12 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)