Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,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.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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008381/0.0008382, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0008549/0.000855, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.308/1.308, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003596, allocations: 8.719 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.102, allocations: 50.41 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.183/0.285, allocations: 21.92 MB / 373.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.2973, allocations: 10.27 MB / 384 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008945/0.2983, allocations: 36.06 kB / 384.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008702/0.2992, allocations: 352.5 kB / 384.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003205/0.3024, allocations: 1.334 MB / 385.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005944/0.3083, allocations: 2.227 MB / 388 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004408/0.3127, allocations: 3.803 MB / 391.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008849/0.3136, allocations: 0.5667 MB / 392.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.3152, allocations: 0.833 MB / 393.2 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00129/0.3165, allocations: 0.9711 MB / 394.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.3166, allocations: 46.72 kB / 394.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003322/0.3199, allocations: 1.677 MB / 395.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003367/0.3203, allocations: 321.3 kB / 396.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005261/0.3208, allocations: 0.5129 MB / 396.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002925/0.3238, allocations: 2.387 MB / 399.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3238, allocations: 1.594 kB / 399.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3238, allocations: 0 / 399.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.3238, allocations: 0 / 399.1 MB, free: 2.902 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.002366/0.3262, allocations: 1.317 MB / 400.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3262, allocations: 8.344 kB / 400.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003563/0.3266, allocations: 116.2 kB / 400.5 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008507/0.3274, allocations: 0.6763 MB / 401.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.724e-05/0.3275, allocations: 46.17 kB / 401.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.3276, allocations: 69.64 kB / 401.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.329, allocations: 1.064 MB / 402.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.3291, allocations: 0 / 402.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-05/0.3292, allocations: 33.73 kB / 402.4 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.073e-05/0.3292, allocations: 64.11 kB / 402.5 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.3307, allocations: 1.033 MB / 403.5 MB, free: 24 kB / 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.006057/0.3367, allocations: 4.457 MB / 408 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009636/0.3377, allocations: 0.5729 MB / 408.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.3382, allocations: 325.9 kB / 408.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002295/0.3405, allocations: 1.971 MB / 410.8 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.3406, allocations: 46.88 kB / 410.9 MB, free: 8.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.794e-06/0.3406, allocations: 0 / 410.9 MB, free: 8.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004415/0.345, allocations: 1.967 MB / 412.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.3451, allocations: 158.2 kB / 413 MB, free: 6.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.3463, allocations: 0.9312 MB / 413.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.186e-05/0.3464, allocations: 41.69 kB / 414 MB, free: 5.547 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.3468, allocations: 478.1 kB / 414.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.3469, allocations: 165.6 kB / 414.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.347, allocations: 77.67 kB / 414.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3472, allocations: 341.9 kB / 415 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005497/0.3477, allocations: 329.8 kB / 415.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/0.3485, allocations: 0.625 MB / 415.9 MB, free: 3.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.3497, allocations: 0.8851 MB / 416.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3497, allocations: 4 kB / 416.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001967/0.3516, allocations: 1.124 MB / 418 MB, free: 1.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002305/0.3519, allocations: 361.3 kB / 418.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.3519, allocations: 8 kB / 418.3 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002708/0.3546, allocations: 388.9 kB / 418.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/0.3553, allocations: 179.7 kB / 418.9 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.3564, allocations: 1.346 MB / 420.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008441/0.3573, allocations: 63.89 kB / 420.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-05/0.3574, allocations: 43.98 kB / 420.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.226e-06/0.3574, allocations: 4 kB / 420.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001617/0.359, allocations: 0.9829 MB / 421.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.359, allocations: 8 kB / 421.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.3615, allocations: 360 kB / 421.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/0.3622, allocations: 179.7 kB / 421.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009747/0.3632, allocations: 1.308 MB / 423.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006927/0.3639, allocations: 52.78 kB / 423.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.341e-05/0.364, allocations: 51.98 kB / 423.3 MB, free: 11.73 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.0004632/0.3644, allocations: 356.7 kB / 423.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.3646, allocations: 98.88 kB / 423.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.3663, allocations: 0.7886 MB / 424.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.3663, allocations: 11.94 kB / 424.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3663, allocations: 3.938 kB / 424.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.3664, allocations: 3.984 kB / 424.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.3689, allocations: 1.589 MB / 426.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3689, allocations: 0 / 426.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.3693, allocations: 83.83 kB / 426.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.3708, allocations: 301.5 kB / 426.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.346e-05/0.3709, allocations: 11.98 kB / 426.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009637/0.3719, allocations: 1.302 MB / 427.8 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3719, allocations: 0 / 427.8 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.3736, allocations: 1.084 MB / 428.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002766/0.3739, allocations: 183.9 kB / 429.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/0.374, allocations: 19.94 kB / 429.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005941/0.3746, allocations: 43.94 kB / 429.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.3747, allocations: 48.38 kB / 429.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.654e-05/0.3748, allocations: 23.97 kB / 429.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009036/0.3757, allocations: 0.6481 MB / 429.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3757, allocations: 0 / 429.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002004/0.3777, allocations: 0.7574 MB / 430.6 MB, free: 4.203 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 (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.001605/0.3794, allocations: 0.6164 MB / 431.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002576/0.382, allocations: 1.273 MB / 432.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.382, allocations: 4.25 kB / 432.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005794/0.3826, allocations: 318.3 kB / 432.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.3847, allocations: 393.6 kB / 433.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/0.3877, allocations: 2.084 MB / 435.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006039/0.3883, allocations: 1.038 MB / 436.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001241/0.3895, allocations: 364.1 kB / 436.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.3898, allocations: 75.44 kB / 436.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3898, allocations: 7.875 kB / 436.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Templates: time 0.03882/0.4286, allocations: 23.81 MB / 460.6 MB, free: 6.445 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches