Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00723/0.007237, allocations: 188.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.598/3.598, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002015/0.002016, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005938/0.0005943, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1468, allocations: 47.57 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.4372/0.584, allocations: 18.8 MB / 393.3 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0234/0.6075, allocations: 8.825 MB / 402.2 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.6094, allocations: 35.97 kB / 402.2 MB, free: 7.566 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.6118, allocations: 348 kB / 402.5 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007275/0.6191, allocations: 1.16 MB / 403.7 MB, free: 7.055 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01265/0.6318, allocations: 2.029 MB / 405.7 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005152/0.637, allocations: 1.427 MB / 407.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001894/0.6389, allocations: 0.5464 MB / 407.7 MB, free: 5.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003518/0.6425, allocations: 0.774 MB / 408.5 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002726/0.6453, allocations: 0.6392 MB / 409.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005705/0.6459, allocations: 45.69 kB / 409.2 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008085/0.654, allocations: 1.563 MB / 410.7 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.6553, allocations: 287.4 kB / 411 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009766/0.6564, allocations: 208 kB / 411.2 MB, free: 4.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006748/0.6631, allocations: 1.759 MB / 413 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6632, allocations: 5.656 kB / 413 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.6632, allocations: 0 / 413 MB, free: 3.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.121e-05/0.6633, allocations: 0 / 413 MB, free: 3.125 MB / 282.7 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.006026/0.6693, allocations: 1.313 MB / 414.3 MB, free: 2.113 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.6694, allocations: 9.625 kB / 414.3 MB, free: 2.113 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.6707, allocations: 112.5 kB / 414.4 MB, free: 2.059 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.6734, allocations: 0.6656 MB / 415.1 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.6736, allocations: 52.48 kB / 415.1 MB, free: 1.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.6739, allocations: 59.2 kB / 415.2 MB, free: 1.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004192/0.6781, allocations: 1.045 MB / 416.2 MB, free: 0.793 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.453e-05/0.6783, allocations: 5.625 kB / 416.2 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.6785, allocations: 31.67 kB / 416.3 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002822/0.6788, allocations: 66.45 kB / 416.3 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004851/0.6837, allocations: 1.033 MB / 417.4 MB, free: 236 kB / 282.7 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.01671/0.7005, allocations: 4.525 MB / 421.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002496/0.703, allocations: 0.5612 MB / 422.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006264/0.7094, allocations: 2.015 MB / 424.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.593e-05/0.7095, allocations: 38.17 kB / 424.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 4.338e-06/0.7095, allocations: 0 / 424.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.01116/0.7207, allocations: 1.951 MB / 426.5 MB, free: 8.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.7209, allocations: 158.2 kB / 426.6 MB, free: 8.309 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002837/0.7237, allocations: 0.9235 MB / 427.5 MB, free: 7.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002492/0.724, allocations: 37.7 kB / 427.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007068/0.7248, allocations: 0.4933 MB / 428.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003618/0.7251, allocations: 165.7 kB / 428.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.7253, allocations: 20 kB / 428.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.7255, allocations: 338.8 kB / 428.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.727, allocations: 313.8 kB / 428.9 MB, free: 5.992 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.7288, allocations: 0.6171 MB / 429.5 MB, free: 5.246 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.7305, allocations: 405.9 kB / 429.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/0.7305, allocations: 4 kB / 429.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004545/0.7351, allocations: 1.031 MB / 430.9 MB, free: 3.797 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001994/0.7371, allocations: 3.483 MB / 434.4 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.201e-05/0.7372, allocations: 11.95 kB / 434.4 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006641/0.7439, allocations: 381.3 kB / 434.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001899/0.7459, allocations: 183.7 kB / 435 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.7485, allocations: 1.335 MB / 436.3 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.7509, allocations: 64.05 kB / 436.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/0.7513, allocations: 43.98 kB / 436.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.7514, allocations: 4 kB / 436.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004486/0.7559, allocations: 0.9676 MB / 437.4 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-05/0.756, allocations: 12 kB / 437.4 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005862/0.7619, allocations: 341.5 kB / 437.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/0.7639, allocations: 183.7 kB / 437.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/0.7663, allocations: 1.292 MB / 439.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.768, allocations: 56.03 kB / 439.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/0.7682, allocations: 51.92 kB / 439.3 MB, free: 11.02 MB / 314.7 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.001192/0.7694, allocations: 360.8 kB / 439.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005021/0.77, allocations: 90.88 kB / 439.7 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004142/0.7741, allocations: 0.7921 MB / 440.5 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.7742, allocations: 8.234 kB / 440.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.7743, allocations: 4 kB / 440.6 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/0.7743, allocations: 11.97 kB / 440.6 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007004/0.7813, allocations: 1.599 MB / 442.2 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.7814, allocations: 4.062 kB / 442.2 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.7825, allocations: 79.89 kB / 442.2 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003725/0.7863, allocations: 305.4 kB / 442.5 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/0.7866, allocations: 16 kB / 442.6 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.7887, allocations: 1.304 MB / 443.9 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.7888, allocations: 0 / 443.9 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004374/0.7932, allocations: 1.103 MB / 445 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008057/0.794, allocations: 191.9 kB / 445.2 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004421/0.7945, allocations: 15.98 kB / 445.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.7961, allocations: 35.98 kB / 445.2 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/0.7965, allocations: 52.38 kB / 445.3 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.7966, allocations: 23.98 kB / 445.3 MB, free: 4.836 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002162/0.7988, allocations: 0.6442 MB / 445.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.182e-06/0.7989, allocations: 0 / 445.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.005224/0.8041, allocations: 0.7535 MB / 446.7 MB, free: 3.426 MB / 314.7 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.003496/0.8076, allocations: 0.5996 MB / 447.3 MB, free: 2.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00602/0.8137, allocations: 1.228 MB / 448.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/0.8138, allocations: 0 / 448.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.8154, allocations: 314.2 kB / 448.8 MB, free: 1.293 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004661/0.8201, allocations: 383.3 kB / 449.2 MB, free: 0.918 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0069/0.827, allocations: 2.034 MB / 451.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.8283, allocations: 1.053 MB / 452.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007377/0.829, allocations: 83.42 kB / 452.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.734e-06/0.8291, allocations: 0 / 452.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of Templates: time 0.1381/0.9672, allocations: 25.85 MB / 478.2 MB, free: 3.785 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches