Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") [: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.001548/0.001548, allocations: 168.9 kB / 8.47 MB, free: 1.852 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.381/1.381, allocations: 205.2 MB / 214.1 MB, free: 5.055 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.0008389/0.0008389, allocations: 87.28 kB / 262.1 MB, free: 5.109 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.855e-06/7.895e-06, allocations: 0 / 315 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07501/0.07503, allocations: 47.58 MB / 362.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5878/0.6629, allocations: 323.4 MB / 0.6699 GB, free: 66.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.6631, allocations: 87.14 kB / 0.67 GB, free: 66.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.8482/1.511, allocations: 281.7 MB / 0.9451 GB, free: 62.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.835e-05/1.511, allocations: 42.38 kB / 0.9451 GB, free: 62.29 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003991/1.515, allocations: 1.789 MB / 0.9469 GB, free: 61.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/1.515, allocations: 7.312 kB / 0.9469 GB, free: 61.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006137/1.516, allocations: 164.9 kB / 0.947 GB, free: 61.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/1.518, allocations: 1.049 MB / 0.9481 GB, free: 61.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.468e-05/1.518, allocations: 40.23 kB / 0.9481 GB, free: 61.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/1.518, allocations: 54.47 kB / 0.9482 GB, free: 61.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001996/1.52, allocations: 1.472 MB / 0.9496 GB, free: 61.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/1.522, allocations: 1.504 MB / 0.9511 GB, free: 60.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/1.522, allocations: 6.312 kB / 0.9511 GB, free: 60.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/1.522, allocations: 3.031 kB / 0.9511 GB, free: 60.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.098e-05/1.523, allocations: 106.9 kB / 0.9512 GB, free: 60.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008401/1.531, allocations: 6.309 MB / 0.9573 GB, free: 57.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008512/1.532, allocations: 0.6739 MB / 0.958 GB, free: 57.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000636/1.532, allocations: 0.5433 MB / 0.9585 GB, free: 57.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003618/1.536, allocations: 2.816 MB / 0.9613 GB, free: 56.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/1.536, allocations: 48.44 kB / 0.9613 GB, free: 56.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.725e-06/1.536, allocations: 0 / 0.9613 GB, free: 56.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.009974/1.546, allocations: 3.245 MB / 0.9645 GB, free: 55.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/1.546, allocations: 192.5 kB / 0.9647 GB, free: 55.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/1.547, allocations: 0.873 MB / 0.9655 GB, free: 55.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/1.547, allocations: 36.83 kB / 0.9656 GB, free: 55.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/1.548, allocations: 0.5086 MB / 0.9661 GB, free: 55.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/1.548, allocations: 310.5 kB / 0.9663 GB, free: 54.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.902e-05/1.548, allocations: 0 / 0.9663 GB, free: 54.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.365e-05/1.548, allocations: 357.7 kB / 0.9667 GB, free: 54.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007085/1.549, allocations: 0.5457 MB / 0.9672 GB, free: 54.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008441/1.55, allocations: 0.9353 MB / 0.9681 GB, free: 54.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.56, allocations: 2.309 MB / 0.9704 GB, free: 54.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/1.56, allocations: 3.844 kB / 0.9704 GB, free: 54.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.01235/1.572, allocations: 3.374 MB / 0.9737 GB, free: 54.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007273/1.573, allocations: 4.354 MB / 0.9779 GB, free: 49.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/1.573, allocations: 15.06 kB / 0.978 GB, free: 49.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/1.574, allocations: 335.3 kB / 0.9783 GB, free: 49.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/1.575, allocations: 284.1 kB / 0.9785 GB, free: 49.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/1.579, allocations: 2.531 MB / 0.981 GB, free: 47.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/1.58, allocations: 87.16 kB / 0.9811 GB, free: 47.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/1.58, allocations: 65.67 kB / 0.9812 GB, free: 47.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/1.58, allocations: 3.875 kB / 0.9812 GB, free: 47.96 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01267/1.593, allocations: 3.072 MB / 0.9842 GB, free: 47.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/1.593, allocations: 9.656 kB / 0.9842 GB, free: 47.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009312/1.594, allocations: 273.4 kB / 0.9844 GB, free: 47.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/1.595, allocations: 287 kB / 0.9847 GB, free: 47.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002902/1.598, allocations: 2.275 MB / 0.9869 GB, free: 46.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/1.599, allocations: 75.33 kB / 0.987 GB, free: 46.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/1.6, allocations: 64.64 kB / 0.9871 GB, free: 46.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000357/1.6, allocations: 150.5 kB / 0.9872 GB, free: 46.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/1.6, allocations: 126.5 kB / 0.9873 GB, free: 46.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003837/1.604, allocations: 1.605 MB / 0.9889 GB, free: 46.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/1.604, allocations: 11.53 kB / 0.9889 GB, free: 46.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.604, allocations: 0 / 0.9889 GB, free: 46.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/1.604, allocations: 7.312 kB / 0.9889 GB, free: 46.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005057/1.609, allocations: 2.782 MB / 0.9916 GB, free: 45.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/1.609, allocations: 3.875 kB / 0.9916 GB, free: 45.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007077/1.61, allocations: 152.8 kB / 0.9918 GB, free: 45.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/1.611, allocations: 324 kB / 0.9921 GB, free: 45.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-05/1.611, allocations: 16.11 kB / 0.9921 GB, free: 45.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002385/1.613, allocations: 2.309 MB / 0.9944 GB, free: 44.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.613, allocations: 6.375 kB / 0.9944 GB, free: 44.07 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003629/1.617, allocations: 2.195 MB / 0.9965 GB, free: 43.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/1.617, allocations: 223.2 kB / 0.9967 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002383/1.618, allocations: 19.47 kB / 0.9967 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009057/1.619, allocations: 57.03 kB / 0.9968 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/1.619, allocations: 93.45 kB / 0.9969 GB, free: 43.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.103e-05/1.619, allocations: 46.19 kB / 0.9969 GB, free: 43.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007828/1.62, allocations: 0.6575 MB / 0.9976 GB, free: 43.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003344/1.623, allocations: 1.148 MB / 0.9987 GB, free: 43.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002269/1.625, allocations: 1.095 MB / 0.9998 GB, free: 42.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003263/1.629, allocations: 2.147 MB / 1.002 GB, free: 42.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.629, allocations: 3.062 kB / 1.002 GB, free: 42.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/1.63, allocations: 0.6637 MB / 1.003 GB, free: 42.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/1.632, allocations: 461.6 kB / 1.003 GB, free: 42.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003638/1.635, allocations: 2.112 MB / 1.005 GB, free: 42.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009298/1.636, allocations: 1.411 MB / 1.006 GB, free: 41.66 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/1.636, allocations: 3.906 kB / 1.006 GB, free: 41.66 MB / 426.7 MB Notification: Performance of Templates: time 0.05961/1.696, allocations: 41.07 MB / 1.047 GB, free: 21.17 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_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/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches