Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 182 kB / 8.134 MB, free: 2.191 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.211/1.211, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0009431/0.0009431, allocations: 92 kB / 280.8 MB, free: 1.332 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.893e-06/6.903e-06, allocations: 0 / 336.5 MB, free: 9.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2223, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5871/0.8095, allocations: 326.1 MB / 0.6963 GB, free: 143.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.8098, allocations: 87.95 kB / 0.6964 GB, free: 143.1 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.4525/1.262, allocations: 145.6 MB / 0.8386 GB, free: 97.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.417e-05/1.262, allocations: 20.88 kB / 0.8386 GB, free: 97.75 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001947/1.264, allocations: 1.077 MB / 0.8397 GB, free: 97.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/1.264, allocations: 7.125 kB / 0.8397 GB, free: 97.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003745/1.265, allocations: 105.5 kB / 0.8398 GB, free: 97.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/1.266, allocations: 0.6201 MB / 0.8404 GB, free: 96.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.631e-05/1.266, allocations: 73.28 kB / 0.8404 GB, free: 96.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.392e-05/1.266, allocations: 28.75 kB / 0.8405 GB, free: 96.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008797/1.267, allocations: 0.6142 MB / 0.8411 GB, free: 96.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/1.268, allocations: 0.7569 MB / 0.8418 GB, free: 96.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/1.268, allocations: 3.656 kB / 0.8418 GB, free: 96.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.812e-05/1.268, allocations: 6.25 kB / 0.8418 GB, free: 96.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/1.268, allocations: 43.08 kB / 0.8419 GB, free: 96.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004047/1.272, allocations: 3.31 MB / 0.8451 GB, free: 94.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/1.273, allocations: 332.8 kB / 0.8454 GB, free: 94.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/1.273, allocations: 251.8 kB / 0.8456 GB, free: 94.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001617/1.275, allocations: 1.391 MB / 0.847 GB, free: 94.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004186/1.275, allocations: 351.8 kB / 0.8473 GB, free: 93.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 2.795e-06/1.275, allocations: 0 / 0.8473 GB, free: 93.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.003143/1.278, allocations: 1.345 MB / 0.8487 GB, free: 93.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/1.278, allocations: 272 kB / 0.8489 GB, free: 93.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007024/1.279, allocations: 0.5415 MB / 0.8494 GB, free: 93.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.335e-05/1.279, allocations: 29.36 kB / 0.8495 GB, free: 93.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/1.279, allocations: 326.5 kB / 0.8498 GB, free: 92.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/1.279, allocations: 136.1 kB / 0.8499 GB, free: 92.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/1.279, allocations: 0 / 0.8499 GB, free: 92.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/1.279, allocations: 379.3 kB / 0.8503 GB, free: 92.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/1.28, allocations: 249.3 kB / 0.8505 GB, free: 92.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/1.28, allocations: 0.4911 MB / 0.851 GB, free: 92.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009971/1.281, allocations: 469 kB / 0.8514 GB, free: 92.22 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/1.281, allocations: 3.938 kB / 0.8514 GB, free: 92.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002019/1.283, allocations: 0.9729 MB / 0.8524 GB, free: 92.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005313/1.284, allocations: 2.44 MB / 0.8548 GB, free: 89.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/1.284, allocations: 11.5 kB / 0.8548 GB, free: 89.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004094/1.284, allocations: 109.6 kB / 0.8549 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/1.285, allocations: 133.4 kB / 0.855 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006869/1.285, allocations: 0.7276 MB / 0.8557 GB, free: 89.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006895/1.286, allocations: 39 kB / 0.8558 GB, free: 89.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.602e-05/1.286, allocations: 38.61 kB / 0.8558 GB, free: 89.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.124e-06/1.286, allocations: 3.969 kB / 0.8558 GB, free: 89.06 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001807/1.288, allocations: 0.8497 MB / 0.8566 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.288, allocations: 6.656 kB / 0.8566 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003377/1.288, allocations: 110 kB / 0.8567 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/1.289, allocations: 135.8 kB / 0.8569 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004437/1.289, allocations: 0.6726 MB / 0.8575 GB, free: 88.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/1.29, allocations: 36.62 kB / 0.8576 GB, free: 88.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/1.29, allocations: 34.28 kB / 0.8576 GB, free: 88.51 MB / 442.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.0003109/1.29, allocations: 186.3 kB / 0.8578 GB, free: 88.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/1.29, allocations: 73.59 kB / 0.8578 GB, free: 88.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/1.292, allocations: 0.6272 MB / 0.8585 GB, free: 88.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/1.292, allocations: 3.969 kB / 0.8585 GB, free: 88.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/1.292, allocations: 3.797 kB / 0.8585 GB, free: 88.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.292, allocations: 0 / 0.8585 GB, free: 88.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/1.294, allocations: 1.305 MB / 0.8597 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/1.294, allocations: 0 / 0.8597 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/1.294, allocations: 60.12 kB / 0.8598 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003849/1.295, allocations: 104 kB / 0.8599 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/1.295, allocations: 10.39 kB / 0.8599 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005548/1.295, allocations: 0.6882 MB / 0.8606 GB, free: 87.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.295, allocations: 3.469 kB / 0.8606 GB, free: 87.46 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001243/1.296, allocations: 0.9732 MB / 0.8615 GB, free: 87.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/1.297, allocations: 152.8 kB / 0.8617 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/1.297, allocations: 10.88 kB / 0.8617 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000499/1.297, allocations: 35.61 kB / 0.8617 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/1.297, allocations: 26.47 kB / 0.8617 GB, free: 87.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.112e-05/1.297, allocations: 22.61 kB / 0.8618 GB, free: 87.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004844/1.298, allocations: 426.1 kB / 0.8622 GB, free: 87.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001864/1.3, allocations: 0.5527 MB / 0.8627 GB, free: 86.95 MB / 442.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.001239/1.301, allocations: 0.5951 MB / 0.8633 GB, free: 86.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001613/1.303, allocations: 0.9953 MB / 0.8643 GB, free: 86.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.303, allocations: 0 / 0.8643 GB, free: 86.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/1.303, allocations: 292.2 kB / 0.8645 GB, free: 86.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/1.304, allocations: 231 kB / 0.8648 GB, free: 86.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/1.306, allocations: 1.05 MB / 0.8658 GB, free: 86.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005411/1.307, allocations: 1.041 MB / 0.8668 GB, free: 85.68 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/1.307, allocations: 0 / 0.8668 GB, free: 85.68 MB / 442.7 MB Notification: Performance of Templates: time 0.02734/1.334, allocations: 19 MB / 0.8854 GB, free: 85.25 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches