Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009299/0.0009299, allocations: 92.55 kB / 16.3 MB, free: 6.457 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.001017/0.001017, allocations: 183 kB / 17.2 MB, free: 6.34 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.279/1.279, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002762, allocations: 7.469 kB / 300.7 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1093, allocations: 50.43 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02041/0.1298, allocations: 18.82 MB / 370 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.1426, allocations: 8.844 MB / 378.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.1438, allocations: 35.69 kB / 378.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001229/0.1451, allocations: 346.2 kB / 379.2 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003459/0.1485, allocations: 1.161 MB / 380.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005456/0.154, allocations: 2.041 MB / 382.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00261/0.1566, allocations: 1.421 MB / 383.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009329/0.1576, allocations: 0.5445 MB / 384.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.159, allocations: 0.7712 MB / 385.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.1601, allocations: 0.6385 MB / 385.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001892/0.1603, allocations: 48 kB / 385.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002962/0.1633, allocations: 1.56 MB / 387.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003656/0.1637, allocations: 291.2 kB / 387.6 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002981/0.164, allocations: 213.2 kB / 387.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00229/0.1663, allocations: 1.754 MB / 389.6 MB, free: 5.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1663, allocations: 4 kB / 389.6 MB, free: 5.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1663, allocations: 3.938 kB / 389.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1663, allocations: 0 / 389.6 MB, free: 5.133 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002552/0.1689, allocations: 1.32 MB / 390.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1689, allocations: 8.031 kB / 390.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003511/0.1693, allocations: 110.9 kB / 391.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1703, allocations: 0.6673 MB / 391.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.629e-05/0.1704, allocations: 53.23 kB / 391.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.1705, allocations: 59.98 kB / 391.8 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.1721, allocations: 1.052 MB / 392.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.1721, allocations: 7.938 kB / 392.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-05/0.1722, allocations: 27.98 kB / 392.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.569e-05/0.1723, allocations: 65.27 kB / 393 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.1738, allocations: 1.028 MB / 394 MB, free: 0.5859 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.006304/0.1801, allocations: 4.516 MB / 398.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009885/0.1811, allocations: 0.5747 MB / 399.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002697/0.1838, allocations: 2.008 MB / 401.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1839, allocations: 38.89 kB / 401.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.793e-06/0.1839, allocations: 0 / 401.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004429/0.1883, allocations: 1.947 MB / 403.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.428e-05/0.1884, allocations: 162.2 kB / 403.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.1896, allocations: 0.9234 MB / 404.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.1897, allocations: 41.7 kB / 404.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004043/0.1901, allocations: 486.9 kB / 404.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.1903, allocations: 165.7 kB / 404.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/0.1903, allocations: 16 kB / 404.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1905, allocations: 345.9 kB / 405.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.191, allocations: 313.8 kB / 405.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006744/0.1917, allocations: 0.6055 MB / 406.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006002/0.1923, allocations: 405.9 kB / 406.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1923, allocations: 7.938 kB / 406.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001694/0.194, allocations: 1.097 MB / 407.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00118/0.1952, allocations: 3.483 MB / 411.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.1952, allocations: 12 kB / 411.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002525/0.1977, allocations: 385.2 kB / 411.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007703/0.1985, allocations: 175.7 kB / 411.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001093/0.1996, allocations: 1.35 MB / 413 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007804/0.2004, allocations: 56.02 kB / 413.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.794e-05/0.2005, allocations: 43.98 kB / 413.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2005, allocations: 6.188 kB / 413.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001551/0.2021, allocations: 0.9755 MB / 414.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.2021, allocations: 8 kB / 414.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002249/0.2044, allocations: 353.4 kB / 414.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006256/0.205, allocations: 183.7 kB / 414.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009653/0.206, allocations: 1.3 MB / 415.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006835/0.2067, allocations: 60.03 kB / 416 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.119e-05/0.2068, allocations: 43.98 kB / 416 MB, free: 9.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (104): * Single equations (assignments): 102 * 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 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004673/0.2073, allocations: 368.9 kB / 416.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.2074, allocations: 98.88 kB / 416.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.209, allocations: 0.7861 MB / 417.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.209, allocations: 12 kB / 417.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.209, allocations: 3.953 kB / 417.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.209, allocations: 3.984 kB / 417.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.2115, allocations: 1.603 MB / 418.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2116, allocations: 0 / 418.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.2119, allocations: 75.91 kB / 419 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001459/0.2134, allocations: 309.5 kB / 419.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.2135, allocations: 11.98 kB / 419.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009955/0.2145, allocations: 1.304 MB / 420.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2145, allocations: 0 / 420.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.216, allocations: 1.099 MB / 421.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.2162, allocations: 195.9 kB / 421.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.2164, allocations: 12 kB / 421.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005297/0.2169, allocations: 44.03 kB / 421.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.217, allocations: 44.36 kB / 422 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.032e-05/0.2171, allocations: 27.92 kB / 422 MB, free: 3.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000779/0.2179, allocations: 0.6403 MB / 422.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2179, allocations: 0 / 422.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001785/0.2197, allocations: 0.7535 MB / 423.4 MB, free: 1.773 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001185/0.2209, allocations: 0.5928 MB / 424 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1416/0.3625, allocations: 1.226 MB / 425.2 MB, free: 67.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.3626, allocations: 0 / 425.2 MB, free: 67.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.3632, allocations: 312.9 kB / 425.5 MB, free: 67.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.365, allocations: 377.5 kB / 425.9 MB, free: 67.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.3673, allocations: 1.994 MB / 427.9 MB, free: 66.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.3678, allocations: 1.054 MB / 428.9 MB, free: 65.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.3689, allocations: 369.6 kB / 429.3 MB, free: 65.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.3691, allocations: 75.8 kB / 429.4 MB, free: 65.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3691, allocations: 0 / 429.4 MB, free: 65.91 MB / 350.1 MB Notification: Performance of Templates: time 0.0312/0.4003, allocations: 23.48 MB / 452.8 MB, free: 52.29 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches