Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 240.3 MB, free: 10.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 98.2 kB / 291.5 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004062, allocations: 11.94 kB / 351.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3803, allocations: 50.4 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.76/1.14, allocations: 324.5 MB / 0.7089 GB, free: 121.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/1.141, allocations: 99.22 kB / 0.709 GB, free: 121.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6999/1.841, allocations: 196.6 MB / 0.9011 GB, free: 106.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.841, allocations: 0 / 0.9011 GB, free: 106.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.765e-05/1.841, allocations: 19.25 kB / 0.9011 GB, free: 106.4 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.004121/1.845, allocations: 1.419 MB / 0.9025 GB, free: 105.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/1.845, allocations: 10 kB / 0.9025 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/1.845, allocations: 112.2 kB / 0.9026 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/1.848, allocations: 0.741 MB / 0.9033 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-05/1.848, allocations: 47.25 kB / 0.9034 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/1.848, allocations: 63.28 kB / 0.9034 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/1.85, allocations: 1.063 MB / 0.9045 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/1.85, allocations: 0 / 0.9045 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/1.851, allocations: 30.23 kB / 0.9045 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001216/1.851, allocations: 65.08 kB / 0.9045 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002345/1.853, allocations: 1.012 MB / 0.9055 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008159/1.861, allocations: 4.396 MB / 0.9098 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/1.862, allocations: 0.573 MB / 0.9104 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003074/1.866, allocations: 1.995 MB / 0.9123 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/1.866, allocations: 41.08 kB / 0.9124 GB, free: 101.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 2.315e-06/1.866, allocations: 3.609 kB / 0.9124 GB, free: 101.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.00583/1.871, allocations: 1.938 MB / 0.9143 GB, free: 101.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/1.872, allocations: 163.8 kB / 0.9144 GB, free: 100.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/1.873, allocations: 0.8156 MB / 0.9152 GB, free: 100.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.677e-05/1.873, allocations: 47.05 kB / 0.9153 GB, free: 100.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/1.874, allocations: 481.5 kB / 0.9157 GB, free: 100.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/1.874, allocations: 162.6 kB / 0.9159 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/1.874, allocations: 19.06 kB / 0.9159 GB, free: 100.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.908e-05/1.874, allocations: 340.5 kB / 0.9162 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006942/1.875, allocations: 310.8 kB / 0.9165 GB, free: 100.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008841/1.875, allocations: 0.5924 MB / 0.9171 GB, free: 99.76 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008338/1.876, allocations: 398.7 kB / 0.9175 GB, free: 99.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/1.876, allocations: 0 / 0.9175 GB, free: 99.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002403/1.879, allocations: 1.084 MB / 0.9185 GB, free: 99.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006777/1.879, allocations: 3.308 MB / 0.9218 GB, free: 96.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/1.879, allocations: 11.53 kB / 0.9218 GB, free: 96.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/1.882, allocations: 315.9 kB / 0.9221 GB, free: 95.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009522/1.883, allocations: 183.5 kB / 0.9223 GB, free: 95.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/1.884, allocations: 1.347 MB / 0.9236 GB, free: 94.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/1.886, allocations: 65.22 kB / 0.9236 GB, free: 94.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/1.886, allocations: 41.22 kB / 0.9237 GB, free: 94.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/1.886, allocations: 10.12 kB / 0.9237 GB, free: 94.76 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002147/1.888, allocations: 0.9483 MB / 0.9246 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/1.888, allocations: 10.03 kB / 0.9246 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/1.89, allocations: 299.7 kB / 0.9249 GB, free: 94.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009559/1.891, allocations: 173.6 kB / 0.9251 GB, free: 94.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/1.892, allocations: 1.309 MB / 0.9264 GB, free: 93.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/1.893, allocations: 62.94 kB / 0.9264 GB, free: 93.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/1.894, allocations: 45.14 kB / 0.9265 GB, free: 93.14 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.0007273/1.894, allocations: 360.6 kB / 0.9268 GB, free: 92.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/1.895, allocations: 96.98 kB / 0.9269 GB, free: 92.81 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/1.897, allocations: 0.7785 MB / 0.9277 GB, free: 92.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/1.897, allocations: 7.781 kB / 0.9277 GB, free: 92.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/1.897, allocations: 2.953 kB / 0.9277 GB, free: 92.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/1.897, allocations: 3.656 kB / 0.9277 GB, free: 92.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003555/1.901, allocations: 1.593 MB / 0.9292 GB, free: 91.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/1.901, allocations: 3.688 kB / 0.9292 GB, free: 91.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005882/1.901, allocations: 80.45 kB / 0.9293 GB, free: 91.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/1.903, allocations: 287.7 kB / 0.9296 GB, free: 91.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.748e-05/1.903, allocations: 11.59 kB / 0.9296 GB, free: 91.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/1.905, allocations: 1.316 MB / 0.9309 GB, free: 90.47 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.905, allocations: 0 / 0.9309 GB, free: 90.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/1.907, allocations: 1.107 MB / 0.932 GB, free: 89.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004296/1.907, allocations: 185 kB / 0.9321 GB, free: 89.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/1.908, allocations: 18.59 kB / 0.9321 GB, free: 89.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009452/1.909, allocations: 48.17 kB / 0.9322 GB, free: 89.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/1.909, allocations: 54.06 kB / 0.9322 GB, free: 89.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.582e-05/1.909, allocations: 22.31 kB / 0.9323 GB, free: 89.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001187/1.91, allocations: 0.6434 MB / 0.9329 GB, free: 89.42 MB / 458.7 MB Notification: Performance of sort global known variables: time 3e-07/1.91, allocations: 0 / 0.9329 GB, free: 89.42 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003266/1.913, allocations: 0.8308 MB / 0.9337 GB, free: 89.21 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.002739/1.916, allocations: 0.8121 MB / 0.9345 GB, free: 88.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003516/1.92, allocations: 1.231 MB / 0.9357 GB, free: 88.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.92, allocations: 0 / 0.9357 GB, free: 88.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/1.921, allocations: 358.5 kB / 0.936 GB, free: 88.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/1.924, allocations: 378.8 kB / 0.9364 GB, free: 88.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/1.927, allocations: 1.996 MB / 0.9384 GB, free: 87.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006093/1.928, allocations: 1.053 MB / 0.9394 GB, free: 86.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002026/1.93, allocations: 361 kB / 0.9397 GB, free: 86.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/1.93, allocations: 74.8 kB / 0.9398 GB, free: 86.65 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/1.93, allocations: 0 / 0.9398 GB, free: 86.65 MB / 458.7 MB Notification: Performance of Templates: time 0.03883/1.969, allocations: 24.28 MB / 0.9635 GB, free: 68.73 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches