Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002815/0.002815, allocations: 199.2 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.718/3.718, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001429/0.001429, allocations: 95.06 kB / 297.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004908/0.000491, allocations: 4 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7039/0.7044, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.65/2.355, allocations: 329.6 MB / 0.721 GB, free: 141.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/2.355, allocations: 101.1 kB / 0.7211 GB, free: 141.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.11/3.465, allocations: 169.3 MB / 0.8864 GB, free: 101.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.103e-06/3.465, allocations: 3.156 kB / 0.8864 GB, free: 101.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001994/3.465, allocations: 21.97 kB / 0.8864 GB, free: 101.8 MB / 458.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.0061/3.472, allocations: 1.198 MB / 0.8876 GB, free: 101.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.778e-05/3.472, allocations: 10.28 kB / 0.8876 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009139/3.473, allocations: 104.2 kB / 0.8877 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/3.475, allocations: 0.6506 MB / 0.8883 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/3.475, allocations: 44.77 kB / 0.8884 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/3.475, allocations: 52.06 kB / 0.8884 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002611/3.478, allocations: 0.8928 MB / 0.8893 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/3.478, allocations: 0 / 0.8893 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/3.478, allocations: 28.22 kB / 0.8893 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/3.478, allocations: 50.47 kB / 0.8893 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002032/3.48, allocations: 0.7924 MB / 0.8901 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009202/3.49, allocations: 3.748 MB / 0.8938 GB, free: 98.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/3.491, allocations: 0.5243 MB / 0.8943 GB, free: 98.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006615/3.492, allocations: 269.1 kB / 0.8946 GB, free: 98.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004011/3.496, allocations: 1.822 MB / 0.8963 GB, free: 97.41 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.014e-05/3.496, allocations: 43.09 kB / 0.8964 GB, free: 97.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 4.799e-06/3.496, allocations: 0 / 0.8964 GB, free: 97.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.00592/3.502, allocations: 1.757 MB / 0.8981 GB, free: 96.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/3.502, allocations: 139.5 kB / 0.8982 GB, free: 96.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/3.504, allocations: 0.7472 MB / 0.8989 GB, free: 96.45 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/3.504, allocations: 46.47 kB / 0.899 GB, free: 96.42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004415/3.505, allocations: 389.2 kB / 0.8994 GB, free: 96.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/3.505, allocations: 162.2 kB / 0.8995 GB, free: 96.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.604e-05/3.505, allocations: 16.47 kB / 0.8995 GB, free: 96.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002473/3.505, allocations: 387.1 kB / 0.8999 GB, free: 95.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006633/3.506, allocations: 265.3 kB / 0.9002 GB, free: 95.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009801/3.507, allocations: 499.8 kB / 0.9006 GB, free: 95.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/3.508, allocations: 0.7184 MB / 0.9013 GB, free: 95.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/3.508, allocations: 3.188 kB / 0.9013 GB, free: 95.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002573/3.511, allocations: 0.8866 MB / 0.9022 GB, free: 95.19 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004532/3.511, allocations: 297.5 kB / 0.9025 GB, free: 94.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/3.511, allocations: 6.625 kB / 0.9025 GB, free: 94.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005818/3.517, allocations: 173.8 kB / 0.9027 GB, free: 94.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/3.519, allocations: 188.9 kB / 0.9028 GB, free: 94.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/3.521, allocations: 1.801 MB / 0.9046 GB, free: 93.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/3.522, allocations: 61.72 kB / 0.9047 GB, free: 93.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/3.523, allocations: 38.09 kB / 0.9047 GB, free: 93.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/3.523, allocations: 3.938 kB / 0.9047 GB, free: 93.21 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002219/3.525, allocations: 0.7863 MB / 0.9055 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/3.525, allocations: 14.62 kB / 0.9055 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/3.526, allocations: 162.5 kB / 0.9056 GB, free: 93.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009038/3.527, allocations: 173.8 kB / 0.9058 GB, free: 93.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000884/3.528, allocations: 1.188 MB / 0.907 GB, free: 92.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/3.529, allocations: 46.44 kB / 0.907 GB, free: 92.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/3.53, allocations: 39.48 kB / 0.907 GB, free: 92.12 MB / 458.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.001028/3.531, allocations: 335.3 kB / 0.9074 GB, free: 91.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/3.531, allocations: 81.44 kB / 0.9074 GB, free: 91.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/3.533, allocations: 0.8161 MB / 0.9082 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/3.533, allocations: 7.281 kB / 0.9082 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/3.533, allocations: 0 / 0.9082 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/3.533, allocations: 6.719 kB / 0.9082 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003883/3.537, allocations: 1.559 MB / 0.9098 GB, free: 91.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/3.537, allocations: 0 / 0.9098 GB, free: 91.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00094/3.538, allocations: 134.4 kB / 0.9099 GB, free: 91.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008784/3.539, allocations: 130.6 kB / 0.91 GB, free: 91.42 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.488e-05/3.539, allocations: 13.25 kB / 0.91 GB, free: 91.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/3.541, allocations: 1.749 MB / 0.9117 GB, free: 89.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/3.541, allocations: 0 / 0.9117 GB, free: 89.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003361/3.544, allocations: 1.102 MB / 0.9128 GB, free: 89.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000612/3.545, allocations: 164.4 kB / 0.913 GB, free: 89.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/3.545, allocations: 20 kB / 0.913 GB, free: 89.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007842/3.546, allocations: 49.66 kB / 0.913 GB, free: 89.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/3.546, allocations: 56.91 kB / 0.9131 GB, free: 89.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.855e-05/3.546, allocations: 29.11 kB / 0.9131 GB, free: 89.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001079/3.547, allocations: 0.5185 MB / 0.9136 GB, free: 89.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.2e-07/3.547, allocations: 3.344 kB / 0.9136 GB, free: 89.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003606/3.551, allocations: 0.6611 MB / 0.9143 GB, free: 89.21 MB / 458.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.002724/3.554, allocations: 0.6773 MB / 0.9149 GB, free: 89.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008451/3.562, allocations: 1.16 MB / 0.9161 GB, free: 89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-05/3.562, allocations: 7.375 kB / 0.9161 GB, free: 89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/3.564, allocations: 387.3 kB / 0.9165 GB, free: 88.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004762/3.569, allocations: 367.9 kB / 0.9168 GB, free: 88.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005904/3.575, allocations: 1.908 MB / 0.9187 GB, free: 88.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008644/3.575, allocations: 0.9899 MB / 0.9196 GB, free: 87.47 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005585/3.576, allocations: 81.36 kB / 0.9197 GB, free: 87.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.322e-06/3.576, allocations: 0 / 0.9197 GB, free: 87.46 MB / 458.7 MB Notification: Performance of Templates: time 0.06409/3.64, allocations: 26.19 MB / 0.9453 GB, free: 85.7 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches