Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001205, allocations: 176.8 kB / 17.4 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.3 MB / 241.4 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009878/0.000988, allocations: 97.75 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.0004342, allocations: 15.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3418, allocations: 50.41 MB / 402.8 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8173/1.159, allocations: 322.5 MB / 0.7082 GB, free: 161.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/1.16, allocations: 97.36 kB / 0.7083 GB, free: 161.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2697/1.429, allocations: 139.8 MB / 0.8449 GB, free: 21.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.192e-06/1.429, allocations: 3.938 kB / 0.8449 GB, free: 21.17 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.168e-05/1.429, allocations: 16.22 kB / 0.8449 GB, free: 21.16 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002374/1.432, allocations: 1.116 MB / 0.846 GB, free: 19.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/1.432, allocations: 8.031 kB / 0.846 GB, free: 19.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000347/1.432, allocations: 87.98 kB / 0.8461 GB, free: 19.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/1.433, allocations: 0.6075 MB / 0.8467 GB, free: 19.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/1.433, allocations: 37.36 kB / 0.8467 GB, free: 19.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.791e-05/1.433, allocations: 48.38 kB / 0.8467 GB, free: 19.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/1.434, allocations: 0.7425 MB / 0.8475 GB, free: 18.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/1.434, allocations: 7.922 kB / 0.8475 GB, free: 18.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.424e-05/1.434, allocations: 16 kB / 0.8475 GB, free: 18.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.615e-05/1.435, allocations: 40.98 kB / 0.8475 GB, free: 18.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009732/1.436, allocations: 0.683 MB / 0.8482 GB, free: 17.65 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003606/1.439, allocations: 2.849 MB / 0.851 GB, free: 14.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006001/1.44, allocations: 464.5 kB / 0.8514 GB, free: 14.15 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/1.44, allocations: 262 kB / 0.8517 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002077/1.44, allocations: 345.3 kB / 0.852 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/1.44, allocations: 39 kB / 0.852 GB, free: 13.44 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.896e-06/1.44, allocations: 3.938 kB / 0.852 GB, free: 13.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.004692/1.445, allocations: 2.28 MB / 0.8543 GB, free: 11.08 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/1.445, allocations: 85.67 kB / 0.8543 GB, free: 10.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005951/1.446, allocations: 0.6172 MB / 0.8549 GB, free: 10.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.526e-05/1.446, allocations: 41.7 kB / 0.855 GB, free: 10.31 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/1.446, allocations: 324.5 kB / 0.8553 GB, free: 9.984 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/1.446, allocations: 205 kB / 0.8555 GB, free: 9.781 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/1.446, allocations: 16 kB / 0.8555 GB, free: 9.766 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/1.446, allocations: 386.7 kB / 0.8559 GB, free: 9.379 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000416/1.447, allocations: 281.8 kB / 0.8561 GB, free: 9.102 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/1.447, allocations: 452.4 kB / 0.8566 GB, free: 8.594 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008516/1.448, allocations: 0.709 MB / 0.8573 GB, free: 7.828 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/1.448, allocations: 4 kB / 0.8573 GB, free: 7.824 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001338/1.449, allocations: 0.9188 MB / 0.8582 GB, free: 6.895 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/1.45, allocations: 224.2 kB / 0.8584 GB, free: 6.609 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/1.45, allocations: 4 kB / 0.8584 GB, free: 6.605 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002083/1.452, allocations: 360.3 kB / 0.8587 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/1.452, allocations: 155.7 kB / 0.8589 GB, free: 6.098 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008246/1.453, allocations: 0.8137 MB / 0.8597 GB, free: 5.258 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006427/1.454, allocations: 52.03 kB / 0.8597 GB, free: 5.207 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/1.454, allocations: 27.98 kB / 0.8597 GB, free: 5.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/1.454, allocations: 4 kB / 0.8598 GB, free: 5.176 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001194/1.455, allocations: 0.7854 MB / 0.8605 GB, free: 4.387 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.455, allocations: 4 kB / 0.8605 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/1.456, allocations: 224.8 kB / 0.8607 GB, free: 4.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/1.457, allocations: 163.7 kB / 0.8609 GB, free: 4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004646/1.457, allocations: 0.7005 MB / 0.8616 GB, free: 3.273 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/1.458, allocations: 51.97 kB / 0.8616 GB, free: 3.223 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.798e-05/1.458, allocations: 28.09 kB / 0.8617 GB, free: 3.195 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004073/1.458, allocations: 320.8 kB / 0.862 GB, free: 2.871 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/1.459, allocations: 71.16 kB / 0.862 GB, free: 2.801 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/1.46, allocations: 0.8357 MB / 0.8628 GB, free: 1.957 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/1.46, allocations: 8 kB / 0.8629 GB, free: 1.949 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.46, allocations: 0 / 0.8629 GB, free: 1.949 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/1.46, allocations: 3.984 kB / 0.8629 GB, free: 1.945 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/1.463, allocations: 1.672 MB / 0.8645 GB, free: 216 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.463, allocations: 0 / 0.8645 GB, free: 216 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/1.463, allocations: 107.8 kB / 0.8646 GB, free: 108 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2063/1.669, allocations: 333.4 kB / 0.8649 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/1.67, allocations: 17.16 kB / 0.8649 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009499/1.671, allocations: 0.8017 MB / 0.8657 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/1.671, allocations: 2.922 kB / 0.8657 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/1.673, allocations: 1.237 MB / 0.8669 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/1.673, allocations: 155.7 kB / 0.8671 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.68e-05/1.673, allocations: 15.5 kB / 0.8671 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004641/1.674, allocations: 44.67 kB / 0.8671 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/1.674, allocations: 59.11 kB / 0.8672 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.212e-05/1.674, allocations: 25.41 kB / 0.8672 GB, free: 105.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000505/1.674, allocations: 439.5 kB / 0.8676 GB, free: 105.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.674, allocations: 0 / 0.8676 GB, free: 105.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001589/1.676, allocations: 0.5868 MB / 0.8682 GB, free: 105.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/1.677, allocations: 0.5945 MB / 0.8688 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001819/1.679, allocations: 1.127 MB / 0.8699 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/1.679, allocations: 0 / 0.8699 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005429/1.679, allocations: 370 kB / 0.8702 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/1.681, allocations: 346 kB / 0.8706 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/1.683, allocations: 1.851 MB / 0.8724 GB, free: 105 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/1.683, allocations: 0.9693 MB / 0.8733 GB, free: 104.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008638/1.684, allocations: 267.5 kB / 0.8736 GB, free: 104.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/1.684, allocations: 61.28 kB / 0.8736 GB, free: 104.3 MB / 458.7 MB Notification: Performance of SimCode: time 7.22e-07/1.684, allocations: 4 kB / 0.8736 GB, free: 104.3 MB / 458.7 MB Notification: Performance of Templates: time 0.02827/1.713, allocations: 19.99 MB / 0.8932 GB, free: 103.7 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches