Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 94.53 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 182.8 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 241.1 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002314, allocations: 8.094 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08747, allocations: 50.42 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.01735/0.1048, allocations: 17.73 MB / 368.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009522/0.1144, allocations: 6.297 MB / 375.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009618/0.1154, allocations: 31.75 kB / 375.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.1164, allocations: 314.3 kB / 375.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00247/0.1189, allocations: 0.9036 MB / 376.4 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003844/0.1228, allocations: 1.415 MB / 377.8 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002354/0.1252, allocations: 1.207 MB / 379 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009207/0.1261, allocations: 486 kB / 379.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.1273, allocations: 0.6426 MB / 380.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006686/0.128, allocations: 0.4904 MB / 380.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.988e-05/0.1281, allocations: 40 kB / 380.7 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.1305, allocations: 1.116 MB / 381.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000248/0.1307, allocations: 227.4 kB / 382 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.1309, allocations: 185.3 kB / 382.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.1327, allocations: 1.337 MB / 383.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1327, allocations: 0 / 383.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1327, allocations: 0 / 383.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1327, allocations: 0 / 383.5 MB, free: 11.2 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002227/0.135, allocations: 1.13 MB / 384.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.135, allocations: 11.97 kB / 384.7 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003494/0.1354, allocations: 98.91 kB / 384.8 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009154/0.1363, allocations: 0.5779 MB / 385.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.1363, allocations: 45.3 kB / 385.4 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.359e-05/0.1364, allocations: 55.94 kB / 385.5 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.1378, allocations: 0.8745 MB / 386.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.1378, allocations: 4 kB / 386.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.561e-05/0.1379, allocations: 23.98 kB / 386.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.143e-05/0.138, allocations: 53.28 kB / 386.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.1392, allocations: 0.8052 MB / 387.2 MB, free: 7.383 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005094/0.1443, allocations: 3.862 MB / 391.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008452/0.1452, allocations: 0.5373 MB / 391.6 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003529/0.1455, allocations: 0.4995 MB / 392.1 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.1456, allocations: 39 kB / 392.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.174e-06/0.1456, allocations: 3.938 kB / 392.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004437/0.15, allocations: 2.121 MB / 394.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.838e-05/0.1501, allocations: 137 kB / 394.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009041/0.1511, allocations: 0.723 MB / 395.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.491e-05/0.1511, allocations: 41.64 kB / 395.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.1514, allocations: 387.9 kB / 395.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.1516, allocations: 181.4 kB / 395.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.1516, allocations: 16 kB / 395.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1518, allocations: 382.8 kB / 396.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004761/0.1523, allocations: 301.8 kB / 396.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.1529, allocations: 0.4954 MB / 396.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005606/0.1534, allocations: 353.9 kB / 397.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1535, allocations: 11.95 kB / 397.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001645/0.1551, allocations: 0.9722 MB / 398.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007563/0.1559, allocations: 2.276 MB / 400.5 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.1559, allocations: 4 kB / 400.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/0.1576, allocations: 305.3 kB / 400.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/0.1582, allocations: 155.8 kB / 401 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.1593, allocations: 1.3 MB / 402.3 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006774/0.16, allocations: 47.97 kB / 402.3 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.198e-05/0.1601, allocations: 35.98 kB / 402.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.1601, allocations: 8.062 kB / 402.4 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001417/0.1615, allocations: 0.8425 MB / 403.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1616, allocations: 4 kB / 403.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.1627, allocations: 193.8 kB / 403.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006815/0.1634, allocations: 167.8 kB / 403.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000758/0.1642, allocations: 1.19 MB / 404.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.1647, allocations: 48.05 kB / 404.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.495e-05/0.1648, allocations: 35.98 kB / 404.8 MB, free: 4.836 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],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 (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004411/0.1653, allocations: 324.9 kB / 405.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.1654, allocations: 83 kB / 405.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.1672, allocations: 0.9854 MB / 406.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.1672, allocations: 8 kB / 406.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1672, allocations: 4 kB / 406.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.1672, allocations: 3.984 kB / 406.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.1699, allocations: 1.759 MB / 408 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1699, allocations: 0 / 408 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.1704, allocations: 107.8 kB / 408.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.1715, allocations: 241.6 kB / 408.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.711e-05/0.1716, allocations: 23.98 kB / 408.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008606/0.1724, allocations: 1.269 MB / 409.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1724, allocations: 0 / 409.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.1743, allocations: 1.341 MB / 411 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.1746, allocations: 172.1 kB / 411.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.1747, allocations: 19.98 kB / 411.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.1752, allocations: 43.97 kB / 411.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.1754, allocations: 60.44 kB / 411.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.1754, allocations: 23.98 kB / 411.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006265/0.1761, allocations: 0.5068 MB / 411.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1761, allocations: 0 / 411.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001543/0.1776, allocations: 0.5974 MB / 412.4 MB, free: 13.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001091/0.1787, allocations: 0.4913 MB / 412.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002276/0.181, allocations: 1.188 MB / 414.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.181, allocations: 0 / 414.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.1817, allocations: 398.9 kB / 414.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.1836, allocations: 383.7 kB / 414.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.1863, allocations: 1.887 MB / 416.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.1869, allocations: 1.011 MB / 417.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.188, allocations: 316.5 kB / 418 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.1882, allocations: 83.34 kB / 418.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.1882, allocations: 0 / 418.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of Templates: time 0.2213/0.4096, allocations: 21.15 MB / 439.3 MB, free: 62.08 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches