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.001048/0.001047, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.452/1.452, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0008544/0.0008544, allocations: 91.19 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002658, allocations: 7.938 kB / 351.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2719, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8114/1.083, allocations: 322.3 MB / 0.7069 GB, free: 122.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/1.084, allocations: 95.22 kB / 0.707 GB, free: 122.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.29/1.374, allocations: 140.7 MB / 0.8443 GB, free: 11.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.374, allocations: 0 / 0.8443 GB, free: 11.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.711e-05/1.374, allocations: 19.94 kB / 0.8444 GB, free: 11.04 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.003137/1.377, allocations: 1.126 MB / 0.8455 GB, free: 9.859 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/1.377, allocations: 8.031 kB / 0.8455 GB, free: 9.852 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005574/1.378, allocations: 87.06 kB / 0.8455 GB, free: 9.766 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/1.379, allocations: 0.5871 MB / 0.8461 GB, free: 9.137 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/1.379, allocations: 37 kB / 0.8462 GB, free: 9.102 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/1.379, allocations: 47.98 kB / 0.8462 GB, free: 9.055 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/1.381, allocations: 0.7264 MB / 0.8469 GB, free: 8.297 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/1.381, allocations: 4 kB / 0.8469 GB, free: 8.293 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.734e-05/1.381, allocations: 27.98 kB / 0.8469 GB, free: 8.266 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.718e-05/1.381, allocations: 44.91 kB / 0.847 GB, free: 8.223 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/1.382, allocations: 0.6869 MB / 0.8477 GB, free: 7.531 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00403/1.386, allocations: 2.853 MB / 0.8504 GB, free: 4.496 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000624/1.387, allocations: 472.5 kB / 0.8509 GB, free: 4.023 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000217/1.387, allocations: 341.3 kB / 0.8512 GB, free: 3.617 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/1.387, allocations: 39 kB / 0.8513 GB, free: 3.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 4.018e-06/1.387, allocations: 0 / 0.8513 GB, free: 3.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.005091/1.392, allocations: 2.277 MB / 0.8535 GB, free: 1.223 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/1.392, allocations: 89.67 kB / 0.8536 GB, free: 1.117 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006539/1.393, allocations: 0.55 MB / 0.8541 GB, free: 0.5586 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/1.393, allocations: 37.7 kB / 0.8541 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/1.393, allocations: 324.5 kB / 0.8544 GB, free: 200 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.258/1.651, allocations: 202.2 kB / 0.8546 GB, free: 110.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/1.651, allocations: 16.03 kB / 0.8547 GB, free: 110.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002964/1.652, allocations: 383.4 kB / 0.855 GB, free: 110 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008902/1.653, allocations: 285.4 kB / 0.8553 GB, free: 110 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008905/1.653, allocations: 451 kB / 0.8557 GB, free: 109.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007879/1.654, allocations: 338.2 kB / 0.856 GB, free: 109.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/1.654, allocations: 1.031 kB / 0.856 GB, free: 109.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001939/1.656, allocations: 0.9278 MB / 0.8569 GB, free: 109.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003767/1.657, allocations: 1.75 MB / 0.8587 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/1.657, allocations: 5.406 kB / 0.8587 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002105/1.659, allocations: 356.2 kB / 0.859 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006686/1.659, allocations: 148.4 kB / 0.8591 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008915/1.66, allocations: 0.8248 MB / 0.8599 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007465/1.661, allocations: 45.75 kB / 0.86 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.296e-05/1.661, allocations: 33.3 kB / 0.86 GB, free: 107.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/1.661, allocations: 8.875 kB / 0.86 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001578/1.663, allocations: 0.785 MB / 0.8608 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/1.663, allocations: 4.312 kB / 0.8608 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/1.664, allocations: 220.9 kB / 0.861 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007257/1.665, allocations: 163 kB / 0.8612 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006722/1.666, allocations: 0.6972 MB / 0.8619 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000698/1.667, allocations: 49.02 kB / 0.8619 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.208e-05/1.667, allocations: 36 kB / 0.8619 GB, free: 106.9 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.0005041/1.667, allocations: 320.7 kB / 0.8622 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/1.667, allocations: 76.38 kB / 0.8623 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/1.669, allocations: 0.8357 MB / 0.8631 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/1.669, allocations: 7.031 kB / 0.8631 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/1.669, allocations: 0 / 0.8631 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/1.669, allocations: 6.891 kB / 0.8631 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/1.672, allocations: 1.664 MB / 0.8648 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/1.672, allocations: 0 / 0.8648 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005035/1.673, allocations: 114.4 kB / 0.8649 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/1.674, allocations: 336.1 kB / 0.8652 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/1.674, allocations: 18.3 kB / 0.8652 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007529/1.675, allocations: 0.7993 MB / 0.866 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/1.675, allocations: 6.641 kB / 0.866 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/1.677, allocations: 1.258 MB / 0.8672 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003002/1.677, allocations: 157.9 kB / 0.8674 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001631/1.677, allocations: 10.41 kB / 0.8674 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005897/1.678, allocations: 47.58 kB / 0.8674 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/1.678, allocations: 53.36 kB / 0.8675 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/1.678, allocations: 26.34 kB / 0.8675 GB, free: 105.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005839/1.679, allocations: 442.7 kB / 0.8679 GB, free: 105.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.679, allocations: 0 / 0.8679 GB, free: 105.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002252/1.681, allocations: 0.5886 MB / 0.8685 GB, free: 105.4 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.001995/1.683, allocations: 0.5943 MB / 0.8691 GB, free: 105.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002311/1.685, allocations: 1.123 MB / 0.8702 GB, free: 105.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/1.685, allocations: 0 / 0.8702 GB, free: 105.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005912/1.686, allocations: 375.7 kB / 0.8705 GB, free: 105.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/1.688, allocations: 339.4 kB / 0.8709 GB, free: 105.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/1.69, allocations: 1.841 MB / 0.8727 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/1.691, allocations: 0.9833 MB / 0.8736 GB, free: 103.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001079/1.692, allocations: 272.7 kB / 0.8739 GB, free: 103.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/1.692, allocations: 66.8 kB / 0.8739 GB, free: 103.8 MB / 458.7 MB Notification: Performance of SimCode: time 8.22e-07/1.692, allocations: 0 / 0.8739 GB, free: 103.8 MB / 458.7 MB Notification: Performance of Templates: time 0.02927/1.721, allocations: 19.46 MB / 0.893 GB, free: 103.2 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/jenkins/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