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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 176.9 kB / 17.4 MB, free: 4.301 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.649/1.649, allocations: 223.3 MB / 241.4 MB, free: 9.953 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.0008782/0.0008779, allocations: 93.42 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 11.94 kB / 352.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2695, allocations: 50.41 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7813/1.051, allocations: 327 MB / 0.7127 GB, free: 156.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/1.051, allocations: 89.31 kB / 0.7128 GB, free: 156.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2858/1.337, allocations: 145.7 MB / 0.8551 GB, free: 10.39 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.337, allocations: 0 / 0.8551 GB, free: 10.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.338e-05/1.337, allocations: 19.98 kB / 0.8551 GB, free: 10.37 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.002216/1.339, allocations: 1.177 MB / 0.8562 GB, free: 9.133 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/1.339, allocations: 12.03 kB / 0.8562 GB, free: 9.121 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/1.34, allocations: 99.97 kB / 0.8563 GB, free: 9.023 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009478/1.341, allocations: 0.626 MB / 0.857 GB, free: 8.355 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.882e-05/1.341, allocations: 100.3 kB / 0.857 GB, free: 8.242 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/1.341, allocations: 40 kB / 0.8571 GB, free: 8.203 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/1.342, allocations: 0.8337 MB / 0.8579 GB, free: 7.316 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/1.342, allocations: 3.938 kB / 0.8579 GB, free: 7.312 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.804e-05/1.342, allocations: 23.98 kB / 0.8579 GB, free: 7.289 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.803e-05/1.342, allocations: 36.98 kB / 0.858 GB, free: 7.254 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009036/1.343, allocations: 0.6869 MB / 0.8586 GB, free: 6.566 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003649/1.347, allocations: 3.392 MB / 0.8619 GB, free: 2.973 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005677/1.347, allocations: 422.2 kB / 0.8623 GB, free: 2.551 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/1.348, allocations: 265 kB / 0.8626 GB, free: 2.289 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001352/1.349, allocations: 1.358 MB / 0.8639 GB, free: 0.793 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004143/1.349, allocations: 373.2 kB / 0.8643 GB, free: 404 kB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 1.693e-06/1.349, allocations: 0 / 0.8643 GB, free: 404 kB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.2215/1.571, allocations: 1.887 MB / 0.8661 GB, free: 105.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.54e-05/1.571, allocations: 271.5 kB / 0.8664 GB, free: 105.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/1.572, allocations: 0.7735 MB / 0.8671 GB, free: 105.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/1.572, allocations: 35.7 kB / 0.8672 GB, free: 105.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002384/1.572, allocations: 400.7 kB / 0.8676 GB, free: 105.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.441e-05/1.573, allocations: 132.9 kB / 0.8677 GB, free: 105 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/1.573, allocations: 16.91 kB / 0.8677 GB, free: 105 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/1.573, allocations: 395.6 kB / 0.8681 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000369/1.573, allocations: 259.6 kB / 0.8683 GB, free: 104.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/1.574, allocations: 0.5033 MB / 0.8688 GB, free: 104.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00528/1.579, allocations: 1.777 MB / 0.8705 GB, free: 104.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/1.579, allocations: 0 / 0.8705 GB, free: 104.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001618/1.581, allocations: 0.9858 MB / 0.8715 GB, free: 104 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001634/1.581, allocations: 315.7 kB / 0.8718 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/1.581, allocations: 7.562 kB / 0.8718 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000499/1.581, allocations: 126.3 kB / 0.8719 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004565/1.582, allocations: 144.2 kB / 0.8721 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000517/1.582, allocations: 0.6811 MB / 0.8727 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007049/1.583, allocations: 51.53 kB / 0.8728 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/1.583, allocations: 40.44 kB / 0.8728 GB, free: 103.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/1.583, allocations: 3.812 kB / 0.8728 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001489/1.585, allocations: 0.9222 MB / 0.8737 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/1.585, allocations: 11.75 kB / 0.8737 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/1.585, allocations: 118 kB / 0.8739 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/1.585, allocations: 137.6 kB / 0.874 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003898/1.586, allocations: 0.6637 MB / 0.8746 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006049/1.586, allocations: 47.98 kB / 0.8747 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/1.586, allocations: 44.52 kB / 0.8747 GB, free: 102.5 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true 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" fixed = true 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 ($PRE.tank.aboveLevel[1],$whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked 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.0005523/1.587, allocations: 381.5 kB / 0.8751 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/1.587, allocations: 84.09 kB / 0.8752 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/1.588, allocations: 0.741 MB / 0.8759 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/1.588, allocations: 3.656 kB / 0.8759 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.588, allocations: 0 / 0.8759 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/1.588, allocations: 7.75 kB / 0.8759 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/1.59, allocations: 1.474 MB / 0.8773 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.59, allocations: 0 / 0.8773 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/1.591, allocations: 63.53 kB / 0.8774 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004515/1.591, allocations: 121.4 kB / 0.8775 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/1.591, allocations: 25.8 kB / 0.8775 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000525/1.592, allocations: 0.6668 MB / 0.8782 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/1.592, allocations: 4.188 kB / 0.8782 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/1.594, allocations: 1.105 MB / 0.8793 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/1.594, allocations: 152.5 kB / 0.8794 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/1.594, allocations: 22.27 kB / 0.8794 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000465/1.594, allocations: 34.23 kB / 0.8795 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/1.595, allocations: 38.02 kB / 0.8795 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.161e-05/1.595, allocations: 23.27 kB / 0.8795 GB, free: 100.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009655/1.596, allocations: 0.5336 MB / 0.8801 GB, free: 100.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.596, allocations: 0 / 0.8801 GB, free: 100.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001976/1.598, allocations: 0.5912 MB / 0.8806 GB, free: 100.8 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) * Number of clocked states: 0 () * 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.001206/1.599, allocations: 0.5962 MB / 0.8812 GB, free: 100.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00214/1.601, allocations: 1.161 MB / 0.8824 GB, free: 100.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.601, allocations: 0.5312 kB / 0.8824 GB, free: 100.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/1.602, allocations: 365.5 kB / 0.8827 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/1.603, allocations: 308.9 kB / 0.883 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/1.605, allocations: 1.702 MB / 0.8847 GB, free: 99.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/1.606, allocations: 0.9622 MB / 0.8856 GB, free: 99.12 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008329/1.606, allocations: 250.7 kB / 0.8858 GB, free: 99.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/1.607, allocations: 60.34 kB / 0.8859 GB, free: 99.11 MB / 458.7 MB Notification: Performance of SimCode: time 6.31e-07/1.607, allocations: 0 / 0.8859 GB, free: 99.11 MB / 458.7 MB Notification: Performance of Templates: time 0.02994/1.636, allocations: 18.82 MB / 0.9043 GB, free: 98.63 MB / 458.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/jenkins1/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