Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,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_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001159/0.001158, allocations: 174.4 kB / 8.471 MB, free: 1.863 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.16/1.16, allocations: 205.2 MB / 214.1 MB, free: 5.52 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.0008359/0.0008359, allocations: 86.25 kB / 262.1 MB, free: 5.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.977e-06/9.007e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09034/0.09036, allocations: 47.58 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6271/0.7175, allocations: 323.1 MB / 0.6695 GB, free: 68.57 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.7177, allocations: 84.89 kB / 0.6696 GB, free: 68.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.5752/1.293, allocations: 191.8 MB / 0.8569 GB, free: 56.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001186/1.293, allocations: 24 kB / 0.8569 GB, free: 56.16 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004206/1.297, allocations: 1.297 MB / 0.8582 GB, free: 54.83 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/1.297, allocations: 16.03 kB / 0.8582 GB, free: 54.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007695/1.298, allocations: 110.8 kB / 0.8583 GB, free: 54.71 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001849/1.3, allocations: 0.733 MB / 0.859 GB, free: 53.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.947e-05/1.3, allocations: 24 kB / 0.8591 GB, free: 53.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/1.3, allocations: 36 kB / 0.8591 GB, free: 53.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001543/1.302, allocations: 0.92 MB / 0.86 GB, free: 52.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/1.303, allocations: 0.9772 MB / 0.8609 GB, free: 51.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/1.303, allocations: 7.938 kB / 0.861 GB, free: 51.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/1.303, allocations: 0 / 0.861 GB, free: 51.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.459e-05/1.303, allocations: 69.27 kB / 0.861 GB, free: 51.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005961/1.309, allocations: 4.251 MB / 0.8652 GB, free: 47.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/1.31, allocations: 431.2 kB / 0.8656 GB, free: 46.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/1.31, allocations: 322.2 kB / 0.8659 GB, free: 46.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002106/1.313, allocations: 2.004 MB / 0.8678 GB, free: 44.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/1.313, allocations: 42.88 kB / 0.8679 GB, free: 44.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.054e-06/1.313, allocations: 4 kB / 0.8679 GB, free: 44.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.005508/1.318, allocations: 1.798 MB / 0.8696 GB, free: 42.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/1.318, allocations: 158.2 kB / 0.8698 GB, free: 42.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008404/1.319, allocations: 0.6403 MB / 0.8704 GB, free: 41.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.434e-05/1.319, allocations: 33.7 kB / 0.8705 GB, free: 41.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/1.319, allocations: 390.2 kB / 0.8708 GB, free: 41.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/1.319, allocations: 161.7 kB / 0.871 GB, free: 41.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-05/1.319, allocations: 0 / 0.871 GB, free: 41.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/1.32, allocations: 394.7 kB / 0.8714 GB, free: 40.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/1.32, allocations: 301.9 kB / 0.8716 GB, free: 40.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/1.321, allocations: 0.5823 MB / 0.8722 GB, free: 39.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006416/1.327, allocations: 1.451 MB / 0.8736 GB, free: 38.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/1.327, allocations: 8 kB / 0.8736 GB, free: 38.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.007288/1.334, allocations: 2.081 MB / 0.8757 GB, free: 36.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006/1.335, allocations: 3.311 MB / 0.8789 GB, free: 32.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/1.335, allocations: 8 kB / 0.8789 GB, free: 32.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005795/1.335, allocations: 177.6 kB / 0.8791 GB, free: 32.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006299/1.336, allocations: 175.7 kB / 0.8792 GB, free: 32.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/1.338, allocations: 1.53 MB / 0.8807 GB, free: 30.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008959/1.339, allocations: 44.14 kB / 0.8808 GB, free: 30.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/1.339, allocations: 43.98 kB / 0.8808 GB, free: 30.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/1.339, allocations: 4 kB / 0.8808 GB, free: 30.57 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006706/1.346, allocations: 1.9 MB / 0.8827 GB, free: 28.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/1.346, allocations: 8 kB / 0.8827 GB, free: 28.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005466/1.346, allocations: 170.2 kB / 0.8829 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006109/1.347, allocations: 175.7 kB / 0.883 GB, free: 28.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/1.348, allocations: 1.436 MB / 0.8844 GB, free: 26.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007485/1.349, allocations: 47.98 kB / 0.8845 GB, free: 26.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.461e-05/1.349, allocations: 47.98 kB / 0.8845 GB, free: 26.72 MB / 426.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.0001993/1.349, allocations: 139.1 kB / 0.8847 GB, free: 26.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/1.349, allocations: 82.97 kB / 0.8847 GB, free: 26.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/1.351, allocations: 0.8293 MB / 0.8855 GB, free: 25.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/1.352, allocations: 8 kB / 0.8855 GB, free: 25.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.352, allocations: 0 / 0.8855 GB, free: 25.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/1.352, allocations: 3.984 kB / 0.8856 GB, free: 25.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/1.354, allocations: 1.574 MB / 0.8871 GB, free: 24.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/1.354, allocations: 4.062 kB / 0.8871 GB, free: 24.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003692/1.355, allocations: 71.91 kB / 0.8872 GB, free: 23.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005485/1.355, allocations: 161.5 kB / 0.8873 GB, free: 23.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/1.355, allocations: 7.906 kB / 0.8873 GB, free: 23.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/1.357, allocations: 1.417 MB / 0.8887 GB, free: 22.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.357, allocations: 3.984 kB / 0.8887 GB, free: 22.32 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001711/1.358, allocations: 1.143 MB / 0.8898 GB, free: 21.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/1.358, allocations: 176 kB / 0.89 GB, free: 20.94 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/1.359, allocations: 11.91 kB / 0.89 GB, free: 20.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/1.359, allocations: 32.03 kB / 0.89 GB, free: 20.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.359, allocations: 52.36 kB / 0.8901 GB, free: 20.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-05/1.359, allocations: 24.17 kB / 0.8901 GB, free: 20.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004911/1.36, allocations: 495.1 kB / 0.8906 GB, free: 20.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002156/1.362, allocations: 0.7843 MB / 0.8913 GB, free: 19.56 MB / 426.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.001949/1.364, allocations: 0.8126 MB / 0.8921 GB, free: 18.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001704/1.366, allocations: 1.184 MB / 0.8933 GB, free: 17.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/1.366, allocations: 0 / 0.8933 GB, free: 17.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/1.366, allocations: 305.7 kB / 0.8936 GB, free: 17.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/1.368, allocations: 285.4 kB / 0.8939 GB, free: 17.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/1.37, allocations: 1.254 MB / 0.8951 GB, free: 15.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006132/1.37, allocations: 1.139 MB / 0.8962 GB, free: 14.57 MB / 426.7 MB Notification: Performance of SimCode: time 2.8e-07/1.37, allocations: 0 / 0.8962 GB, free: 14.57 MB / 426.7 MB Notification: Performance of Templates: time 0.1784/1.549, allocations: 25.61 MB / 0.9212 GB, free: 122.1 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_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/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches