Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001785/0.001785, allocations: 202.2 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008096/0.0008096, allocations: 93.25 kB / 297.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002308/0.0002307, allocations: 4 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2164, allocations: 51.29 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6311/0.8475, allocations: 325.3 MB / 0.7175 GB, free: 146.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.8478, allocations: 94.91 kB / 0.7176 GB, free: 146.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6035/1.451, allocations: 194.9 MB / 0.9079 GB, free: 99.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.451, allocations: 0 / 0.9079 GB, free: 99.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001012/1.451, allocations: 25.53 kB / 0.9079 GB, free: 99.42 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003653/1.455, allocations: 1.404 MB / 0.9093 GB, free: 98.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/1.455, allocations: 7.406 kB / 0.9093 GB, free: 98.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006037/1.456, allocations: 114.2 kB / 0.9094 GB, free: 98.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/1.457, allocations: 0.765 MB / 0.9101 GB, free: 98.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.057e-05/1.457, allocations: 52.34 kB / 0.9102 GB, free: 98.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/1.458, allocations: 69.73 kB / 0.9102 GB, free: 98.36 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/1.459, allocations: 1.059 MB / 0.9113 GB, free: 98.17 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/1.46, allocations: 3.594 kB / 0.9113 GB, free: 98.17 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/1.46, allocations: 28.67 kB / 0.9113 GB, free: 98.17 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-05/1.46, allocations: 63.17 kB / 0.9114 GB, free: 98.17 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/1.461, allocations: 1.014 MB / 0.9124 GB, free: 98.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005886/1.467, allocations: 4.338 MB / 0.9166 GB, free: 96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008039/1.468, allocations: 0.5699 MB / 0.9171 GB, free: 95.97 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/1.468, allocations: 318.4 kB / 0.9174 GB, free: 95.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002238/1.471, allocations: 1.977 MB / 0.9194 GB, free: 94.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/1.471, allocations: 44.41 kB / 0.9194 GB, free: 94.65 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 2.375e-06/1.471, allocations: 0 / 0.9194 GB, free: 94.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.004034/1.475, allocations: 1.949 MB / 0.9213 GB, free: 93.79 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/1.475, allocations: 161 kB / 0.9215 GB, free: 93.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/1.476, allocations: 0.9225 MB / 0.9224 GB, free: 93.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.936e-05/1.476, allocations: 40.33 kB / 0.9224 GB, free: 93.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003099/1.477, allocations: 487.4 kB / 0.9229 GB, free: 92.78 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/1.477, allocations: 160 kB / 0.923 GB, free: 92.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/1.477, allocations: 18.78 kB / 0.9231 GB, free: 92.65 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.09e-05/1.477, allocations: 339.5 kB / 0.9234 GB, free: 92.33 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004733/1.477, allocations: 310.8 kB / 0.9237 GB, free: 92.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/1.478, allocations: 0.5988 MB / 0.9243 GB, free: 91.76 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009827/1.479, allocations: 0.8421 MB / 0.9251 GB, free: 91.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/1.479, allocations: 11.53 kB / 0.9251 GB, free: 91.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001607/1.481, allocations: 1.08 MB / 0.9261 GB, free: 90.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001924/1.481, allocations: 341.7 kB / 0.9265 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/1.481, allocations: 8.781 kB / 0.9265 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/1.483, allocations: 317 kB / 0.9268 GB, free: 90.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006032/1.483, allocations: 182.2 kB / 0.927 GB, free: 90.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009136/1.484, allocations: 1.346 MB / 0.9283 GB, free: 89.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008743/1.485, allocations: 58.36 kB / 0.9283 GB, free: 89.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.712e-05/1.485, allocations: 45.55 kB / 0.9284 GB, free: 89.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/1.485, allocations: 0 / 0.9284 GB, free: 89.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001415/1.487, allocations: 0.9596 MB / 0.9293 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/1.487, allocations: 7.5 kB / 0.9293 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/1.488, allocations: 294.5 kB / 0.9296 GB, free: 88.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005698/1.489, allocations: 182.9 kB / 0.9298 GB, free: 88.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007526/1.489, allocations: 1.299 MB / 0.931 GB, free: 87.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000754/1.49, allocations: 62.28 kB / 0.9311 GB, free: 87.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.469e-05/1.49, allocations: 43.94 kB / 0.9311 GB, free: 87.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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.0004956/1.491, allocations: 377.2 kB / 0.9315 GB, free: 87.19 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/1.491, allocations: 95.17 kB / 0.9316 GB, free: 87.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/1.493, allocations: 0.7778 MB / 0.9323 GB, free: 86.81 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/1.493, allocations: 7.781 kB / 0.9324 GB, free: 86.81 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/1.493, allocations: 0 / 0.9324 GB, free: 86.81 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/1.493, allocations: 7.875 kB / 0.9324 GB, free: 86.81 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/1.495, allocations: 1.584 MB / 0.9339 GB, free: 86.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/1.495, allocations: 2.75 kB / 0.9339 GB, free: 86.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/1.495, allocations: 76.05 kB / 0.934 GB, free: 86.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/1.497, allocations: 285.1 kB / 0.9343 GB, free: 85.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/1.497, allocations: 15.88 kB / 0.9343 GB, free: 85.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007327/1.497, allocations: 1.308 MB / 0.9355 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.497, allocations: 7.531 kB / 0.9356 GB, free: 84.81 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/1.499, allocations: 1.078 MB / 0.9366 GB, free: 84.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/1.499, allocations: 199.3 kB / 0.9368 GB, free: 84.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/1.499, allocations: 15.44 kB / 0.9368 GB, free: 84.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005271/1.5, allocations: 41.95 kB / 0.9369 GB, free: 84.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/1.5, allocations: 44.7 kB / 0.9369 GB, free: 84.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/1.5, allocations: 30.88 kB / 0.9369 GB, free: 84.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007156/1.5, allocations: 0.6448 MB / 0.9376 GB, free: 83.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.5, allocations: 3.719 kB / 0.9376 GB, free: 83.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002351/1.503, allocations: 0.835 MB / 0.9384 GB, free: 83.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (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.001499/1.504, allocations: 0.831 MB / 0.9392 GB, free: 83.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001979/1.506, allocations: 1.221 MB / 0.9404 GB, free: 82.92 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.758e-06/1.506, allocations: 0 / 0.9404 GB, free: 82.92 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006834/1.507, allocations: 361.4 kB / 0.9407 GB, free: 82.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/1.509, allocations: 378.2 kB / 0.9411 GB, free: 82.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/1.511, allocations: 2.004 MB / 0.943 GB, free: 81.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/1.512, allocations: 1.036 MB / 0.9441 GB, free: 81.02 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001051/1.513, allocations: 352.9 kB / 0.9444 GB, free: 81 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/1.513, allocations: 74.06 kB / 0.9445 GB, free: 80.99 MB / 458.7 MB Notification: Performance of SimCode: time 3.21e-07/1.513, allocations: 0 / 0.9445 GB, free: 80.99 MB / 458.7 MB Notification: Performance of Templates: time 0.03232/1.545, allocations: 24.98 MB / 0.9689 GB, free: 63.59 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches