Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009527/0.0009527, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.16e-05/3.173e-05, allocations: 3.984 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 47.57 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7986/0.9072, allocations: 321.7 MB / 0.6755 GB, free: 2.969 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.9074, allocations: 88.94 kB / 0.6756 GB, free: 2.922 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4838/1.391, allocations: 137.3 MB / 0.8096 GB, free: 57.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.21e-07/1.391, allocations: 0 / 0.8096 GB, free: 57.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.919e-05/1.391, allocations: 16 kB / 0.8096 GB, free: 57.37 MB / 426.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.00192/1.393, allocations: 1.032 MB / 0.8106 GB, free: 56.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/1.393, allocations: 8.031 kB / 0.8107 GB, free: 56.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/1.394, allocations: 87.02 kB / 0.8107 GB, free: 56.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009586/1.395, allocations: 0.5794 MB / 0.8113 GB, free: 55.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/1.395, allocations: 40.98 kB / 0.8113 GB, free: 55.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.553e-05/1.395, allocations: 43.98 kB / 0.8114 GB, free: 55.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009873/1.396, allocations: 0.7226 MB / 0.8121 GB, free: 54.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/1.396, allocations: 3.906 kB / 0.8121 GB, free: 54.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/1.396, allocations: 19.98 kB / 0.8121 GB, free: 54.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.775e-05/1.396, allocations: 44.97 kB / 0.8122 GB, free: 54.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008848/1.397, allocations: 0.6754 MB / 0.8128 GB, free: 54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003389/1.4, allocations: 2.857 MB / 0.8156 GB, free: 50.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006017/1.401, allocations: 464.5 kB / 0.816 GB, free: 50.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002876/1.401, allocations: 254 kB / 0.8163 GB, free: 50.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002049/1.401, allocations: 345.3 kB / 0.8166 GB, free: 49.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/1.401, allocations: 42.94 kB / 0.8167 GB, free: 49.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.194e-06/1.401, allocations: 0 / 0.8167 GB, free: 49.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.003549/1.405, allocations: 1.827 MB / 0.8184 GB, free: 47.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/1.405, allocations: 85.61 kB / 0.8185 GB, free: 47.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/1.406, allocations: 0.5424 MB / 0.8191 GB, free: 47.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/1.406, allocations: 41.7 kB / 0.8191 GB, free: 47.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/1.406, allocations: 324.4 kB / 0.8194 GB, free: 46.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/1.406, allocations: 209 kB / 0.8196 GB, free: 46.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/1.406, allocations: 16 kB / 0.8196 GB, free: 46.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/1.406, allocations: 378.8 kB / 0.82 GB, free: 46.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/1.406, allocations: 277.5 kB / 0.8202 GB, free: 46.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004073/1.407, allocations: 439.1 kB / 0.8207 GB, free: 45.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004008/1.407, allocations: 337.9 kB / 0.821 GB, free: 45.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.407, allocations: 0 / 0.821 GB, free: 45.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001159/1.408, allocations: 0.9098 MB / 0.8219 GB, free: 44.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002697/1.409, allocations: 1.756 MB / 0.8236 GB, free: 42.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/1.409, allocations: 8 kB / 0.8236 GB, free: 42.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/1.41, allocations: 344.5 kB / 0.8239 GB, free: 42.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/1.411, allocations: 151.7 kB / 0.8241 GB, free: 41.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006756/1.412, allocations: 0.8254 MB / 0.8249 GB, free: 41.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005363/1.412, allocations: 51.98 kB / 0.8249 GB, free: 40.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.258e-05/1.412, allocations: 31.98 kB / 0.825 GB, free: 40.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/1.412, allocations: 7.906 kB / 0.825 GB, free: 40.94 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001016/1.413, allocations: 0.7688 MB / 0.8257 GB, free: 40.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/1.413, allocations: 4 kB / 0.8257 GB, free: 40.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/1.415, allocations: 224.8 kB / 0.8259 GB, free: 39.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005262/1.415, allocations: 167.7 kB / 0.8261 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004478/1.416, allocations: 0.6928 MB / 0.8268 GB, free: 39.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/1.416, allocations: 44.12 kB / 0.8268 GB, free: 39.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.704e-05/1.416, allocations: 39.92 kB / 0.8268 GB, free: 38.97 MB / 426.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 () * 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.0001653/1.417, allocations: 148.8 kB / 0.827 GB, free: 38.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/1.417, allocations: 75.06 kB / 0.8271 GB, free: 38.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/1.418, allocations: 0.827 MB / 0.8279 GB, free: 37.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/1.418, allocations: 11.98 kB / 0.8279 GB, free: 37.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.418, allocations: 4 kB / 0.8279 GB, free: 37.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/1.418, allocations: 3.984 kB / 0.8279 GB, free: 37.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/1.42, allocations: 1.637 MB / 0.8295 GB, free: 36.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/1.42, allocations: 0 / 0.8295 GB, free: 36.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/1.421, allocations: 111.8 kB / 0.8296 GB, free: 36.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001357/1.422, allocations: 328.6 kB / 0.8299 GB, free: 35.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.52e-05/1.422, allocations: 27.94 kB / 0.8299 GB, free: 35.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005506/1.423, allocations: 0.7905 MB / 0.8307 GB, free: 34.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/1.423, allocations: 0 / 0.8307 GB, free: 34.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/1.424, allocations: 1.24 MB / 0.8319 GB, free: 33.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/1.424, allocations: 156.2 kB / 0.8321 GB, free: 33.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/1.424, allocations: 12 kB / 0.8321 GB, free: 33.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/1.425, allocations: 44.03 kB / 0.8321 GB, free: 33.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/1.425, allocations: 60.38 kB / 0.8322 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/1.425, allocations: 27.98 kB / 0.8322 GB, free: 33.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004277/1.425, allocations: 435.1 kB / 0.8326 GB, free: 32.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.425, allocations: 0 / 0.8326 GB, free: 32.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001523/1.427, allocations: 0.5971 MB / 0.8332 GB, free: 32.3 MB / 426.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]) * 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.001028/1.428, allocations: 0.5786 MB / 0.8338 GB, free: 31.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/1.43, allocations: 1.131 MB / 0.8349 GB, free: 30.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.43, allocations: 4 kB / 0.8349 GB, free: 30.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005165/1.43, allocations: 363 kB / 0.8352 GB, free: 30.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/1.432, allocations: 335.1 kB / 0.8355 GB, free: 29.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/1.433, allocations: 1.198 MB / 0.8367 GB, free: 28.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/1.434, allocations: 0.9841 MB / 0.8377 GB, free: 27.65 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009337/1.434, allocations: 318 kB / 0.838 GB, free: 27.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/1.435, allocations: 67.3 kB / 0.838 GB, free: 27.27 MB / 426.7 MB Notification: Performance of SimCode: time 5e-07/1.435, allocations: 4 kB / 0.838 GB, free: 27.26 MB / 426.7 MB Notification: Performance of Templates: time 0.0256/1.46, allocations: 20.76 MB / 0.8583 GB, free: 6.469 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches