Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") [: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 trunk/package.mo): time 0.001706/0.001706, allocations: 199.8 kB / 8.542 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.678/1.678, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001235, allocations: 91.52 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.107e-05/1.112e-05, allocations: 4 kB / 343.1 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.153, allocations: 51.48 MB / 394.6 MB, free: 5.191 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.034/1.187, allocations: 326.9 MB / 0.7046 GB, free: 27.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003572/1.187, allocations: 87.89 kB / 0.7047 GB, free: 27.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.6742/1.862, allocations: 145.4 MB / 0.8467 GB, free: 91.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.938e-05/1.862, allocations: 21.11 kB / 0.8467 GB, free: 91.34 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002994/1.865, allocations: 1.084 MB / 0.8478 GB, free: 90.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/1.865, allocations: 11.97 kB / 0.8478 GB, free: 90.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004049/1.865, allocations: 98.91 kB / 0.8479 GB, free: 90.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/1.866, allocations: 0.619 MB / 0.8485 GB, free: 89.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.672e-05/1.867, allocations: 80.31 kB / 0.8486 GB, free: 89.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-05/1.867, allocations: 31.94 kB / 0.8486 GB, free: 89.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009907/1.868, allocations: 0.615 MB / 0.8492 GB, free: 88.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/1.869, allocations: 0.746 MB / 0.8499 GB, free: 87.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/1.869, allocations: 3.938 kB / 0.8499 GB, free: 87.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.16e-05/1.869, allocations: 4 kB / 0.8499 GB, free: 87.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-05/1.869, allocations: 40.97 kB / 0.85 GB, free: 87.87 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/1.874, allocations: 3.316 MB / 0.8532 GB, free: 84.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/1.874, allocations: 334.3 kB / 0.8535 GB, free: 84.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003458/1.875, allocations: 261 kB / 0.8538 GB, free: 83.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002127/1.877, allocations: 1.383 MB / 0.8551 GB, free: 82.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005245/1.877, allocations: 353.9 kB / 0.8555 GB, free: 81.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 2.294e-06/1.877, allocations: 4 kB / 0.8555 GB, free: 81.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.003458/1.881, allocations: 1.336 MB / 0.8568 GB, free: 80.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/1.881, allocations: 265 kB / 0.857 GB, free: 80.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/1.882, allocations: 0.5424 MB / 0.8575 GB, free: 79.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/1.882, allocations: 33.69 kB / 0.8576 GB, free: 79.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/1.882, allocations: 327.2 kB / 0.8579 GB, free: 79.28 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/1.882, allocations: 123 kB / 0.858 GB, free: 79.16 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/1.882, allocations: 4 kB / 0.858 GB, free: 79.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/1.883, allocations: 386.7 kB / 0.8584 GB, free: 78.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/1.883, allocations: 249.3 kB / 0.8586 GB, free: 78.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/1.883, allocations: 496.3 kB / 0.8591 GB, free: 77.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/1.885, allocations: 0.5172 MB / 0.8596 GB, free: 77.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.885, allocations: 0 / 0.8596 GB, free: 77.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002344/1.887, allocations: 1.023 MB / 0.8606 GB, free: 76.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000835/1.888, allocations: 2.446 MB / 0.863 GB, free: 73.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/1.888, allocations: 8 kB / 0.863 GB, free: 73.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004232/1.889, allocations: 112.7 kB / 0.8631 GB, free: 73.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/1.889, allocations: 131.8 kB / 0.8632 GB, free: 73.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007104/1.89, allocations: 0.7239 MB / 0.8639 GB, free: 72.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007262/1.891, allocations: 40.02 kB / 0.864 GB, free: 72.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.233e-05/1.891, allocations: 39.98 kB / 0.864 GB, free: 72.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/1.891, allocations: 4 kB / 0.864 GB, free: 72.67 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002205/1.893, allocations: 0.9111 MB / 0.8649 GB, free: 71.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.893, allocations: 4 kB / 0.8649 GB, free: 71.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003282/1.893, allocations: 113.2 kB / 0.865 GB, free: 71.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004518/1.894, allocations: 139.7 kB / 0.8651 GB, free: 71.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004738/1.894, allocations: 0.6694 MB / 0.8658 GB, free: 70.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006533/1.895, allocations: 36.08 kB / 0.8658 GB, free: 70.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/1.895, allocations: 36 kB / 0.8659 GB, free: 70.74 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004197/1.895, allocations: 180.5 kB / 0.866 GB, free: 70.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/1.896, allocations: 75.16 kB / 0.8661 GB, free: 70.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/1.897, allocations: 0.6182 MB / 0.8667 GB, free: 69.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.659e-06/1.897, allocations: 11.91 kB / 0.8667 GB, free: 69.85 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/1.897, allocations: 4 kB / 0.8667 GB, free: 69.85 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/1.897, allocations: 8.016 kB / 0.8667 GB, free: 69.84 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/1.899, allocations: 1.296 MB / 0.868 GB, free: 68.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/1.899, allocations: 0 / 0.868 GB, free: 68.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/1.9, allocations: 59.91 kB / 0.8681 GB, free: 68.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003368/1.9, allocations: 104.8 kB / 0.8682 GB, free: 68.34 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/1.9, allocations: 11.94 kB / 0.8682 GB, free: 68.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000571/1.901, allocations: 0.69 MB / 0.8688 GB, free: 67.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.901, allocations: 3.938 kB / 0.8688 GB, free: 67.61 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001289/1.902, allocations: 0.9748 MB / 0.8698 GB, free: 66.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/1.902, allocations: 156.2 kB / 0.8699 GB, free: 66.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/1.902, allocations: 4 kB / 0.87 GB, free: 66.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/1.903, allocations: 32.03 kB / 0.87 GB, free: 66.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/1.903, allocations: 35.94 kB / 0.87 GB, free: 66.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/1.903, allocations: 27.89 kB / 0.87 GB, free: 66.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004883/1.903, allocations: 423.1 kB / 0.8704 GB, free: 65.92 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002414/1.906, allocations: 0.5556 MB / 0.871 GB, free: 65.37 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001635/1.907, allocations: 0.5918 MB / 0.8716 GB, free: 64.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001796/1.909, allocations: 0.9916 MB / 0.8725 GB, free: 63.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/1.909, allocations: 0 / 0.8725 GB, free: 63.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004226/1.91, allocations: 289.5 kB / 0.8728 GB, free: 63.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/1.911, allocations: 255.6 kB / 0.8731 GB, free: 63.28 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/1.913, allocations: 1.053 MB / 0.8741 GB, free: 62.19 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006604/1.914, allocations: 1.05 MB / 0.8751 GB, free: 61.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.813e-06/1.914, allocations: 0 / 0.8751 GB, free: 61.11 MB / 458.7 MB Notification: Performance of Templates: time 0.03623/1.95, allocations: 19.03 MB / 0.8937 GB, free: 42.23 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches