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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001509/0.001508, allocations: 105.1 kB / 18.45 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00207/0.002069, allocations: 210.8 kB / 19.41 MB, free: 3.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 71.88 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.296, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02473/0.3207, allocations: 21.92 MB / 431.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01454/0.3353, allocations: 10.01 MB / 441.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001301/0.3367, allocations: 27.81 kB / 441.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.3382, allocations: 401.4 kB / 442.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004156/0.3424, allocations: 1.423 MB / 443.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007051/0.3494, allocations: 2.629 MB / 446.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003921/0.3534, allocations: 2.576 MB / 448.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001371/0.3548, allocations: 0.6522 MB / 449.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002194/0.357, allocations: 1.001 MB / 450.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.3589, allocations: 0.9772 MB / 451.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003797/0.3593, allocations: 95.94 kB / 451.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003798/0.3631, allocations: 1.739 MB / 453.4 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005862/0.3637, allocations: 363 kB / 453.7 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.3647, allocations: 0.5289 MB / 454.3 MB, free: 5.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004591/0.3693, allocations: 2.474 MB / 456.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3693, allocations: 0 / 456.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3694, allocations: 0 / 456.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.459e-05/0.3694, allocations: 0 / 456.7 MB, free: 2.672 MB / 366.1 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.00389/0.3733, allocations: 1.507 MB / 458.2 MB, free: 1.113 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.3734, allocations: 12.02 kB / 458.2 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005246/0.3739, allocations: 118.7 kB / 458.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.3753, allocations: 0.7137 MB / 459.1 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.295e-05/0.3753, allocations: 49.28 kB / 459.1 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.3755, allocations: 71.98 kB / 459.2 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.3772, allocations: 1.056 MB / 460.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.3773, allocations: 7.938 kB / 460.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.87e-05/0.3774, allocations: 31.92 kB / 460.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.3775, allocations: 65.27 kB / 460.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.3792, allocations: 1.036 MB / 461.4 MB, free: 13.86 MB / 382.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.006649/0.3859, allocations: 4.434 MB / 465.8 MB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.3869, allocations: 0.567 MB / 466.4 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.3874, allocations: 322 kB / 466.7 MB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002542/0.39, allocations: 1.969 MB / 468.7 MB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.527e-05/0.3901, allocations: 50.88 kB / 468.7 MB, free: 6.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.3901, allocations: 0 / 468.7 MB, free: 6.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.00467/0.3947, allocations: 1.958 MB / 470.7 MB, free: 3.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/0.3948, allocations: 158.2 kB / 470.8 MB, free: 3.777 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.3961, allocations: 0.9274 MB / 471.8 MB, free: 2.824 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.031e-05/0.3962, allocations: 37.7 kB / 471.8 MB, free: 2.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003562/0.3966, allocations: 490.8 kB / 472.3 MB, free: 2.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.3967, allocations: 161.8 kB / 472.4 MB, free: 2.133 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.397, allocations: 182.5 kB / 472.6 MB, free: 1.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3971, allocations: 345.9 kB / 473 MB, free: 1.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.3977, allocations: 328.7 kB / 473.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007595/0.3985, allocations: 0.629 MB / 473.9 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.3996, allocations: 0.8851 MB / 474.8 MB, free: 15.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.3997, allocations: 0 / 474.8 MB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001905/0.4016, allocations: 1.124 MB / 475.9 MB, free: 14.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.4016, allocations: 15.92 kB / 475.9 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.4016, allocations: 8 kB / 475.9 MB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.4041, allocations: 377.8 kB / 476.3 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006818/0.4048, allocations: 179.7 kB / 476.5 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.406, allocations: 1.347 MB / 477.8 MB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008645/0.4069, allocations: 35.98 kB / 477.9 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.663e-05/0.407, allocations: 43.98 kB / 477.9 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008738/0.4079, allocations: 0.5252 MB / 478.4 MB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008072/0.4087, allocations: 0.6229 MB / 479.1 MB, free: 11.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001179/0.4099, allocations: 0.8714 MB / 479.9 MB, free: 10.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.847e-06/0.4099, allocations: 11.94 kB / 479.9 MB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001939/0.4119, allocations: 1.086 MB / 481 MB, free: 8.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.4119, allocations: 12 kB / 481 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.4119, allocations: 8 kB / 481 MB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002185/0.4141, allocations: 341.2 kB / 481.4 MB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006873/0.4148, allocations: 180 kB / 481.6 MB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.416, allocations: 1.319 MB / 482.9 MB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008825/0.4169, allocations: 43.97 kB / 482.9 MB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.417, allocations: 40 kB / 483 MB, free: 6.926 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (104): * Single equations (assignments): 102 * 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,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003459/0.4174, allocations: 252.7 kB / 483.2 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002572/0.4176, allocations: 94.86 kB / 483.3 MB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.4193, allocations: 0.796 MB / 484.1 MB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.4193, allocations: 8 kB / 484.1 MB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4193, allocations: 3.984 kB / 484.1 MB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4194, allocations: 4 kB / 484.1 MB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002564/0.4219, allocations: 1.579 MB / 485.7 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4219, allocations: 0 / 485.7 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000384/0.4223, allocations: 83.95 kB / 485.8 MB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.4238, allocations: 265.4 kB / 486 MB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.4238, allocations: 12 kB / 486 MB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.4249, allocations: 1.308 MB / 487.3 MB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.425, allocations: 0 / 487.3 MB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.4267, allocations: 1.085 MB / 488.4 MB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.4271, allocations: 168 kB / 488.6 MB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.4273, allocations: 23.84 kB / 488.6 MB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.428, allocations: 27.97 kB / 488.6 MB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.4281, allocations: 40.38 kB / 488.7 MB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.859e-05/0.4282, allocations: 23.98 kB / 488.7 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.4292, allocations: 0.652 MB / 489.4 MB, free: 332 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4292, allocations: 3.938 kB / 489.4 MB, free: 328 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002333/0.4316, allocations: 0.7537 MB / 490.1 MB, free: 15.56 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[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 (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,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001758/0.4334, allocations: 0.6245 MB / 490.7 MB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002757/0.4361, allocations: 1.263 MB / 492 MB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.4362, allocations: 4.062 kB / 492 MB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000665/0.4368, allocations: 334.3 kB / 492.3 MB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.4389, allocations: 419.2 kB / 492.7 MB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.442, allocations: 1.75 MB / 494.5 MB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006782/0.4427, allocations: 1.033 MB / 495.5 MB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.443, allocations: 87.42 kB / 495.6 MB, free: 10.01 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.443, allocations: 3.938 kB / 495.6 MB, free: 10 MB / 414.1 MB Notification: Performance of Templates: time 0.03727/0.4803, allocations: 26.54 MB / 0.5099 GB, free: 15.54 MB / 446.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches