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.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") [: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.002496/0.002495, allocations: 177.1 kB / 8.148 MB, free: 2.195 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.792/1.792, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001304/0.001303, allocations: 92.55 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.644e-05/1.668e-05, allocations: 4 kB / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2476, allocations: 47.56 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7529/1.001, allocations: 327.4 MB / 0.6731 GB, free: 119.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/1.001, allocations: 94.88 kB / 0.6732 GB, free: 119.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.7357/1.737, allocations: 166 MB / 0.8353 GB, free: 85.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.852e-05/1.737, allocations: 18.38 kB / 0.8353 GB, free: 85.73 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003572/1.74, allocations: 1.114 MB / 0.8364 GB, free: 85.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/1.74, allocations: 7.219 kB / 0.8364 GB, free: 85.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007313/1.741, allocations: 102.8 kB / 0.8365 GB, free: 85.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002025/1.743, allocations: 0.634 MB / 0.8371 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.004e-05/1.743, allocations: 19.22 kB / 0.8371 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/1.743, allocations: 30.25 kB / 0.8372 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001925/1.745, allocations: 0.7249 MB / 0.8379 GB, free: 84.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/1.747, allocations: 0.8059 MB / 0.8387 GB, free: 84.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/1.747, allocations: 4.406 kB / 0.8387 GB, free: 84.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/1.748, allocations: 7.594 kB / 0.8387 GB, free: 84.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.871e-05/1.748, allocations: 47.69 kB / 0.8387 GB, free: 84.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00775/1.755, allocations: 3.647 MB / 0.8423 GB, free: 82.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008625/1.756, allocations: 357.2 kB / 0.8426 GB, free: 82.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005845/1.757, allocations: 259 kB / 0.8429 GB, free: 82.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003287/1.76, allocations: 1.827 MB / 0.8446 GB, free: 81.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/1.76, allocations: 43.97 kB / 0.8447 GB, free: 81.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 3.046e-06/1.76, allocations: 0 / 0.8447 GB, free: 81.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.01144/1.772, allocations: 1.907 MB / 0.8465 GB, free: 81.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/1.772, allocations: 135.7 kB / 0.8467 GB, free: 80.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009608/1.773, allocations: 0.5121 MB / 0.8472 GB, free: 80.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001464/1.773, allocations: 32.45 kB / 0.8472 GB, free: 80.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/1.773, allocations: 357.4 kB / 0.8475 GB, free: 80.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/1.773, allocations: 159.3 kB / 0.8477 GB, free: 80.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.785e-05/1.774, allocations: 2.156 kB / 0.8477 GB, free: 80.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/1.774, allocations: 342.8 kB / 0.848 GB, free: 80.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006822/1.774, allocations: 252.6 kB / 0.8483 GB, free: 80.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007852/1.775, allocations: 480.2 kB / 0.8487 GB, free: 79.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008111/1.783, allocations: 0.9944 MB / 0.8497 GB, free: 79.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/1.783, allocations: 3.875 kB / 0.8497 GB, free: 79.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.009674/1.793, allocations: 1.453 MB / 0.8511 GB, free: 79.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000602/1.794, allocations: 2.701 MB / 0.8538 GB, free: 77.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/1.794, allocations: 6.5 kB / 0.8538 GB, free: 77.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004632/1.794, allocations: 95.17 kB / 0.8539 GB, free: 77.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/1.796, allocations: 191.7 kB / 0.854 GB, free: 77.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/1.799, allocations: 1.894 MB / 0.8559 GB, free: 75.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/1.8, allocations: 43.72 kB / 0.8559 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/1.8, allocations: 38.75 kB / 0.856 GB, free: 75.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/1.8, allocations: 2.562 kB / 0.856 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009201/1.809, allocations: 1.367 MB / 0.8573 GB, free: 75.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/1.809, allocations: 7.062 kB / 0.8573 GB, free: 75.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003354/1.81, allocations: 91.77 kB / 0.8574 GB, free: 75.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/1.811, allocations: 177 kB / 0.8576 GB, free: 75.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/1.813, allocations: 1.249 MB / 0.8588 GB, free: 74.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009581/1.813, allocations: 36.53 kB / 0.8588 GB, free: 74.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/1.814, allocations: 41.23 kB / 0.8589 GB, free: 74.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003131/1.814, allocations: 54.25 kB / 0.8589 GB, free: 74.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/1.814, allocations: 69.81 kB / 0.859 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003857/1.818, allocations: 0.9433 MB / 0.8599 GB, free: 74.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/1.818, allocations: 11.94 kB / 0.8599 GB, free: 74.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/1.818, allocations: 0 / 0.8599 GB, free: 74.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/1.818, allocations: 3.25 kB / 0.8599 GB, free: 74.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005091/1.823, allocations: 1.552 MB / 0.8614 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/1.823, allocations: 6.672 kB / 0.8614 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/1.825, allocations: 133.8 kB / 0.8616 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/1.825, allocations: 73.03 kB / 0.8616 GB, free: 73.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/1.825, allocations: 10.42 kB / 0.8616 GB, free: 73.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/1.827, allocations: 1.798 MB / 0.8634 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/1.827, allocations: 3.938 kB / 0.8634 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003647/1.83, allocations: 1.187 MB / 0.8646 GB, free: 71.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/1.831, allocations: 154.1 kB / 0.8647 GB, free: 71.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/1.831, allocations: 7.844 kB / 0.8647 GB, free: 71.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000955/1.832, allocations: 28.78 kB / 0.8647 GB, free: 71.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/1.832, allocations: 55.14 kB / 0.8648 GB, free: 71.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-05/1.832, allocations: 31.94 kB / 0.8648 GB, free: 71.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0006899/1.833, allocations: 393.1 kB / 0.8652 GB, free: 71.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002738/1.836, allocations: 0.6152 MB / 0.8658 GB, free: 71.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002375/1.838, allocations: 0.6736 MB / 0.8665 GB, free: 71.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004512/1.843, allocations: 1.088 MB / 0.8675 GB, free: 71.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.843, allocations: 2.75 kB / 0.8675 GB, free: 71.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/1.844, allocations: 361.5 kB / 0.8679 GB, free: 71.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/1.847, allocations: 268.7 kB / 0.8681 GB, free: 71.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003877/1.851, allocations: 1.154 MB / 0.8693 GB, free: 71.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/1.852, allocations: 1.089 MB / 0.8703 GB, free: 70.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/1.852, allocations: 0 / 0.8703 GB, free: 70.33 MB / 426.7 MB Notification: Performance of Templates: time 0.04427/1.896, allocations: 24.7 MB / 0.8944 GB, free: 69.72 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_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/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches