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.00118/0.00118, allocations: 181.6 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.0008915/0.0008913, allocations: 89.5 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003283, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2891, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.744/1.033, allocations: 328.4 MB / 0.6876 GB, free: 136.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/1.034, allocations: 97.11 kB / 0.6877 GB, free: 136.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5182/1.552, allocations: 165.9 MB / 0.8497 GB, free: 90.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.552, allocations: 4.594 kB / 0.8497 GB, free: 90.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.137e-05/1.552, allocations: 21.28 kB / 0.8498 GB, free: 90.03 MB / 426.7 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.002808/1.555, allocations: 1.199 MB / 0.8509 GB, free: 89.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/1.555, allocations: 7.344 kB / 0.8509 GB, free: 89.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003601/1.555, allocations: 103.5 kB / 0.851 GB, free: 89.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/1.556, allocations: 0.6494 MB / 0.8517 GB, free: 89.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.373e-05/1.556, allocations: 42.62 kB / 0.8517 GB, free: 89.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/1.556, allocations: 57.73 kB / 0.8518 GB, free: 89.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/1.558, allocations: 0.8984 MB / 0.8526 GB, free: 88.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/1.558, allocations: 7.062 kB / 0.8526 GB, free: 88.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.102e-05/1.558, allocations: 20.25 kB / 0.8527 GB, free: 88.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.869e-05/1.558, allocations: 47.03 kB / 0.8527 GB, free: 88.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/1.559, allocations: 0.7916 MB / 0.8535 GB, free: 88.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/1.564, allocations: 3.753 MB / 0.8572 GB, free: 86.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/1.565, allocations: 0.5133 MB / 0.8577 GB, free: 86.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003912/1.565, allocations: 269.3 kB / 0.8579 GB, free: 86.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002192/1.567, allocations: 1.82 MB / 0.8597 GB, free: 85.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/1.567, allocations: 38.44 kB / 0.8597 GB, free: 85.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.645e-06/1.567, allocations: 3.938 kB / 0.8597 GB, free: 85.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.003654/1.571, allocations: 1.768 MB / 0.8615 GB, free: 84.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/1.571, allocations: 134 kB / 0.8616 GB, free: 84.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008974/1.572, allocations: 0.7461 MB / 0.8623 GB, free: 84.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/1.572, allocations: 42.95 kB / 0.8624 GB, free: 84.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/1.572, allocations: 394.3 kB / 0.8627 GB, free: 84.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.572, allocations: 162.3 kB / 0.8629 GB, free: 84.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/1.572, allocations: 13.47 kB / 0.8629 GB, free: 84.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/1.573, allocations: 391.6 kB / 0.8633 GB, free: 83.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/1.573, allocations: 259.9 kB / 0.8635 GB, free: 83.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005234/1.573, allocations: 0.4913 MB / 0.864 GB, free: 83.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008237/1.574, allocations: 0.7152 MB / 0.8647 GB, free: 83.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.574, allocations: 0 / 0.8647 GB, free: 83.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001343/1.576, allocations: 0.8893 MB / 0.8656 GB, free: 83.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/1.576, allocations: 301.1 kB / 0.8658 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/1.576, allocations: 6.281 kB / 0.8659 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009273/1.577, allocations: 166.6 kB / 0.866 GB, free: 83.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/1.578, allocations: 199.8 kB / 0.8662 GB, free: 83.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009177/1.579, allocations: 1.793 MB / 0.868 GB, free: 81.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007115/1.579, allocations: 62.27 kB / 0.868 GB, free: 81.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/1.579, allocations: 37.22 kB / 0.8681 GB, free: 81.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/1.579, allocations: 3.938 kB / 0.8681 GB, free: 81.39 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001204/1.581, allocations: 0.7833 MB / 0.8688 GB, free: 81.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/1.581, allocations: 14.66 kB / 0.8688 GB, free: 81.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008159/1.582, allocations: 166.9 kB / 0.869 GB, free: 81.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/1.582, allocations: 173.5 kB / 0.8692 GB, free: 81.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005516/1.583, allocations: 1.181 MB / 0.8703 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006225/1.583, allocations: 58.27 kB / 0.8704 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/1.583, allocations: 34.59 kB / 0.8704 GB, free: 80.3 MB / 426.7 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 () * Number of clocked 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.0004739/1.584, allocations: 337.7 kB / 0.8707 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/1.584, allocations: 85.38 kB / 0.8708 GB, free: 80.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/1.585, allocations: 0.8201 MB / 0.8716 GB, free: 79.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/1.585, allocations: 7.5 kB / 0.8716 GB, free: 79.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/1.585, allocations: 0 / 0.8716 GB, free: 79.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/1.585, allocations: 3.656 kB / 0.8716 GB, free: 79.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/1.588, allocations: 1.562 MB / 0.8731 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/1.588, allocations: 3.812 kB / 0.8731 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006042/1.588, allocations: 139.6 kB / 0.8733 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005561/1.589, allocations: 125.4 kB / 0.8734 GB, free: 79.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-05/1.589, allocations: 17.2 kB / 0.8734 GB, free: 79.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007028/1.59, allocations: 1.738 MB / 0.8751 GB, free: 77.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.59, allocations: 5.094 kB / 0.8751 GB, free: 77.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/1.591, allocations: 1.103 MB / 0.8762 GB, free: 77.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/1.591, allocations: 168.1 kB / 0.8764 GB, free: 77.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/1.591, allocations: 19.28 kB / 0.8764 GB, free: 77.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004975/1.592, allocations: 41.39 kB / 0.8764 GB, free: 77.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/1.592, allocations: 53.56 kB / 0.8765 GB, free: 77.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.605e-05/1.592, allocations: 30.08 kB / 0.8765 GB, free: 77.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000613/1.593, allocations: 0.5167 MB / 0.877 GB, free: 77.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/1.593, allocations: 0 / 0.877 GB, free: 77.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00182/1.595, allocations: 0.6521 MB / 0.8776 GB, free: 77.38 MB / 426.7 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]) * Number of clocked states: 0 () * 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.001454/1.596, allocations: 0.6817 MB / 0.8783 GB, free: 77.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002571/1.599, allocations: 1.164 MB / 0.8794 GB, free: 77.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/1.599, allocations: 3.75 kB / 0.8794 GB, free: 77.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007705/1.599, allocations: 384.1 kB / 0.8798 GB, free: 77.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/1.601, allocations: 375 kB / 0.8802 GB, free: 77.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/1.604, allocations: 1.903 MB / 0.882 GB, free: 76.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/1.604, allocations: 0.9847 MB / 0.883 GB, free: 75.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/1.604, allocations: 83.06 kB / 0.8831 GB, free: 75.51 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/1.604, allocations: 0 / 0.8831 GB, free: 75.51 MB / 426.7 MB Notification: Performance of Templates: time 0.02887/1.633, allocations: 26.06 MB / 0.9085 GB, free: 72.05 MB / 426.7 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