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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 84.25 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 162 kB / 25.61 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8623/0.8623, allocations: 177 MB / 205.9 MB, free: 4.441 MB / 186.7 MB " [Timeout remaining time 179] 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=5010,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.469e-05, allocations: 6.25 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.006545/0.00656, allocations: 8.681 MB / 282.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005636/0.0122, allocations: 6.022 MB / 288.8 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003428/0.01254, allocations: 43.62 kB / 288.9 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004699/0.01301, allocations: 266.1 kB / 289.1 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.01448, allocations: 1.231 MB / 290.4 MB, free: 3.988 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002567/0.01705, allocations: 2.233 MB / 292.6 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.01878, allocations: 2.56 MB / 295.1 MB, free: 15.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005452/0.01933, allocations: 0.6255 MB / 295.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.02043, allocations: 1.321 MB / 297.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007926/0.02122, allocations: 0.8922 MB / 298 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.02134, allocations: 92 kB / 298.1 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.02242, allocations: 0.9477 MB / 299 MB, free: 11.28 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.02269, allocations: 394.9 kB / 299.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003029/0.02299, allocations: 391 kB / 299.8 MB, free: 10.51 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.02447, allocations: 1.71 MB / 301.5 MB, free: 8.793 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.02447, allocations: 4 kB / 301.5 MB, free: 8.789 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.02448, allocations: 4 kB / 301.5 MB, free: 8.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.02449, allocations: 0 / 301.5 MB, free: 8.785 MB / 282.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.001635/0.02612, allocations: 1.455 MB / 303 MB, free: 7.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.02616, allocations: 12.03 kB / 303 MB, free: 7.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003399/0.0265, allocations: 180.1 kB / 303.2 MB, free: 7.098 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007452/0.02725, allocations: 0.6673 MB / 303.8 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.02729, allocations: 49.3 kB / 303.9 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.838e-05/0.02737, allocations: 67.98 kB / 303.9 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000766/0.02814, allocations: 1.033 MB / 305 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.02816, allocations: 4 kB / 305 MB, free: 5.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.466e-05/0.02821, allocations: 27.98 kB / 305 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-05/0.02827, allocations: 65.27 kB / 305.1 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004563/0.02873, allocations: 373.9 kB / 305.4 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/0.03168, allocations: 3.331 MB / 308.8 MB, free: 1.207 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.03202, allocations: 269.6 kB / 309 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.03214, allocations: 113 kB / 309.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009789/0.03312, allocations: 0.9037 MB / 310 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.03315, allocations: 41.72 kB / 310.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.413e-06/0.03315, allocations: 0 / 310.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.00174/0.03489, allocations: 0.972 MB / 311 MB, free: 14.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.03494, allocations: 166.2 kB / 311.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004787/0.03542, allocations: 0.7213 MB / 311.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/0.03546, allocations: 37.7 kB / 312 MB, free: 13.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.03572, allocations: 0.549 MB / 312.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.846e-05/0.03582, allocations: 178.5 kB / 312.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.03599, allocations: 192.1 kB / 312.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.03615, allocations: 0.578 MB / 313.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.0363, allocations: 99.59 kB / 313.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.03666, allocations: 0.6284 MB / 314.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004765/0.03714, allocations: 0.6182 MB / 314.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.03714, allocations: 0 / 314.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0007212/0.03786, allocations: 0.6759 MB / 315.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.03787, allocations: 8 kB / 315.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.03789, allocations: 15.98 kB / 315.5 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.03892, allocations: 307.2 kB / 315.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/0.03925, allocations: 187.7 kB / 316 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006508/0.0399, allocations: 1.686 MB / 317.7 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.0402, allocations: 39.98 kB / 317.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.04025, allocations: 35.98 kB / 317.7 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002308/0.04048, allocations: 228.8 kB / 318 MB, free: 7.348 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003451/0.04082, allocations: 0.6432 MB / 318.6 MB, free: 6.488 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004468/0.04127, allocations: 0.635 MB / 319.2 MB, free: 5.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.709e-06/0.04127, allocations: 4 kB / 319.3 MB, free: 5.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.0006759/0.04195, allocations: 0.6489 MB / 319.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.04196, allocations: 12 kB / 319.9 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.04197, allocations: 12.12 kB / 319.9 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009151/0.04288, allocations: 286.9 kB / 320.2 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003107/0.04319, allocations: 175.7 kB / 320.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006166/0.04381, allocations: 1.678 MB / 322.1 MB, free: 2.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000299/0.04411, allocations: 47.91 kB / 322.1 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.04415, allocations: 36 kB / 322.1 MB, free: 2.699 MB / 298.7 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.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[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.0001557/0.04431, allocations: 322 kB / 322.4 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.04441, allocations: 103.5 kB / 322.5 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006219/0.04503, allocations: 480.2 kB / 323 MB, free: 1.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.04504, allocations: 7.984 kB / 323 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.04504, allocations: 0 / 323 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.04504, allocations: 4 kB / 323 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.04608, allocations: 0.9588 MB / 324 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.04608, allocations: 4.062 kB / 324 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.04626, allocations: 67.91 kB / 324.1 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000576/0.04683, allocations: 231 kB / 324.3 MB, free: 476 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.04686, allocations: 16 kB / 324.3 MB, free: 460 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006057/0.04747, allocations: 1.697 MB / 326 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.04747, allocations: 0 / 326 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005785/0.04805, allocations: 0.6186 MB / 326.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.681e-05/0.04812, allocations: 83.36 kB / 326.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.166e-05/0.04819, allocations: 15.94 kB / 326.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.04842, allocations: 19.98 kB / 326.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.201e-05/0.04848, allocations: 44.42 kB / 326.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/0.04851, allocations: 19.98 kB / 326.8 MB, free: 13.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002548/0.04877, allocations: 422.8 kB / 327.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04877, allocations: 4.062 kB / 327.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001001/0.04977, allocations: 0.6162 MB / 327.8 MB, free: 12.83 MB / 314.7 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 (41): * Single equations (assignments): 39 * 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.000625/0.05039, allocations: 445.9 kB / 328.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008878/0.05128, allocations: 0.7139 MB / 329 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.05128, allocations: 1.75 kB / 329 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.05151, allocations: 183.4 kB / 329.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008244/0.05234, allocations: 364.6 kB / 329.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.05405, allocations: 1.437 MB / 331 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.05424, allocations: 208.2 kB / 331.2 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004204/0.05466, allocations: 159.2 kB / 331.3 MB, free: 9.281 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/0.0552, allocations: 397.9 kB / 331.7 MB, free: 8.891 MB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0552, allocations: 0 / 331.7 MB, free: 8.891 MB / 314.7 MB Notification: Performance of Templates: time 0.02128/0.07648, allocations: 21.83 MB / 353.5 MB, free: 3.309 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4732014718465507]