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.001412/0.001413, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 97.16 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.939e-05, allocations: 4 kB / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3375, allocations: 47.57 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9847/1.322, allocations: 327.5 MB / 0.6736 GB, free: 119.6 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/1.323, allocations: 88.64 kB / 0.6737 GB, free: 119.6 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8307/2.153, allocations: 165.3 MB / 0.8352 GB, free: 85.83 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.623e-06/2.153, allocations: 2.844 kB / 0.8352 GB, free: 85.83 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.503e-05/2.154, allocations: 23.67 kB / 0.8352 GB, free: 85.83 MB / 427.1 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.002872/2.156, allocations: 1.102 MB / 0.8363 GB, free: 85.37 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/2.157, allocations: 12.44 kB / 0.8363 GB, free: 85.37 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004798/2.157, allocations: 100.1 kB / 0.8364 GB, free: 85.33 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/2.159, allocations: 0.6214 MB / 0.837 GB, free: 85.09 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/2.159, allocations: 22.7 kB / 0.837 GB, free: 85.08 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/2.159, allocations: 35.81 kB / 0.837 GB, free: 85.08 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001559/2.16, allocations: 0.7037 MB / 0.8377 GB, free: 85.08 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/2.162, allocations: 0.7934 MB / 0.8385 GB, free: 84.9 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/2.162, allocations: 4.406 kB / 0.8385 GB, free: 84.9 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/2.162, allocations: 3.875 kB / 0.8385 GB, free: 84.9 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.562e-05/2.162, allocations: 42.88 kB / 0.8385 GB, free: 84.9 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00653/2.169, allocations: 3.651 MB / 0.8421 GB, free: 82.95 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/2.17, allocations: 0.4917 MB / 0.8426 GB, free: 82.92 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004931/2.17, allocations: 248.7 kB / 0.8428 GB, free: 82.91 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002865/2.173, allocations: 1.843 MB / 0.8446 GB, free: 81.68 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/2.173, allocations: 44.03 kB / 0.8447 GB, free: 81.64 MB / 427.1 MB Notification: Performance of pre-optimization done (n=41): time 2.525e-06/2.173, allocations: 0 / 0.8447 GB, free: 81.64 MB / 427.1 MB Notification: Performance of matching and sorting (n=46): time 0.009181/2.183, allocations: 1.824 MB / 0.8464 GB, free: 81.24 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/2.183, allocations: 136 kB / 0.8466 GB, free: 81.09 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009236/2.184, allocations: 0.5015 MB / 0.8471 GB, free: 80.96 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 7.159e-05/2.184, allocations: 27.95 kB / 0.8471 GB, free: 80.93 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003122/2.184, allocations: 438.3 kB / 0.8475 GB, free: 80.68 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/2.184, allocations: 158.9 kB / 0.8477 GB, free: 80.61 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/2.184, allocations: 0 / 0.8477 GB, free: 80.61 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 8.676e-05/2.184, allocations: 347.6 kB / 0.848 GB, free: 80.29 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005897/2.185, allocations: 237.7 kB / 0.8482 GB, free: 80.29 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007448/2.186, allocations: 480.5 kB / 0.8487 GB, free: 80.02 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007297/2.193, allocations: 0.9327 MB / 0.8496 GB, free: 80.01 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/2.193, allocations: 2.125 kB / 0.8496 GB, free: 80.01 MB / 427.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.008505/2.202, allocations: 1.387 MB / 0.8509 GB, free: 79.94 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005441/2.202, allocations: 2.706 MB / 0.8536 GB, free: 77.12 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/2.202, allocations: 6.438 kB / 0.8536 GB, free: 77.12 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/2.203, allocations: 97.45 kB / 0.8537 GB, free: 77.11 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/2.204, allocations: 190.2 kB / 0.8539 GB, free: 77.11 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/2.206, allocations: 1.879 MB / 0.8557 GB, free: 75.48 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/2.208, allocations: 42.73 kB / 0.8557 GB, free: 75.48 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/2.208, allocations: 39.22 kB / 0.8558 GB, free: 75.48 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/2.208, allocations: 5.406 kB / 0.8558 GB, free: 75.48 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008224/2.216, allocations: 1.3 MB / 0.8571 GB, free: 75.45 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/2.216, allocations: 6.562 kB / 0.8571 GB, free: 75.45 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003123/2.216, allocations: 93.86 kB / 0.8572 GB, free: 75.44 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/2.218, allocations: 178.3 kB / 0.8573 GB, free: 75.44 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/2.219, allocations: 1.232 MB / 0.8585 GB, free: 74.4 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000765/2.22, allocations: 34.66 kB / 0.8586 GB, free: 74.4 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/2.22, allocations: 38.22 kB / 0.8586 GB, free: 74.4 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002955/2.22, allocations: 126 kB / 0.8587 GB, free: 74.29 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/2.22, allocations: 73.92 kB / 0.8588 GB, free: 74.25 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/2.224, allocations: 0.8479 MB / 0.8596 GB, free: 74.17 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/2.224, allocations: 6.875 kB / 0.8596 GB, free: 74.17 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/2.224, allocations: 2.25 kB / 0.8596 GB, free: 74.17 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/2.224, allocations: 3.609 kB / 0.8596 GB, free: 74.17 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004392/2.228, allocations: 1.524 MB / 0.8611 GB, free: 73.84 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/2.228, allocations: 0 / 0.8611 GB, free: 73.84 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/2.229, allocations: 136 kB / 0.8612 GB, free: 73.84 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002999/2.23, allocations: 70.3 kB / 0.8613 GB, free: 73.83 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.236e-05/2.23, allocations: 8.297 kB / 0.8613 GB, free: 73.83 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/2.231, allocations: 1.785 MB / 0.8631 GB, free: 72.2 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/2.231, allocations: 1.219 kB / 0.8631 GB, free: 72.2 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003271/2.234, allocations: 1.145 MB / 0.8642 GB, free: 71.93 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/2.235, allocations: 158.3 kB / 0.8643 GB, free: 71.79 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/2.235, allocations: 7.516 kB / 0.8643 GB, free: 71.79 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008557/2.236, allocations: 32.38 kB / 0.8644 GB, free: 71.79 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/2.236, allocations: 54.58 kB / 0.8644 GB, free: 71.79 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.025e-05/2.236, allocations: 28.5 kB / 0.8644 GB, free: 71.79 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.000694/2.237, allocations: 390.7 kB / 0.8648 GB, free: 71.7 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.71e-07/2.237, allocations: 0 / 0.8648 GB, free: 71.7 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002785/2.24, allocations: 0.6093 MB / 0.8654 GB, free: 71.59 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002395/2.242, allocations: 0.6617 MB / 0.8661 GB, free: 71.4 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.004034/2.246, allocations: 1.051 MB / 0.8671 GB, free: 71.39 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/2.246, allocations: 4.438 kB / 0.8671 GB, free: 71.39 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/2.247, allocations: 355 kB / 0.8674 GB, free: 71.39 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/2.25, allocations: 286.6 kB / 0.8677 GB, free: 71.38 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/2.253, allocations: 1.136 MB / 0.8688 GB, free: 71.04 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/2.253, allocations: 0.9961 MB / 0.8698 GB, free: 70.33 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004543/2.254, allocations: 74.02 kB / 0.8699 GB, free: 70.32 MB / 427.1 MB Notification: Performance of SimCode: time 9.32e-07/2.254, allocations: 0 / 0.8699 GB, free: 70.32 MB / 427.1 MB Notification: Performance of Templates: time 0.04299/2.297, allocations: 24.78 MB / 0.8941 GB, free: 69.33 MB / 427.1 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