Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [: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.001846/0.001845, allocations: 181.8 kB / 8.154 MB, free: 2.199 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.776/1.776, allocations: 205.2 MB / 213.8 MB, free: 13.85 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.001367/0.001366, allocations: 94.3 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.415e-06/8.586e-06, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2422, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7796/1.022, allocations: 320.9 MB / 0.6668 GB, free: 118.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/1.022, allocations: 84.36 kB / 0.6669 GB, free: 118.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4811/1.503, allocations: 137.1 MB / 0.8007 GB, free: 26.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.863e-05/1.504, allocations: 16 kB / 0.8007 GB, free: 26.46 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003505/1.507, allocations: 1.025 MB / 0.8017 GB, free: 25.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/1.507, allocations: 8.031 kB / 0.8018 GB, free: 25.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007024/1.508, allocations: 90.98 kB / 0.8018 GB, free: 25.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/1.51, allocations: 0.591 MB / 0.8024 GB, free: 24.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.246e-05/1.51, allocations: 16 kB / 0.8024 GB, free: 24.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/1.51, allocations: 28 kB / 0.8025 GB, free: 24.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001806/1.512, allocations: 0.6266 MB / 0.8031 GB, free: 23.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/1.514, allocations: 0.6699 MB / 0.8037 GB, free: 23.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/1.514, allocations: 0 / 0.8037 GB, free: 23.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/1.514, allocations: 4 kB / 0.8037 GB, free: 23.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.088e-05/1.514, allocations: 48.81 kB / 0.8038 GB, free: 23.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006881/1.521, allocations: 2.73 MB / 0.8064 GB, free: 20.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/1.522, allocations: 374.9 kB / 0.8068 GB, free: 19.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005653/1.522, allocations: 250.1 kB / 0.807 GB, free: 19.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003617/1.523, allocations: 341.3 kB / 0.8074 GB, free: 19.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/1.523, allocations: 39 kB / 0.8074 GB, free: 19.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.967e-06/1.523, allocations: 0 / 0.8074 GB, free: 19.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.009859/1.533, allocations: 1.863 MB / 0.8092 GB, free: 17.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/1.533, allocations: 85.61 kB / 0.8093 GB, free: 17.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009208/1.534, allocations: 454 kB / 0.8097 GB, free: 16.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002063/1.534, allocations: 29.7 kB / 0.8098 GB, free: 16.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/1.534, allocations: 294.5 kB / 0.81 GB, free: 16.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/1.535, allocations: 197.1 kB / 0.8102 GB, free: 16.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/1.535, allocations: 0 / 0.8102 GB, free: 16.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/1.535, allocations: 346.7 kB / 0.8106 GB, free: 15.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007424/1.535, allocations: 273.5 kB / 0.8108 GB, free: 15.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007909/1.536, allocations: 433.4 kB / 0.8112 GB, free: 15.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007305/1.544, allocations: 0.8888 MB / 0.8121 GB, free: 14.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/1.544, allocations: 4 kB / 0.8121 GB, free: 14.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.008933/1.553, allocations: 1.402 MB / 0.8135 GB, free: 12.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003907/1.553, allocations: 1.745 MB / 0.8152 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/1.553, allocations: 4 kB / 0.8152 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008833/1.554, allocations: 164.7 kB / 0.8153 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/1.555, allocations: 147.8 kB / 0.8155 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/1.558, allocations: 0.9776 MB / 0.8164 GB, free: 9.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009572/1.559, allocations: 35.94 kB / 0.8165 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/1.559, allocations: 31.98 kB / 0.8165 GB, free: 9.594 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/1.559, allocations: 4 kB / 0.8165 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008394/1.568, allocations: 1.264 MB / 0.8177 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/1.568, allocations: 4 kB / 0.8177 GB, free: 8.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006322/1.568, allocations: 108.8 kB / 0.8178 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/1.57, allocations: 159.7 kB / 0.818 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00207/1.572, allocations: 0.8217 MB / 0.8188 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009487/1.573, allocations: 43.88 kB / 0.8188 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.712e-05/1.573, allocations: 24.06 kB / 0.8189 GB, free: 7.137 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002932/1.573, allocations: 45.52 kB / 0.8189 GB, free: 7.086 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/1.574, allocations: 67.25 kB / 0.819 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/1.577, allocations: 0.8583 MB / 0.8198 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/1.577, allocations: 4 kB / 0.8198 GB, free: 6.148 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/1.577, allocations: 7.906 kB / 0.8198 GB, free: 6.141 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/1.577, allocations: 3.984 kB / 0.8198 GB, free: 6.137 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00531/1.583, allocations: 1.588 MB / 0.8214 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/1.583, allocations: 8.062 kB / 0.8214 GB, free: 4.484 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/1.584, allocations: 111.8 kB / 0.8215 GB, free: 4.375 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009002/1.585, allocations: 164.7 kB / 0.8217 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/1.585, allocations: 8 kB / 0.8217 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001963/1.587, allocations: 0.8918 MB / 0.8225 GB, free: 3.285 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/1.587, allocations: 4.062 kB / 0.8225 GB, free: 3.281 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004097/1.591, allocations: 1.281 MB / 0.8238 GB, free: 1.965 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003471/1.591, allocations: 148.2 kB / 0.8239 GB, free: 1.801 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/1.592, allocations: 4 kB / 0.8239 GB, free: 1.797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009441/1.592, allocations: 27.97 kB / 0.824 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/1.593, allocations: 52.58 kB / 0.824 GB, free: 1.719 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.43e-05/1.593, allocations: 23.98 kB / 0.824 GB, free: 1.695 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0006246/1.593, allocations: 346.9 kB / 0.8244 GB, free: 1.359 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00255/1.596, allocations: 0.5464 MB / 0.8249 GB, free: 0.8125 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001984/1.598, allocations: 0.5803 MB / 0.8255 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1562/1.754, allocations: 1.087 MB / 0.8265 GB, free: 134.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/1.754, allocations: 0 / 0.8265 GB, free: 134.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/1.755, allocations: 367 kB / 0.8269 GB, free: 134.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002875/1.758, allocations: 283.9 kB / 0.8271 GB, free: 134.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/1.762, allocations: 1.21 MB / 0.8283 GB, free: 134.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.763, allocations: 1.048 MB / 0.8293 GB, free: 133.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/1.764, allocations: 0 / 0.8293 GB, free: 133.7 MB / 426.7 MB Notification: Performance of Templates: time 0.03598/1.8, allocations: 17.41 MB / 0.8463 GB, free: 133.3 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_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/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches