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.00078/0.00078, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009743/0.0009745, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000203/0.000203, allocations: 4 kB / 307.8 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08319, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.1767/0.2599, allocations: 22.07 MB / 381.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.2721, allocations: 10.3 MB / 391.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007929/0.2729, allocations: 36.91 kB / 391.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008507/0.2737, allocations: 345.2 kB / 392 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00295/0.2767, allocations: 1.339 MB / 393.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005546/0.2823, allocations: 2.204 MB / 395.6 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.2862, allocations: 3.826 MB / 399.4 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008509/0.287, allocations: 0.5539 MB / 399.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001422/0.2884, allocations: 0.8338 MB / 400.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.2897, allocations: 0.9786 MB / 401.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.2898, allocations: 46.22 kB / 401.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003875/0.2937, allocations: 1.701 MB / 403.5 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.2941, allocations: 320 kB / 403.8 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005167/0.2946, allocations: 0.5071 MB / 404.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002652/0.2973, allocations: 2.404 MB / 406.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2973, allocations: 0 / 406.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2973, allocations: 2.562 kB / 406.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.2973, allocations: 0 / 406.7 MB, free: 11.43 MB / 318.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.002514/0.2998, allocations: 1.318 MB / 408 MB, free: 10.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2999, allocations: 10.09 kB / 408.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003613/0.3003, allocations: 115.9 kB / 408.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009736/0.3012, allocations: 0.6852 MB / 408.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.078e-05/0.3013, allocations: 47.55 kB / 408.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3014, allocations: 62.55 kB / 409 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.3031, allocations: 1.061 MB / 410 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.3031, allocations: 0 / 410 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.164e-05/0.3032, allocations: 31.92 kB / 410.1 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.14e-05/0.3033, allocations: 65.27 kB / 410.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.3049, allocations: 1.039 MB / 411.2 MB, free: 7.656 MB / 318.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.006043/0.311, allocations: 4.442 MB / 415.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009451/0.3119, allocations: 0.5816 MB / 416.2 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.3124, allocations: 318 kB / 416.5 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002211/0.3146, allocations: 1.981 MB / 418.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.3147, allocations: 38.89 kB / 418.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.733e-06/0.3147, allocations: 0 / 418.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004364/0.3191, allocations: 1.97 MB / 420.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.3191, allocations: 158.2 kB / 420.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.3203, allocations: 0.9273 MB / 421.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.889e-05/0.3203, allocations: 37.7 kB / 421.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.3207, allocations: 482.9 kB / 422.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3208, allocations: 161.7 kB / 422.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3209, allocations: 81.67 kB / 422.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3211, allocations: 341.9 kB / 422.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005452/0.3216, allocations: 325.8 kB / 423 MB, free: 11.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007312/0.3224, allocations: 0.6328 MB / 423.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.3235, allocations: 0.8812 MB / 424.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.3236, allocations: 4 kB / 424.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001802/0.3254, allocations: 1.125 MB / 425.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001917/0.3256, allocations: 356.7 kB / 425.9 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.3256, allocations: 8 kB / 426 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002735/0.3283, allocations: 393.2 kB / 426.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006426/0.329, allocations: 175.7 kB / 426.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.3301, allocations: 1.355 MB / 427.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006984/0.3308, allocations: 59.94 kB / 427.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.909e-05/0.3309, allocations: 47.98 kB / 428 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.563e-06/0.3309, allocations: 4 kB / 428 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001577/0.3325, allocations: 0.9794 MB / 429 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3325, allocations: 8.188 kB / 429 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00247/0.335, allocations: 353.3 kB / 429.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.3356, allocations: 183.7 kB / 429.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009499/0.3366, allocations: 1.308 MB / 430.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/0.3372, allocations: 60.09 kB / 430.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-05/0.3372, allocations: 40.23 kB / 430.9 MB, free: 2.711 MB / 334.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.0004006/0.3376, allocations: 373.9 kB / 431.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.3378, allocations: 94.81 kB / 431.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.3394, allocations: 0.7973 MB / 432.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3395, allocations: 7.938 kB / 432.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3395, allocations: 4 kB / 432.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3395, allocations: 11.92 kB / 432.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.3418, allocations: 1.587 MB / 433.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3419, allocations: 4 kB / 433.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003634/0.3422, allocations: 75.91 kB / 433.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.3437, allocations: 305.4 kB / 434.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.3438, allocations: 19.98 kB / 434.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009137/0.3447, allocations: 1.3 MB / 435.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3447, allocations: 4.031 kB / 435.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.3463, allocations: 1.08 MB / 436.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.3465, allocations: 191.9 kB / 436.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.3466, allocations: 12 kB / 436.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.3472, allocations: 43.81 kB / 436.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3473, allocations: 48.31 kB / 436.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.128e-05/0.3474, allocations: 28.05 kB / 436.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008129/0.3482, allocations: 0.652 MB / 437.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3482, allocations: 0 / 437.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001768/0.35, allocations: 0.7535 MB / 438.3 MB, free: 11.14 MB / 350.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.001333/0.3513, allocations: 0.6097 MB / 438.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.3537, allocations: 1.282 MB / 440.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.3537, allocations: 0 / 440.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.3543, allocations: 311.9 kB / 440.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.3562, allocations: 397.7 kB / 440.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.3589, allocations: 2.079 MB / 442.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006385/0.3595, allocations: 1.041 MB / 444 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.3606, allocations: 373 kB / 444.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.3608, allocations: 71.44 kB / 444.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3608, allocations: 0 / 444.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Templates: time 0.03724/0.3981, allocations: 23.82 MB / 468.2 MB, free: 13.3 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","/var/lib/jenkins/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