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: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_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.3+maint.om/package.mo): time 0.001147/0.001147, 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.511/1.511, allocations: 205.2 MB / 214.1 MB, free: 1.898 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.0009111/0.0009111, allocations: 87.39 kB / 262.1 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.484e-06, allocations: 4 kB / 315 MB, free: 23.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 47.58 MB / 362.6 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.721/0.8294, allocations: 325.7 MB / 0.6722 GB, free: 2.395 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.8296, allocations: 86.67 kB / 0.6723 GB, free: 2.352 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.502/1.332, allocations: 142.6 MB / 0.8115 GB, free: 56.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.853e-05/1.332, allocations: 23.94 kB / 0.8115 GB, free: 56.71 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.002795/1.335, allocations: 1.072 MB / 0.8126 GB, free: 55.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/1.335, allocations: 8.031 kB / 0.8126 GB, free: 55.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006112/1.335, allocations: 103 kB / 0.8127 GB, free: 55.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/1.337, allocations: 0.6133 MB / 0.8133 GB, free: 54.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.146e-05/1.337, allocations: 72.41 kB / 0.8134 GB, free: 54.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/1.337, allocations: 31.94 kB / 0.8134 GB, free: 54.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009493/1.338, allocations: 0.615 MB / 0.814 GB, free: 54.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/1.339, allocations: 0.7421 MB / 0.8147 GB, free: 53.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/1.339, allocations: 11.94 kB / 0.8147 GB, free: 53.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.932e-05/1.339, allocations: 0 / 0.8147 GB, free: 53.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.526e-05/1.339, allocations: 44.97 kB / 0.8148 GB, free: 53.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004497/1.343, allocations: 3.316 MB / 0.818 GB, free: 49.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004313/1.344, allocations: 322.4 kB / 0.8183 GB, free: 49.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/1.344, allocations: 257.1 kB / 0.8186 GB, free: 49.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001751/1.346, allocations: 1.396 MB / 0.8199 GB, free: 47.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/1.346, allocations: 352.9 kB / 0.8203 GB, free: 47.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.144e-06/1.346, allocations: 0 / 0.8203 GB, free: 47.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.003078/1.349, allocations: 1.331 MB / 0.8216 GB, free: 45.85 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/1.35, allocations: 269 kB / 0.8218 GB, free: 45.53 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/1.35, allocations: 0.5347 MB / 0.8223 GB, free: 44.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/1.35, allocations: 33.69 kB / 0.8224 GB, free: 44.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/1.35, allocations: 327.2 kB / 0.8227 GB, free: 44.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/1.351, allocations: 134.2 kB / 0.8228 GB, free: 44.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/1.351, allocations: 4 kB / 0.8228 GB, free: 44.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/1.351, allocations: 382.7 kB / 0.8232 GB, free: 44.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/1.351, allocations: 253.3 kB / 0.8234 GB, free: 43.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/1.352, allocations: 0.4903 MB / 0.8239 GB, free: 43.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003226/1.355, allocations: 0.7904 MB / 0.8247 GB, free: 42.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.355, allocations: 3.938 kB / 0.8247 GB, free: 42.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004316/1.359, allocations: 1.312 MB / 0.826 GB, free: 41.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007404/1.36, allocations: 2.445 MB / 0.8283 GB, free: 38.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/1.36, allocations: 4 kB / 0.8284 GB, free: 38.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004373/1.36, allocations: 120.7 kB / 0.8285 GB, free: 38.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/1.361, allocations: 131.8 kB / 0.8286 GB, free: 38.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007594/1.362, allocations: 0.7278 MB / 0.8293 GB, free: 37.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008018/1.362, allocations: 36.08 kB / 0.8293 GB, free: 37.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.41e-05/1.363, allocations: 35.98 kB / 0.8294 GB, free: 37.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/1.363, allocations: 4 kB / 0.8294 GB, free: 37.42 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00403/1.367, allocations: 1.198 MB / 0.8305 GB, free: 36.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.367, allocations: 8 kB / 0.8306 GB, free: 36.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000327/1.367, allocations: 104.8 kB / 0.8307 GB, free: 36.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/1.367, allocations: 139.9 kB / 0.8308 GB, free: 35.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004234/1.368, allocations: 0.6772 MB / 0.8314 GB, free: 35.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000602/1.369, allocations: 39.98 kB / 0.8315 GB, free: 35.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/1.369, allocations: 35.98 kB / 0.8315 GB, free: 35.19 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.0002702/1.369, allocations: 176.1 kB / 0.8317 GB, free: 35.01 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/1.369, allocations: 71.16 kB / 0.8318 GB, free: 34.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/1.37, allocations: 0.6099 MB / 0.8324 GB, free: 34.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/1.37, allocations: 4 kB / 0.8324 GB, free: 34.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/1.37, allocations: 0 / 0.8324 GB, free: 34.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/1.37, allocations: 0 / 0.8324 GB, free: 34.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/1.372, allocations: 1.305 MB / 0.8336 GB, free: 32.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/1.373, allocations: 7.922 kB / 0.8336 GB, free: 32.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/1.373, allocations: 63.94 kB / 0.8337 GB, free: 32.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003327/1.373, allocations: 100.8 kB / 0.8338 GB, free: 32.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.963e-05/1.373, allocations: 11.98 kB / 0.8338 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005913/1.374, allocations: 0.6966 MB / 0.8345 GB, free: 32.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/1.374, allocations: 3.938 kB / 0.8345 GB, free: 32.04 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001411/1.375, allocations: 0.9787 MB / 0.8354 GB, free: 31.03 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/1.375, allocations: 144.4 kB / 0.8356 GB, free: 30.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/1.376, allocations: 19.98 kB / 0.8356 GB, free: 30.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005301/1.376, allocations: 31.91 kB / 0.8356 GB, free: 30.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/1.376, allocations: 31.86 kB / 0.8357 GB, free: 30.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-05/1.376, allocations: 27.98 kB / 0.8357 GB, free: 30.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004659/1.377, allocations: 423.1 kB / 0.8361 GB, free: 30.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001976/1.379, allocations: 0.5503 MB / 0.8366 GB, free: 29.8 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.001909/1.381, allocations: 0.595 MB / 0.8372 GB, free: 29.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/1.382, allocations: 0.9906 MB / 0.8382 GB, free: 28.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.382, allocations: 10.44 kB / 0.8382 GB, free: 28.19 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004106/1.383, allocations: 286.1 kB / 0.8385 GB, free: 27.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/1.384, allocations: 226.8 kB / 0.8387 GB, free: 27.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/1.386, allocations: 1.052 MB / 0.8397 GB, free: 26.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005465/1.386, allocations: 1.035 MB / 0.8407 GB, free: 25.53 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/1.386, allocations: 3.938 kB / 0.8407 GB, free: 25.52 MB / 426.7 MB Notification: Performance of Templates: time 0.02665/1.413, allocations: 18.98 MB / 0.8593 GB, free: 6.504 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (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 & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches