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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00213/0.00213, allocations: 183.8 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.4 MB / 224.2 MB, free: 9.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 94.97 kB / 272.5 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003398, allocations: 12 kB / 329.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2845, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7169/1.002, allocations: 326.4 MB / 0.687 GB, free: 138.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/1.002, allocations: 101.8 kB / 0.6871 GB, free: 138.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4578/1.46, allocations: 142.7 MB / 0.8264 GB, free: 92.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.46, allocations: 0 / 0.8264 GB, free: 92.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.95e-05/1.46, allocations: 19.33 kB / 0.8264 GB, free: 92.34 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.002219/1.462, allocations: 1.166 MB / 0.8276 GB, free: 91.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/1.462, allocations: 10.75 kB / 0.8276 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003593/1.462, allocations: 99.03 kB / 0.8277 GB, free: 91.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/1.464, allocations: 0.6354 MB / 0.8283 GB, free: 91.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.112e-05/1.464, allocations: 97.17 kB / 0.8284 GB, free: 91.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.591e-05/1.464, allocations: 51.64 kB / 0.8284 GB, free: 91.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/1.465, allocations: 0.8251 MB / 0.8292 GB, free: 91.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/1.465, allocations: 6.094 kB / 0.8292 GB, free: 91.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.827e-05/1.465, allocations: 27.84 kB / 0.8293 GB, free: 91.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/1.465, allocations: 40.59 kB / 0.8293 GB, free: 91.24 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009155/1.466, allocations: 0.6764 MB / 0.83 GB, free: 91.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/1.47, allocations: 3.378 MB / 0.8333 GB, free: 89.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005751/1.47, allocations: 432.8 kB / 0.8337 GB, free: 89.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/1.471, allocations: 262.6 kB / 0.8339 GB, free: 89.34 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001442/1.472, allocations: 1.362 MB / 0.8353 GB, free: 88.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/1.473, allocations: 374.9 kB / 0.8356 GB, free: 88.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 1.793e-06/1.473, allocations: 3 kB / 0.8356 GB, free: 88.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.003637/1.476, allocations: 1.895 MB / 0.8375 GB, free: 87.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/1.476, allocations: 261.1 kB / 0.8377 GB, free: 87.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008304/1.477, allocations: 0.777 MB / 0.8385 GB, free: 87.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.226e-05/1.477, allocations: 36.05 kB / 0.8385 GB, free: 87.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002301/1.478, allocations: 404.2 kB / 0.8389 GB, free: 87.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.359e-05/1.478, allocations: 130.5 kB / 0.839 GB, free: 87.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/1.478, allocations: 17.84 kB / 0.839 GB, free: 87.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/1.478, allocations: 392.3 kB / 0.8394 GB, free: 86.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003666/1.478, allocations: 260.5 kB / 0.8397 GB, free: 86.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000465/1.479, allocations: 0.5112 MB / 0.8402 GB, free: 86.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3874/1.866, allocations: 65.69 MB / 0.9043 GB, free: 67.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/1.866, allocations: 4 kB / 0.9043 GB, free: 67.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002013/1.868, allocations: 0.9828 MB / 0.9053 GB, free: 67.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000157/1.868, allocations: 310.9 kB / 0.9056 GB, free: 66.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/1.868, allocations: 8 kB / 0.9056 GB, free: 66.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005665/1.869, allocations: 130.2 kB / 0.9057 GB, free: 66.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005062/1.869, allocations: 139.4 kB / 0.9058 GB, free: 66.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005577/1.87, allocations: 0.6806 MB / 0.9065 GB, free: 65.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008618/1.871, allocations: 48.44 kB / 0.9066 GB, free: 65.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/1.871, allocations: 46.28 kB / 0.9066 GB, free: 65.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/1.871, allocations: 5.719 kB / 0.9066 GB, free: 65.83 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/1.873, allocations: 0.9182 MB / 0.9075 GB, free: 65.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/1.873, allocations: 11.94 kB / 0.9075 GB, free: 65.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/1.873, allocations: 122.2 kB / 0.9076 GB, free: 65.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/1.874, allocations: 136.1 kB / 0.9078 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00049/1.874, allocations: 0.6549 MB / 0.9084 GB, free: 64.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007989/1.875, allocations: 55.23 kB / 0.9085 GB, free: 64.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-05/1.875, allocations: 46.19 kB / 0.9085 GB, free: 64.46 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true 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" fixed = true 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 ($PRE.tank.aboveLevel[1],$whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked 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.0005674/1.876, allocations: 385.1 kB / 0.9089 GB, free: 64.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/1.876, allocations: 89.3 kB / 0.9089 GB, free: 64.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/1.877, allocations: 0.7369 MB / 0.9097 GB, free: 63.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/1.877, allocations: 11.69 kB / 0.9097 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/1.877, allocations: 0 / 0.9097 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/1.877, allocations: 3.141 kB / 0.9097 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/1.879, allocations: 1.471 MB / 0.9111 GB, free: 62.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.879, allocations: 0 / 0.9111 GB, free: 62.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/1.88, allocations: 56.75 kB / 0.9112 GB, free: 62.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/1.88, allocations: 131.4 kB / 0.9113 GB, free: 62.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.296e-05/1.88, allocations: 23.56 kB / 0.9113 GB, free: 62.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004266/1.881, allocations: 0.6614 MB / 0.912 GB, free: 61.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.881, allocations: 0 / 0.912 GB, free: 61.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/1.882, allocations: 1.103 MB / 0.913 GB, free: 60.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/1.882, allocations: 156.7 kB / 0.9132 GB, free: 60.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/1.882, allocations: 14.69 kB / 0.9132 GB, free: 60.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005076/1.883, allocations: 43.84 kB / 0.9132 GB, free: 60.72 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.713e-05/1.883, allocations: 38.44 kB / 0.9133 GB, free: 60.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/1.883, allocations: 15.81 kB / 0.9133 GB, free: 60.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006215/1.884, allocations: 0.5441 MB / 0.9138 GB, free: 60.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.884, allocations: 0 / 0.9138 GB, free: 60.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001751/1.885, allocations: 0.5889 MB / 0.9144 GB, free: 59.73 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) * Number of clocked states: 0 () * 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.001568/1.887, allocations: 0.5871 MB / 0.915 GB, free: 59.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001979/1.889, allocations: 1.177 MB / 0.9161 GB, free: 58.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/1.889, allocations: 0 / 0.9161 GB, free: 58.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/1.89, allocations: 347.2 kB / 0.9165 GB, free: 58.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/1.891, allocations: 314.4 kB / 0.9168 GB, free: 57.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/1.893, allocations: 1.703 MB / 0.9184 GB, free: 56.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/1.894, allocations: 0.9688 MB / 0.9194 GB, free: 55.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008778/1.895, allocations: 244.7 kB / 0.9196 GB, free: 55.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/1.895, allocations: 58.69 kB / 0.9197 GB, free: 55.02 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/1.895, allocations: 0 / 0.9197 GB, free: 55.02 MB / 426.7 MB Notification: Performance of Templates: time 0.02767/1.923, allocations: 18.82 MB / 0.938 GB, free: 36.67 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/jenkins1/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