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.001345/0.001345, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.507/1.507, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.001015/0.001016, allocations: 96.36 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.682e-05/1.715e-05, allocations: 4 kB / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1201, allocations: 50.41 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9052/1.025, allocations: 321.6 MB / 0.6924 GB, free: 7.316 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/1.026, allocations: 86.64 kB / 0.6925 GB, free: 7.273 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5682/1.594, allocations: 139.5 MB / 0.8287 GB, free: 67.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.594, allocations: 0 / 0.8287 GB, free: 67.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.141e-05/1.594, allocations: 27.61 kB / 0.8287 GB, free: 67.5 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00313/1.597, allocations: 1.021 MB / 0.8297 GB, free: 66.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/1.597, allocations: 8.031 kB / 0.8297 GB, free: 66.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/1.598, allocations: 91.05 kB / 0.8298 GB, free: 66.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/1.599, allocations: 0.5811 MB / 0.8304 GB, free: 65.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.997e-05/1.599, allocations: 16 kB / 0.8304 GB, free: 65.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/1.599, allocations: 28 kB / 0.8304 GB, free: 65.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001011/1.601, allocations: 0.6039 MB / 0.831 GB, free: 65.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/1.602, allocations: 0.662 MB / 0.8317 GB, free: 64.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/1.602, allocations: 0 / 0.8317 GB, free: 64.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.215e-05/1.602, allocations: 8 kB / 0.8317 GB, free: 64.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-05/1.602, allocations: 45.28 kB / 0.8317 GB, free: 64.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00403/1.606, allocations: 2.75 MB / 0.8344 GB, free: 61.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000548/1.606, allocations: 443.7 kB / 0.8348 GB, free: 60.99 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/1.607, allocations: 238.1 kB / 0.8351 GB, free: 60.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002369/1.607, allocations: 344.1 kB / 0.8354 GB, free: 60.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/1.607, allocations: 39 kB / 0.8354 GB, free: 60.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 2.054e-06/1.607, allocations: 0 / 0.8354 GB, free: 60.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.005027/1.612, allocations: 1.818 MB / 0.8372 GB, free: 58.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/1.612, allocations: 81.67 kB / 0.8373 GB, free: 58.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004859/1.613, allocations: 454.1 kB / 0.8377 GB, free: 57.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/1.613, allocations: 25.7 kB / 0.8377 GB, free: 57.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/1.613, allocations: 332.2 kB / 0.8381 GB, free: 57.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/1.613, allocations: 189.1 kB / 0.8382 GB, free: 57.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/1.613, allocations: 3.938 kB / 0.8382 GB, free: 57.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/1.613, allocations: 382.7 kB / 0.8386 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/1.613, allocations: 273.5 kB / 0.8389 GB, free: 56.69 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/1.614, allocations: 425.5 kB / 0.8393 GB, free: 56.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/1.615, allocations: 0.5196 MB / 0.8398 GB, free: 55.69 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.615, allocations: 0 / 0.8398 GB, free: 55.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002155/1.618, allocations: 1.055 MB / 0.8408 GB, free: 54.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004247/1.618, allocations: 1.741 MB / 0.8425 GB, free: 52.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/1.618, allocations: 15.98 kB / 0.8425 GB, free: 52.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004769/1.618, allocations: 160.7 kB / 0.8427 GB, free: 52.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005374/1.619, allocations: 147.8 kB / 0.8428 GB, free: 52.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/1.62, allocations: 0.9502 MB / 0.8438 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006493/1.621, allocations: 39.97 kB / 0.8438 GB, free: 51.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.82e-05/1.621, allocations: 32 kB / 0.8438 GB, free: 51.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.621, allocations: 9.344 kB / 0.8438 GB, free: 51.37 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001867/1.623, allocations: 0.8858 MB / 0.8447 GB, free: 50.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/1.623, allocations: 4 kB / 0.8447 GB, free: 50.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/1.623, allocations: 104.8 kB / 0.8448 GB, free: 50.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/1.624, allocations: 155.8 kB / 0.8449 GB, free: 50.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/1.625, allocations: 0.806 MB / 0.8457 GB, free: 49.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004871/1.625, allocations: 32.03 kB / 0.8458 GB, free: 49.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/1.626, allocations: 28 kB / 0.8458 GB, free: 49.33 MB / 442.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.0002015/1.626, allocations: 136.7 kB / 0.8459 GB, free: 49.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/1.626, allocations: 67.2 kB / 0.846 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/1.628, allocations: 0.8226 MB / 0.8468 GB, free: 48.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/1.628, allocations: 4 kB / 0.8468 GB, free: 48.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/1.628, allocations: 0 / 0.8468 GB, free: 48.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/1.628, allocations: 3.984 kB / 0.8468 GB, free: 48.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/1.63, allocations: 1.559 MB / 0.8483 GB, free: 46.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.63, allocations: 8 kB / 0.8483 GB, free: 46.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004654/1.631, allocations: 111.8 kB / 0.8484 GB, free: 46.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004429/1.631, allocations: 168.8 kB / 0.8486 GB, free: 46.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/1.631, allocations: 8 kB / 0.8486 GB, free: 46.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009628/1.632, allocations: 0.8685 MB / 0.8495 GB, free: 45.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.632, allocations: 0 / 0.8495 GB, free: 45.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/1.634, allocations: 1.236 MB / 0.8507 GB, free: 44.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/1.634, allocations: 148.2 kB / 0.8508 GB, free: 44.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.501e-05/1.634, allocations: 4 kB / 0.8508 GB, free: 44.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004297/1.635, allocations: 31.97 kB / 0.8508 GB, free: 44.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/1.635, allocations: 52.48 kB / 0.8509 GB, free: 43.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.927e-05/1.635, allocations: 23.98 kB / 0.8509 GB, free: 43.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003578/1.635, allocations: 342.9 kB / 0.8512 GB, free: 43.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.635, allocations: 3.938 kB / 0.8512 GB, free: 43.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001769/1.637, allocations: 0.5463 MB / 0.8518 GB, free: 43.07 MB / 442.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.001049/1.638, allocations: 0.5879 MB / 0.8523 GB, free: 42.51 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001592/1.64, allocations: 1.07 MB / 0.8534 GB, free: 41.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.64, allocations: 0 / 0.8534 GB, free: 41.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004704/1.64, allocations: 355.8 kB / 0.8537 GB, free: 41.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/1.642, allocations: 299 kB / 0.854 GB, free: 40.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/1.643, allocations: 1.144 MB / 0.8551 GB, free: 39.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/1.644, allocations: 0.9873 MB / 0.8561 GB, free: 38.61 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000978/1.645, allocations: 288.2 kB / 0.8564 GB, free: 38.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/1.645, allocations: 51.42 kB / 0.8564 GB, free: 38.28 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/1.645, allocations: 0 / 0.8564 GB, free: 38.28 MB / 442.7 MB Notification: Performance of Templates: time 0.02584/1.671, allocations: 18.33 MB / 0.8743 GB, free: 20.07 MB / 442.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