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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 93.98 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.001325/0.001325, allocations: 184.7 kB / 17.2 MB, free: 5.91 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.478/1.478, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002318/0.0002318, allocations: 6.562 kB / 300.7 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08537, allocations: 50.42 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01352/0.09891, allocations: 15.28 MB / 366.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007305/0.1063, allocations: 5.495 MB / 371.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005541/0.1068, allocations: 31.75 kB / 371.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007169/0.1076, allocations: 298.4 kB / 372.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00226/0.1098, allocations: 0.8412 MB / 373.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003949/0.1138, allocations: 1.252 MB / 374.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002004/0.1158, allocations: 1.082 MB / 375.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006266/0.1164, allocations: 397.4 kB / 375.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008687/0.1173, allocations: 0.553 MB / 376.4 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006039/0.1179, allocations: 462.4 kB / 376.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.908e-05/0.118, allocations: 32 kB / 376.8 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001787/0.1198, allocations: 1.01 MB / 377.8 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.1201, allocations: 215.4 kB / 378.1 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.1202, allocations: 169.3 kB / 378.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001442/0.1217, allocations: 1.2 MB / 379.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1217, allocations: 0 / 379.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1217, allocations: 0 / 379.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1217, allocations: 0 / 379.4 MB, free: 15.34 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001914/0.1236, allocations: 1.044 MB / 380.5 MB, free: 14.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1237, allocations: 8.031 kB / 380.5 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002668/0.124, allocations: 91.05 kB / 380.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008864/0.1248, allocations: 0.5288 MB / 381.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.1249, allocations: 36.98 kB / 381.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.497e-05/0.125, allocations: 55.97 kB / 381.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.1262, allocations: 0.7255 MB / 381.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.1262, allocations: 4 kB / 381.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-05/0.1263, allocations: 23.98 kB / 381.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.229e-05/0.1264, allocations: 44.91 kB / 382 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.1275, allocations: 0.687 MB / 382.7 MB, free: 11.97 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.004372/0.1319, allocations: 3.05 MB / 385.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007107/0.1326, allocations: 496.9 kB / 386.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002548/0.1329, allocations: 340.8 kB / 386.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.1329, allocations: 39 kB / 386.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.583e-06/0.1329, allocations: 0 / 386.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005086/0.138, allocations: 2.319 MB / 388.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.1381, allocations: 89.66 kB / 389 MB, free: 5.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006802/0.1388, allocations: 0.6172 MB / 389.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/0.1388, allocations: 37.7 kB / 389.6 MB, free: 4.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.1391, allocations: 336.3 kB / 390 MB, free: 4.258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.1392, allocations: 201.1 kB / 390.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.1393, allocations: 16 kB / 390.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1394, allocations: 378.8 kB / 390.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/0.1399, allocations: 297.8 kB / 390.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/0.1405, allocations: 469.8 kB / 391.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.141, allocations: 355 kB / 391.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.141, allocations: 0 / 391.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001421/0.1424, allocations: 0.9498 MB / 392.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005479/0.143, allocations: 1.838 MB / 394.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.143, allocations: 4 kB / 394.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/0.1455, allocations: 432.2 kB / 394.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005906/0.1462, allocations: 147.8 kB / 395 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007896/0.147, allocations: 0.8255 MB / 395.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/0.1475, allocations: 51.78 kB / 395.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-05/0.1476, allocations: 36.05 kB / 395.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.1476, allocations: 7.938 kB / 395.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001226/0.1488, allocations: 0.8089 MB / 396.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1488, allocations: 8 kB / 396.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.1508, allocations: 284.6 kB / 397 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/0.1514, allocations: 155.7 kB / 397.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005628/0.1519, allocations: 0.7085 MB / 397.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004647/0.1524, allocations: 43.88 kB / 397.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.589e-05/0.1525, allocations: 32 kB / 397.9 MB, free: 11.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (84): * 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: 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.0003563/0.1528, allocations: 328.8 kB / 398.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.153, allocations: 71.16 kB / 398.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.1544, allocations: 0.8736 MB / 399.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.1544, allocations: 4 kB / 399.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1545, allocations: 4 kB / 399.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.1545, allocations: 3.984 kB / 399.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.1571, allocations: 1.719 MB / 400.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1571, allocations: 0 / 400.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005132/0.1576, allocations: 111.9 kB / 401.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.1592, allocations: 356 kB / 401.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.1593, allocations: 19.98 kB / 401.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007615/0.16, allocations: 0.802 MB / 402.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.16, allocations: 96 / 402.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.1619, allocations: 1.314 MB / 403.5 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.1621, allocations: 160.2 kB / 403.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.1622, allocations: 12 kB / 403.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.1627, allocations: 39.97 kB / 403.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.1628, allocations: 56.48 kB / 403.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/0.1629, allocations: 23.98 kB / 403.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005239/0.1634, allocations: 439 kB / 404.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1634, allocations: 3.938 kB / 404.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001476/0.1649, allocations: 0.5349 MB / 404.8 MB, free: 4.977 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * 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.0008136/0.1657, allocations: 422.8 kB / 405.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.1677, allocations: 1.165 MB / 406.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.1678, allocations: 3.859 kB / 406.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006228/0.1684, allocations: 391.7 kB / 406.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.1698, allocations: 341.7 kB / 407.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.1721, allocations: 1.864 MB / 408.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.1726, allocations: 0.9871 MB / 409.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008356/0.1734, allocations: 285.9 kB / 410.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1736, allocations: 59.42 kB / 410.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1736, allocations: 0 / 410.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Templates: time 0.1681/0.3417, allocations: 18.72 MB / 429 MB, free: 66.98 MB / 350.1 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