Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") [: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 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 184.1 kB / 8.136 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.164/1.164, allocations: 221.4 MB / 230 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 89.08 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.422e-06/6.442e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2007, allocations: 50.39 MB / 386.9 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5582/0.7589, allocations: 323.7 MB / 0.6939 GB, free: 145.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.7592, allocations: 91.89 kB / 0.694 GB, free: 145.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.6033/1.362, allocations: 195.6 MB / 0.885 GB, free: 93.56 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001367/1.363, allocations: 30.06 kB / 0.885 GB, free: 93.56 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004533/1.367, allocations: 1.294 MB / 0.8863 GB, free: 92.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/1.367, allocations: 11.72 kB / 0.8863 GB, free: 92.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007918/1.368, allocations: 110.4 kB / 0.8864 GB, free: 92.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001717/1.37, allocations: 0.7396 MB / 0.8871 GB, free: 92.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/1.37, allocations: 23.28 kB / 0.8871 GB, free: 92.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/1.37, allocations: 36.94 kB / 0.8872 GB, free: 92.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001414/1.371, allocations: 0.9184 MB / 0.8881 GB, free: 92.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/1.373, allocations: 0.9745 MB / 0.889 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/1.373, allocations: 5.594 kB / 0.889 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/1.373, allocations: 3.25 kB / 0.889 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.791e-05/1.373, allocations: 69.91 kB / 0.8891 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006683/1.38, allocations: 4.257 MB / 0.8933 GB, free: 90.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/1.38, allocations: 427.6 kB / 0.8937 GB, free: 90.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004516/1.381, allocations: 312.7 kB / 0.894 GB, free: 90.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002621/1.384, allocations: 2.016 MB / 0.8959 GB, free: 88.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/1.384, allocations: 43.77 kB / 0.896 GB, free: 88.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.484e-06/1.384, allocations: 3.188 kB / 0.896 GB, free: 88.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.006244/1.39, allocations: 1.804 MB / 0.8977 GB, free: 88.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/1.39, allocations: 161.2 kB / 0.8979 GB, free: 88.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008651/1.391, allocations: 0.6337 MB / 0.8985 GB, free: 87.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.583e-05/1.391, allocations: 29.64 kB / 0.8985 GB, free: 87.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/1.391, allocations: 393.6 kB / 0.8989 GB, free: 87.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/1.391, allocations: 158.9 kB / 0.8991 GB, free: 87.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/1.391, allocations: 3.25 kB / 0.8991 GB, free: 87.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.707e-05/1.391, allocations: 381.9 kB / 0.8994 GB, free: 86.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/1.392, allocations: 306.7 kB / 0.8997 GB, free: 86.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005037/1.392, allocations: 0.582 MB / 0.9003 GB, free: 86.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/1.395, allocations: 0.7846 MB / 0.9011 GB, free: 86.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/1.395, allocations: 3.875 kB / 0.9011 GB, free: 86.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003193/1.398, allocations: 1.4 MB / 0.9024 GB, free: 85.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006034/1.398, allocations: 3.308 MB / 0.9057 GB, free: 82.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/1.398, allocations: 7.812 kB / 0.9057 GB, free: 82.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006005/1.399, allocations: 169.5 kB / 0.9058 GB, free: 82.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007619/1.4, allocations: 170.8 kB / 0.906 GB, free: 82.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/1.402, allocations: 1.541 MB / 0.9075 GB, free: 81.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009061/1.403, allocations: 53.48 kB / 0.9075 GB, free: 81.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.415e-05/1.403, allocations: 44.41 kB / 0.9076 GB, free: 81.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/1.403, allocations: 7 kB / 0.9076 GB, free: 81.06 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003057/1.406, allocations: 1.219 MB / 0.9088 GB, free: 80.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/1.406, allocations: 15.59 kB / 0.9088 GB, free: 80.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005742/1.407, allocations: 165.1 kB / 0.909 GB, free: 80.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006062/1.407, allocations: 180.4 kB / 0.9091 GB, free: 80.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/1.409, allocations: 1.441 MB / 0.9105 GB, free: 79.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007858/1.409, allocations: 39 kB / 0.9106 GB, free: 79.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-05/1.41, allocations: 45.25 kB / 0.9106 GB, free: 79.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002654/1.41, allocations: 136.2 kB / 0.9107 GB, free: 79.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/1.41, allocations: 79.03 kB / 0.9108 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/1.412, allocations: 0.8429 MB / 0.9116 GB, free: 79.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/1.412, allocations: 7.5 kB / 0.9117 GB, free: 79.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/1.412, allocations: 0 / 0.9117 GB, free: 79.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/1.412, allocations: 0 / 0.9117 GB, free: 79.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/1.415, allocations: 1.574 MB / 0.9132 GB, free: 78.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/1.415, allocations: 3.438 kB / 0.9132 GB, free: 78.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/1.415, allocations: 71.44 kB / 0.9133 GB, free: 78.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005694/1.416, allocations: 161.6 kB / 0.9134 GB, free: 78.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.594e-05/1.416, allocations: 7.625 kB / 0.9134 GB, free: 78.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/1.417, allocations: 1.418 MB / 0.9148 GB, free: 77.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.417, allocations: 0 / 0.9148 GB, free: 77.13 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001764/1.419, allocations: 1.15 MB / 0.9159 GB, free: 76.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/1.419, allocations: 174.5 kB / 0.9161 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/1.42, allocations: 3.594 kB / 0.9161 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005561/1.42, allocations: 36.75 kB / 0.9161 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/1.42, allocations: 46.34 kB / 0.9162 GB, free: 76.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-05/1.42, allocations: 23.28 kB / 0.9162 GB, free: 76.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004903/1.421, allocations: 496.9 kB / 0.9167 GB, free: 76.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002131/1.423, allocations: 0.7841 MB / 0.9174 GB, free: 76.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00152/1.424, allocations: 0.8126 MB / 0.9182 GB, free: 75.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001774/1.426, allocations: 1.189 MB / 0.9194 GB, free: 75.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.426, allocations: 0 / 0.9194 GB, free: 75.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/1.427, allocations: 300.9 kB / 0.9197 GB, free: 75.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/1.428, allocations: 293.7 kB / 0.92 GB, free: 75.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/1.43, allocations: 1.248 MB / 0.9212 GB, free: 74.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006438/1.431, allocations: 1.136 MB / 0.9223 GB, free: 74 MB / 442.7 MB Notification: Performance of SimCode: time 2.8e-07/1.431, allocations: 5.062 kB / 0.9223 GB, free: 74 MB / 442.7 MB Notification: Performance of Templates: time 0.03323/1.464, allocations: 25.63 MB / 0.9473 GB, free: 54.16 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches