Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 184.9 kB / 8.139 MB, free: 2.199 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.166/1.166, allocations: 221.4 MB / 229.9 MB, free: 3.051 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.0009162/0.0009162, allocations: 97.39 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.576e-06/8.766e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2089, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.589/0.7979, allocations: 324 MB / 0.6943 GB, free: 120.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.7982, allocations: 93.3 kB / 0.6944 GB, free: 120.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.7554/1.554, allocations: 287 MB / 0.9746 GB, free: 19.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001208/1.554, allocations: 43.38 kB / 0.9747 GB, free: 19.45 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004287/1.558, allocations: 1.788 MB / 0.9764 GB, free: 17.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/1.558, allocations: 12.02 kB / 0.9764 GB, free: 17.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007327/1.559, allocations: 174.1 kB / 0.9766 GB, free: 17.44 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/1.561, allocations: 1.033 MB / 0.9776 GB, free: 16.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/1.561, allocations: 43.98 kB / 0.9776 GB, free: 16.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/1.561, allocations: 56 kB / 0.9777 GB, free: 16.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002018/1.563, allocations: 1.468 MB / 0.9791 GB, free: 14.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/1.565, allocations: 1.499 MB / 0.9806 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/1.565, allocations: 3.938 kB / 0.9806 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/1.565, allocations: 4 kB / 0.9806 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.086e-05/1.566, allocations: 113.8 kB / 0.9807 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008061/1.574, allocations: 6.315 MB / 0.9869 GB, free: 6.512 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008339/1.574, allocations: 0.6651 MB / 0.9875 GB, free: 5.844 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00061/1.575, allocations: 0.5419 MB / 0.988 GB, free: 5.301 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003118/1.578, allocations: 2.819 MB / 0.9908 GB, free: 2.258 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/1.578, allocations: 47.22 kB / 0.9908 GB, free: 2.203 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.866e-06/1.578, allocations: 0 / 0.9908 GB, free: 2.203 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.1471/1.725, allocations: 3.25 MB / 0.994 GB, free: 90.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/1.725, allocations: 191.7 kB / 0.9942 GB, free: 90.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/1.727, allocations: 0.8794 MB / 0.9951 GB, free: 90.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/1.727, allocations: 31.02 kB / 0.9951 GB, free: 90.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/1.727, allocations: 0.5086 MB / 0.9956 GB, free: 90.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/1.727, allocations: 315.5 kB / 0.9959 GB, free: 90.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.129e-05/1.727, allocations: 0 / 0.9959 GB, free: 90.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.833e-05/1.727, allocations: 359.3 kB / 0.9962 GB, free: 89.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007182/1.728, allocations: 0.5502 MB / 0.9968 GB, free: 89.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008672/1.729, allocations: 0.9315 MB / 0.9977 GB, free: 89.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003606/1.733, allocations: 1.294 MB / 0.9989 GB, free: 89.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/1.733, allocations: 6.531 kB / 0.9989 GB, free: 89.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005407/1.738, allocations: 2.362 MB / 1.001 GB, free: 89.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008272/1.739, allocations: 4.353 MB / 1.006 GB, free: 84.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/1.739, allocations: 10.12 kB / 1.006 GB, free: 84.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/1.74, allocations: 334.8 kB / 1.006 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.741, allocations: 283.4 kB / 1.006 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/1.745, allocations: 2.523 MB / 1.009 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/1.746, allocations: 75.7 kB / 1.009 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002446/1.747, allocations: 67.27 kB / 1.009 GB, free: 83.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/1.747, allocations: 7.156 kB / 1.009 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005528/1.752, allocations: 2.059 MB / 1.011 GB, free: 83.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/1.752, allocations: 11.5 kB / 1.011 GB, free: 83.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009334/1.753, allocations: 268.6 kB / 1.011 GB, free: 82.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/1.754, allocations: 289.9 kB / 1.011 GB, free: 82.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002603/1.757, allocations: 2.277 MB / 1.013 GB, free: 81.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/1.758, allocations: 74.58 kB / 1.014 GB, free: 81.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/1.758, allocations: 68.98 kB / 1.014 GB, free: 81.42 MB / 442.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.0003915/1.759, allocations: 146.7 kB / 1.014 GB, free: 81.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002215/1.759, allocations: 129.5 kB / 1.014 GB, free: 81.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/1.763, allocations: 1.601 MB / 1.015 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/1.763, allocations: 13.53 kB / 1.015 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.763, allocations: 0.75 kB / 1.015 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/1.763, allocations: 8.938 kB / 1.015 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00494/1.768, allocations: 2.768 MB / 1.018 GB, free: 80.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/1.768, allocations: 7.438 kB / 1.018 GB, free: 80.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000717/1.769, allocations: 152.1 kB / 1.018 GB, free: 80.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/1.77, allocations: 326.7 kB / 1.019 GB, free: 80.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.88e-05/1.77, allocations: 11.42 kB / 1.019 GB, free: 80.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00228/1.772, allocations: 2.321 MB / 1.021 GB, free: 79.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/1.772, allocations: 0 / 1.021 GB, free: 79.2 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003668/1.776, allocations: 2.201 MB / 1.023 GB, free: 78.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003528/1.776, allocations: 216 kB / 1.023 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/1.776, allocations: 12.31 kB / 1.023 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008849/1.777, allocations: 68.44 kB / 1.023 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/1.777, allocations: 86.56 kB / 1.023 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-05/1.778, allocations: 48.64 kB / 1.023 GB, free: 78.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007464/1.778, allocations: 0.6659 MB / 1.024 GB, free: 78.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003117/1.781, allocations: 1.141 MB / 1.025 GB, free: 78.57 MB / 442.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.0021/1.783, allocations: 1.088 MB / 1.026 GB, free: 78.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003184/1.787, allocations: 2.144 MB / 1.028 GB, free: 78.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.787, allocations: 3.75 kB / 1.028 GB, free: 78.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/1.788, allocations: 0.6666 MB / 1.029 GB, free: 78.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.79, allocations: 462.5 kB / 1.029 GB, free: 78.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/1.794, allocations: 2.106 MB / 1.032 GB, free: 77.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009515/1.794, allocations: 1.412 MB / 1.033 GB, free: 77.23 MB / 442.7 MB Notification: Performance of SimCode: time 4.4e-07/1.794, allocations: 0 / 1.033 GB, free: 77.23 MB / 442.7 MB Notification: Performance of Templates: time 0.05608/1.851, allocations: 41.08 MB / 1.073 GB, free: 75.57 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches