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.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,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.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_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003218/0.003217, allocations: 188.5 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.634/3.634, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001958/0.001958, allocations: 98.84 kB / 270.9 MB, free: 13.39 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0006612/0.0006615, allocations: 8 kB / 327 MB, free: 15.11 MB / 234.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2502, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.4618/0.7122, allocations: 17.72 MB / 392.3 MB, free: 9.121 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.02001/0.7322, allocations: 6.226 MB / 398.5 MB, free: 9 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001985/0.7343, allocations: 28.91 kB / 398.5 MB, free: 8.984 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.002464/0.7368, allocations: 318 kB / 398.8 MB, free: 8.914 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.009135/0.746, allocations: 0.8975 MB / 399.7 MB, free: 8.848 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0129/0.759, allocations: 1.421 MB / 401.1 MB, free: 8.723 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.004905/0.764, allocations: 1.21 MB / 402.4 MB, free: 8.387 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002338/0.7664, allocations: 489.8 kB / 402.8 MB, free: 8.23 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003451/0.7699, allocations: 0.6458 MB / 403.5 MB, free: 7.996 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002534/0.7725, allocations: 0.4943 MB / 404 MB, free: 7.832 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0006399/0.7732, allocations: 42.44 kB / 404 MB, free: 7.832 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006518/0.7798, allocations: 1.11 MB / 405.1 MB, free: 7.59 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.7808, allocations: 230.5 kB / 405.3 MB, free: 7.508 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0009935/0.7819, allocations: 180 kB / 405.5 MB, free: 7.41 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.005951/0.7879, allocations: 1.352 MB / 406.9 MB, free: 7.141 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.788, allocations: 1.312 kB / 406.9 MB, free: 7.141 MB / 282.8 MB Notification: Performance of FrontEnd: time 4.117e-06/0.788, allocations: 3.938 kB / 406.9 MB, free: 7.137 MB / 282.8 MB Notification: Performance of Transformations before backend: time 6.11e-05/0.7881, allocations: 0 / 406.9 MB, free: 7.137 MB / 282.8 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.006068/0.7941, allocations: 1.113 MB / 408 MB, free: 6.27 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 7.02e-05/0.7942, allocations: 9.656 kB / 408 MB, free: 6.27 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.7955, allocations: 107.6 kB / 408.1 MB, free: 6.215 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.7982, allocations: 0.5702 MB / 408.7 MB, free: 5.75 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.7984, allocations: 47.52 kB / 408.7 MB, free: 5.727 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000372/0.7988, allocations: 55.08 kB / 408.8 MB, free: 5.711 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004109/0.8029, allocations: 0.8804 MB / 409.7 MB, free: 5.137 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.906e-05/0.8031, allocations: 1.25 kB / 409.7 MB, free: 5.137 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002456/0.8033, allocations: 25.28 kB / 409.7 MB, free: 5.121 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001869/0.8036, allocations: 45.28 kB / 409.7 MB, free: 5.109 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004198/0.8078, allocations: 0.8097 MB / 410.5 MB, free: 4.703 MB / 282.8 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.01412/0.822, allocations: 3.85 MB / 414.4 MB, free: 1.395 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/0.8245, allocations: 0.5475 MB / 414.9 MB, free: 1.102 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000657/0.8252, allocations: 0.4973 MB / 415.4 MB, free: 0.5234 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.285e-05/0.8253, allocations: 47.12 kB / 415.5 MB, free: 484 kB / 282.8 MB Notification: Performance of pre-optimization done (n=47): time 5.39e-06/0.8253, allocations: 0 / 415.5 MB, free: 484 kB / 282.8 MB Notification: Performance of matching and sorting (n=52): time 0.01296/0.8383, allocations: 2.116 MB / 417.6 MB, free: 15.12 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.8385, allocations: 139.5 kB / 417.7 MB, free: 14.96 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002356/0.8409, allocations: 0.7233 MB / 418.5 MB, free: 14.54 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002857/0.8413, allocations: 39.14 kB / 418.5 MB, free: 14.5 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006371/0.8419, allocations: 394.9 kB / 418.9 MB, free: 14.14 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004971/0.8424, allocations: 183.5 kB / 419.1 MB, free: 13.99 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.8426, allocations: 14.94 kB / 419.1 MB, free: 13.98 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.8428, allocations: 341.2 kB / 419.4 MB, free: 13.64 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.8442, allocations: 301.2 kB / 419.7 MB, free: 13.49 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.8461, allocations: 0.4986 MB / 420.2 MB, free: 13.08 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.8478, allocations: 355.6 kB / 420.5 MB, free: 12.9 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.8478, allocations: 0 / 420.5 MB, free: 12.9 MB / 298.8 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004654/0.8525, allocations: 0.9357 MB / 421.5 MB, free: 12.4 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.001513/0.8541, allocations: 2.271 MB / 423.8 MB, free: 9.973 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.151e-05/0.8542, allocations: 6.25 kB / 423.8 MB, free: 9.973 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004437/0.8587, allocations: 296.2 kB / 424 MB, free: 9.836 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.8604, allocations: 154.5 kB / 424.2 MB, free: 9.797 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002714/0.8632, allocations: 1.297 MB / 425.5 MB, free: 8.598 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.8655, allocations: 52.44 kB / 425.5 MB, free: 8.574 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004657/0.866, allocations: 33.05 kB / 425.6 MB, free: 8.566 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.8661, allocations: 4.781 kB / 425.6 MB, free: 8.566 MB / 298.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004415/0.8705, allocations: 0.8427 MB / 426.4 MB, free: 8.02 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.969e-05/0.8706, allocations: 12.03 kB / 426.4 MB, free: 8.008 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00288/0.8735, allocations: 180.2 kB / 426.6 MB, free: 7.828 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002231/0.8758, allocations: 175.7 kB / 426.8 MB, free: 7.656 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.8778, allocations: 1.179 MB / 428 MB, free: 6.426 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.8794, allocations: 51.91 kB / 428 MB, free: 6.375 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/0.8797, allocations: 36 kB / 428.1 MB, free: 6.34 MB / 298.8 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.001269/0.881, allocations: 333.1 kB / 428.4 MB, free: 6.004 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/0.8815, allocations: 83.02 kB / 428.5 MB, free: 5.922 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004963/0.8865, allocations: 0.987 MB / 429.4 MB, free: 4.926 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.36e-05/0.8866, allocations: 4 kB / 429.4 MB, free: 4.922 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.8866, allocations: 0 / 429.4 MB, free: 4.922 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.154e-05/0.8867, allocations: 7.984 kB / 429.5 MB, free: 4.914 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009147/0.8958, allocations: 1.759 MB / 431.2 MB, free: 3.098 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/0.8959, allocations: 3.938 kB / 431.2 MB, free: 3.094 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00144/0.8974, allocations: 104 kB / 431.3 MB, free: 2.992 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003077/0.9005, allocations: 249.5 kB / 431.6 MB, free: 2.742 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/0.9008, allocations: 15.98 kB / 431.6 MB, free: 2.727 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002352/0.9032, allocations: 1.275 MB / 432.9 MB, free: 1.402 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.379e-05/0.9033, allocations: 7.922 kB / 432.9 MB, free: 1.395 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006066/0.9094, allocations: 1.333 MB / 434.2 MB, free: 12 kB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008589/0.9103, allocations: 168.1 kB / 434.4 MB, free: 15.83 MB / 314.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006388/0.911, allocations: 20 kB / 434.4 MB, free: 15.81 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/0.9131, allocations: 51.83 kB / 434.4 MB, free: 15.76 MB / 314.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004811/0.9136, allocations: 56.42 kB / 434.5 MB, free: 15.7 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002852/0.914, allocations: 31.97 kB / 434.5 MB, free: 15.67 MB / 314.8 MB Notification: Performance of sorting global known variables: time 0.002003/0.916, allocations: 0.5029 MB / 435 MB, free: 15.18 MB / 314.8 MB Notification: Performance of sort global known variables: time 1.362e-06/0.9161, allocations: 0 / 435 MB, free: 15.18 MB / 314.8 MB Notification: Performance of remove unused functions: time 0.00559/0.9217, allocations: 0.5896 MB / 435.6 MB, free: 14.59 MB / 314.8 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.003382/0.9252, allocations: 499.3 kB / 436.1 MB, free: 14.12 MB / 314.8 MB Notification: Performance of simCode: created initialization part: time 0.006888/0.9321, allocations: 1.193 MB / 437.3 MB, free: 12.93 MB / 314.8 MB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/0.9322, allocations: 4.062 kB / 437.3 MB, free: 12.93 MB / 314.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002055/0.9343, allocations: 387 kB / 437.7 MB, free: 12.55 MB / 314.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005288/0.9396, allocations: 390.7 kB / 438.1 MB, free: 12.17 MB / 314.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007457/0.9472, allocations: 1.941 MB / 440 MB, free: 10.18 MB / 314.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.9485, allocations: 1.007 MB / 441 MB, free: 9.148 MB / 314.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007911/0.9494, allocations: 83.41 kB / 441.1 MB, free: 9.066 MB / 314.8 MB Notification: Performance of SimCode: time 2.335e-06/0.9494, allocations: 4 kB / 441.1 MB, free: 9.062 MB / 314.8 MB Notification: Performance of Templates: time 0.08062/1.03, allocations: 22.69 MB / 463.8 MB, free: 2.34 MB / 330.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_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/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches