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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 95.41 kB / 16.93 MB, free: 5.984 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.0008627/0.0008627, allocations: 181.2 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000428/0.000428, allocations: 16 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 47.59 MB / 328.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01626/0.117, allocations: 15.27 MB / 343.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008627/0.1257, allocations: 5.456 MB / 349.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007978/0.1266, allocations: 35.69 kB / 349.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007567/0.1273, allocations: 290.5 kB / 349.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002286/0.1296, allocations: 0.8529 MB / 350.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003256/0.1329, allocations: 1.247 MB / 351.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001827/0.1347, allocations: 1.082 MB / 352.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006451/0.1354, allocations: 405.7 kB / 353 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009484/0.1363, allocations: 0.5413 MB / 353.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006414/0.137, allocations: 462.3 kB / 353.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.713e-05/0.1371, allocations: 39.98 kB / 354 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.1394, allocations: 1.014 MB / 355 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.1396, allocations: 211.4 kB / 355.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.1398, allocations: 161.3 kB / 355.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.1415, allocations: 1.212 MB / 356.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1415, allocations: 0 / 356.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1415, allocations: 0 / 356.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1415, allocations: 0 / 356.6 MB, free: 7.746 MB / 302.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.001907/0.1434, allocations: 1.044 MB / 357.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.1435, allocations: 8.031 kB / 357.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.1437, allocations: 79.16 kB / 357.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008353/0.1446, allocations: 0.5287 MB / 358.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.76e-05/0.1446, allocations: 37 kB / 358.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.59e-05/0.1447, allocations: 47.98 kB / 358.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.1458, allocations: 0.7333 MB / 359.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.1459, allocations: 3.953 kB / 359.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.789e-05/0.146, allocations: 23.98 kB / 359.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.599e-05/0.146, allocations: 44.97 kB / 359.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1471, allocations: 0.6908 MB / 359.8 MB, free: 4.391 MB / 302.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.004243/0.1513, allocations: 3.054 MB / 362.9 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007271/0.1521, allocations: 488.5 kB / 363.3 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002904/0.1524, allocations: 345.3 kB / 363.7 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.1524, allocations: 43 kB / 363.7 MB, free: 172 kB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.895e-06/0.1524, allocations: 0 / 363.7 MB, free: 172 kB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005136/0.1576, allocations: 2.316 MB / 366 MB, free: 13.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.1576, allocations: 85.67 kB / 366.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007541/0.1584, allocations: 0.6171 MB / 366.7 MB, free: 13.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.125e-05/0.1585, allocations: 41.7 kB / 366.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.1587, allocations: 332.4 kB / 367.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.1589, allocations: 201.1 kB / 367.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.159, allocations: 12 kB / 367.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1591, allocations: 386.8 kB / 367.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.1596, allocations: 293.8 kB / 368 MB, free: 11.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.1602, allocations: 473.8 kB / 368.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005254/0.1607, allocations: 343.1 kB / 368.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1607, allocations: 4 kB / 368.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001417/0.1622, allocations: 0.9581 MB / 369.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007207/0.1629, allocations: 1.839 MB / 371.6 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1629, allocations: 4 kB / 371.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/0.1654, allocations: 424.3 kB / 372 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.166, allocations: 159.7 kB / 372.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008231/0.1669, allocations: 0.8138 MB / 373 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005405/0.1674, allocations: 48.03 kB / 373 MB, free: 6.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.424e-05/0.1675, allocations: 35.98 kB / 373 MB, free: 6.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.1675, allocations: 4 kB / 373.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001247/0.1688, allocations: 0.8124 MB / 373.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1688, allocations: 4 kB / 373.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001938/0.1707, allocations: 284.9 kB / 374.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005764/0.1713, allocations: 171.7 kB / 374.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006101/0.1719, allocations: 0.7045 MB / 375 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/0.1725, allocations: 59.81 kB / 375.1 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/0.1725, allocations: 28 kB / 375.1 MB, free: 4.387 MB / 318.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.0003877/0.1729, allocations: 316.9 kB / 375.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.173, allocations: 75.11 kB / 375.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/0.1746, allocations: 0.8659 MB / 376.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.1746, allocations: 8 kB / 376.4 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1746, allocations: 4.062 kB / 376.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.1746, allocations: 7.984 kB / 376.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.1776, allocations: 1.715 MB / 378.1 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.1776, allocations: 4 kB / 378.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.1781, allocations: 107.9 kB / 378.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001543/0.1797, allocations: 356.5 kB / 378.5 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.1797, allocations: 19.98 kB / 378.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1855/0.3653, allocations: 0.8087 MB / 379.4 MB, free: 32.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.3653, allocations: 0.9688 kB / 379.4 MB, free: 32.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.3676, allocations: 1.31 MB / 380.7 MB, free: 32.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.3679, allocations: 150.1 kB / 380.8 MB, free: 32.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.368, allocations: 17.31 kB / 380.8 MB, free: 32.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004682/0.3685, allocations: 39.36 kB / 380.9 MB, free: 32.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.3686, allocations: 51.88 kB / 380.9 MB, free: 32.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.518e-05/0.3687, allocations: 24.36 kB / 381 MB, free: 32.28 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007791/0.3695, allocations: 440.4 kB / 381.4 MB, free: 32.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3695, allocations: 0.5625 kB / 381.4 MB, free: 32.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001651/0.3712, allocations: 0.5255 MB / 381.9 MB, free: 32.18 MB / 318.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.000832/0.372, allocations: 443.1 kB / 382.3 MB, free: 32.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3742, allocations: 1.16 MB / 383.5 MB, free: 32.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3742, allocations: 0 / 383.5 MB, free: 32.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006794/0.3749, allocations: 389.7 kB / 383.9 MB, free: 32.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.3764, allocations: 334.8 kB / 384.2 MB, free: 32.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.3789, allocations: 1.868 MB / 386.1 MB, free: 31.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.3794, allocations: 0.9812 MB / 387.1 MB, free: 30.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009719/0.3804, allocations: 287.4 kB / 387.3 MB, free: 30.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.3806, allocations: 64.09 kB / 387.4 MB, free: 30.52 MB / 318.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3806, allocations: 4 kB / 387.4 MB, free: 30.52 MB / 318.1 MB Notification: Performance of Templates: time 0.02574/0.4063, allocations: 18.74 MB / 406.2 MB, free: 21.93 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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