Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008863/0.0008865, allocations: 90.69 kB / 17.31 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008973/0.0008973, allocations: 179.2 kB / 18.22 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 242.3 MB, free: 14.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003693, allocations: 4 kB / 302.1 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.09465, allocations: 50.42 MB / 352.5 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1964/0.2911, allocations: 20.62 MB / 373.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0113/0.3025, allocations: 7.257 MB / 380.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.3038, allocations: 30.91 kB / 380.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.3051, allocations: 322.1 kB / 380.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00352/0.3086, allocations: 1.02 MB / 381.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005511/0.3141, allocations: 1.567 MB / 383.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004198/0.3184, allocations: 3.125 MB / 386.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.3197, allocations: 0.5013 MB / 386.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.3216, allocations: 0.6998 MB / 387.6 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.3231, allocations: 0.7639 MB / 388.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002733/0.3234, allocations: 38.72 kB / 388.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003192/0.3266, allocations: 1.23 MB / 389.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004831/0.3271, allocations: 246.8 kB / 389.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009354/0.3281, allocations: 456 kB / 390.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002274/0.3304, allocations: 1.352 MB / 391.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3304, allocations: 1.125 kB / 391.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3304, allocations: 4 kB / 391.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.58e-05/0.3304, allocations: 0 / 391.7 MB, free: 6.426 MB / 302.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.002452/0.3329, allocations: 1.115 MB / 392.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3329, allocations: 13.41 kB / 392.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003829/0.3333, allocations: 101 kB / 392.9 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007694/0.3341, allocations: 0.5965 MB / 393.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.3341, allocations: 45.08 kB / 393.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.431e-05/0.3342, allocations: 52.75 kB / 393.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.3355, allocations: 0.8905 MB / 394.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.3355, allocations: 3.344 kB / 394.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-05/0.3356, allocations: 25.03 kB / 394.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.426e-05/0.3356, allocations: 44.5 kB / 394.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.3368, allocations: 0.8135 MB / 395.4 MB, free: 3.965 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.3409, allocations: 3.836 MB / 399.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000782/0.3417, allocations: 0.546 MB / 399.8 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.3421, allocations: 272.4 kB / 400.1 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003298/0.3424, allocations: 0.501 MB / 400.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3425, allocations: 37.72 kB / 400.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.043e-06/0.3425, allocations: 1.281 kB / 400.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004292/0.3468, allocations: 2.135 MB / 402.7 MB, free: 14.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.3469, allocations: 135.6 kB / 402.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008701/0.3477, allocations: 0.7304 MB / 403.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.3478, allocations: 36.98 kB / 403.6 MB, free: 13.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.3481, allocations: 380.3 kB / 404 MB, free: 13.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.3482, allocations: 180.6 kB / 404.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.485e-05/0.3483, allocations: 69.03 kB / 404.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3485, allocations: 395.4 kB / 404.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004692/0.349, allocations: 302.8 kB / 404.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005846/0.3495, allocations: 0.5053 MB / 405.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009882/0.3505, allocations: 0.7729 MB / 406.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.3506, allocations: 6.5 kB / 406.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001572/0.3521, allocations: 0.9987 MB / 407.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.3523, allocations: 259.2 kB / 407.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.3523, allocations: 8 kB / 407.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001698/0.354, allocations: 309.1 kB / 407.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.3546, allocations: 143.8 kB / 407.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009877/0.3556, allocations: 1.304 MB / 409.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006989/0.3563, allocations: 52.09 kB / 409.3 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.599e-05/0.3564, allocations: 36.06 kB / 409.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.876e-06/0.3564, allocations: 4 kB / 409.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0014/0.3578, allocations: 0.8504 MB / 410.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3578, allocations: 8.156 kB / 410.2 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.3589, allocations: 192.4 kB / 410.4 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006578/0.3596, allocations: 171.7 kB / 410.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007435/0.3604, allocations: 1.19 MB / 411.7 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006132/0.361, allocations: 51.84 kB / 411.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.316e-05/0.3611, allocations: 43.92 kB / 411.8 MB, free: 6.094 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004123/0.3615, allocations: 324.9 kB / 412.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.3617, allocations: 86.97 kB / 412.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/0.3634, allocations: 0.971 MB / 413.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.3634, allocations: 8 kB / 413.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3634, allocations: 0 / 413.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.3634, allocations: 3.984 kB / 413.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.3661, allocations: 1.757 MB / 415 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.3661, allocations: 0 / 415 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004089/0.3666, allocations: 103.9 kB / 415.1 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.3676, allocations: 257.1 kB / 415.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.826e-05/0.3677, allocations: 12 kB / 415.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008401/0.3686, allocations: 1.276 MB / 416.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3686, allocations: 0 / 416.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3704, allocations: 1.318 MB / 417.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.3707, allocations: 176 kB / 418.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.3708, allocations: 12 kB / 418.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005438/0.3714, allocations: 40.11 kB / 418.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.3715, allocations: 60.53 kB / 418.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.186e-05/0.3716, allocations: 27.98 kB / 418.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006394/0.3722, allocations: 0.5107 MB / 418.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3722, allocations: 0 / 418.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001724/0.374, allocations: 0.5935 MB / 419.3 MB, free: 14.41 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001331/0.3753, allocations: 0.5037 MB / 419.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.3776, allocations: 1.208 MB / 421 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.3776, allocations: 4.125 kB / 421 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006452/0.3782, allocations: 392.7 kB / 421.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.3804, allocations: 401.9 kB / 421.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.3833, allocations: 2.01 MB / 423.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/0.3838, allocations: 0.9878 MB / 424.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.3841, allocations: 83.42 kB / 424.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3841, allocations: 4 kB / 424.9 MB, free: 8.812 MB / 334.1 MB Notification: Performance of Templates: time 0.02828/0.4124, allocations: 22.91 MB / 447.8 MB, free: 2.008 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches