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.001199/0.001199, allocations: 94.55 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 200 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003035, allocations: 8 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09749, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.1732/0.2708, allocations: 18.86 MB / 376.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01526/0.2861, allocations: 8.877 MB / 385.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.2873, allocations: 36.12 kB / 385.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.2884, allocations: 345.2 kB / 386.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004249/0.2927, allocations: 1.165 MB / 387.3 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00725/0.3, allocations: 2.034 MB / 389.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003082/0.3031, allocations: 1.417 MB / 390.8 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.3041, allocations: 0.5434 MB / 391.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.3059, allocations: 0.78 MB / 392.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.307, allocations: 0.6311 MB / 392.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.3072, allocations: 49.34 kB / 392.8 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00464/0.3119, allocations: 1.589 MB / 394.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004363/0.3123, allocations: 288.1 kB / 394.7 MB, free: 3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.3127, allocations: 204.9 kB / 394.9 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003105/0.3158, allocations: 1.772 MB / 396.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3158, allocations: 0 / 396.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3158, allocations: 4 kB / 396.6 MB, free: 1.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.3159, allocations: 0 / 396.6 MB, free: 1.82 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003417/0.3193, allocations: 1.323 MB / 398 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3193, allocations: 9.438 kB / 398 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004827/0.3198, allocations: 112.9 kB / 398.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.321, allocations: 0.6669 MB / 398.7 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.3211, allocations: 54.89 kB / 398.8 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.3212, allocations: 63.92 kB / 398.9 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/0.3229, allocations: 1.045 MB / 399.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.323, allocations: 5.312 kB / 399.9 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.28e-05/0.3231, allocations: 28.02 kB / 399.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.67e-05/0.3232, allocations: 66.45 kB / 400 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.3249, allocations: 1.027 MB / 401 MB, free: 14.92 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.006504/0.3315, allocations: 4.51 MB / 405.5 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008531/0.3323, allocations: 0.5709 MB / 406.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002415/0.3348, allocations: 2.015 MB / 408.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.3348, allocations: 45.48 kB / 408.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.3348, allocations: 0 / 408.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004182/0.339, allocations: 1.941 MB / 410.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.3391, allocations: 164.8 kB / 410.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.3402, allocations: 0.9195 MB / 411.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/0.3403, allocations: 41.69 kB / 411.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003973/0.3407, allocations: 482.9 kB / 411.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.3409, allocations: 165.7 kB / 411.9 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.3409, allocations: 16 kB / 411.9 MB, free: 5.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.341, allocations: 349.9 kB / 412.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000499/0.3415, allocations: 309.8 kB / 412.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006696/0.3422, allocations: 0.6133 MB / 413.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006029/0.3428, allocations: 397.9 kB / 413.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3428, allocations: 0 / 413.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001699/0.3445, allocations: 1.101 MB / 414.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001409/0.346, allocations: 3.487 MB / 418.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.346, allocations: 11.95 kB / 418.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/0.3486, allocations: 381.2 kB / 418.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.3493, allocations: 183.7 kB / 418.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.3505, allocations: 1.335 MB / 420 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008839/0.3514, allocations: 60.55 kB / 420.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-05/0.3515, allocations: 43.98 kB / 420.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.3515, allocations: 4 kB / 420.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001522/0.353, allocations: 0.9717 MB / 421.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.3531, allocations: 8.625 kB / 421.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002185/0.3552, allocations: 361.3 kB / 421.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006043/0.3559, allocations: 176.6 kB / 421.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009272/0.3568, allocations: 1.311 MB / 422.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007608/0.3576, allocations: 56.05 kB / 423 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.3577, allocations: 43.98 kB / 423 MB, free: 10.04 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 ($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 (104): * Single equations (assignments): 102 * 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.0004821/0.3581, allocations: 367.1 kB / 423.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.3583, allocations: 94.88 kB / 423.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.3598, allocations: 0.7967 MB / 424.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.3599, allocations: 12.17 kB / 424.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3599, allocations: 3.984 kB / 424.3 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3599, allocations: 3.984 kB / 424.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002445/0.3623, allocations: 1.599 MB / 425.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.3623, allocations: 0 / 425.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/0.3627, allocations: 79.89 kB / 426 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.3641, allocations: 305.4 kB / 426.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.3642, allocations: 12 kB / 426.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008908/0.3651, allocations: 1.304 MB / 427.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3651, allocations: 0 / 427.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.3666, allocations: 1.103 MB / 428.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.3669, allocations: 191.8 kB / 428.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.3671, allocations: 19.98 kB / 428.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.3676, allocations: 43.97 kB / 428.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.3677, allocations: 52.27 kB / 429 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.001e-05/0.3678, allocations: 19.98 kB / 429 MB, free: 3.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007933/0.3686, allocations: 0.6442 MB / 429.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3686, allocations: 0 / 429.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002146/0.3707, allocations: 0.7535 MB / 430.4 MB, free: 2.441 MB / 334.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 (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.001285/0.372, allocations: 0.6159 MB / 431 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.3742, allocations: 1.224 MB / 432.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3742, allocations: 0 / 432.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005445/0.3748, allocations: 306.2 kB / 432.6 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.3765, allocations: 386.8 kB / 432.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.3792, allocations: 1.974 MB / 434.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.3797, allocations: 1.053 MB / 436 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.3808, allocations: 377.5 kB / 436.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/0.381, allocations: 75.42 kB / 436.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.381, allocations: 0 / 436.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of Templates: time 0.03518/0.4162, allocations: 23.48 MB / 459.9 MB, free: 5.074 MB / 366.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","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches