Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-07,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.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,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.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2835, allocations: 50.54 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02222/0.3058, allocations: 20.73 MB / 430.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.3167, allocations: 7.065 MB / 437.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.318, allocations: 23.88 kB / 437.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.3194, allocations: 369.6 kB / 438.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003206/0.3227, allocations: 1.1 MB / 439.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004814/0.3275, allocations: 1.857 MB / 441.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.3304, allocations: 2.136 MB / 443.2 MB, free: 176 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.3316, allocations: 0.5892 MB / 443.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.3333, allocations: 0.8253 MB / 444.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001443/0.3348, allocations: 0.7629 MB / 445.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002719/0.3351, allocations: 76 kB / 445.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002747/0.3378, allocations: 1.275 MB / 446.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000446/0.3383, allocations: 283.1 kB / 447 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008223/0.3391, allocations: 469.8 kB / 447.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003375/0.3425, allocations: 1.902 MB / 449.4 MB, free: 9.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3425, allocations: 0 / 449.4 MB, free: 9.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3425, allocations: 0 / 449.4 MB, free: 9.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.726e-05/0.3426, allocations: 0 / 449.4 MB, free: 9.98 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003194/0.3458, allocations: 1.278 MB / 450.7 MB, free: 8.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3458, allocations: 8.031 kB / 450.7 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004796/0.3463, allocations: 103.8 kB / 450.8 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.3477, allocations: 0.6285 MB / 451.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.3477, allocations: 45.3 kB / 451.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.3478, allocations: 55.98 kB / 451.5 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.3493, allocations: 0.8828 MB / 452.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.3494, allocations: 0 / 452.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.182e-05/0.3495, allocations: 24 kB / 452.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.827e-05/0.3495, allocations: 45.28 kB / 452.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.3513, allocations: 0.813 MB / 453.3 MB, free: 5.957 MB / 366.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.005874/0.3572, allocations: 3.827 MB / 457.1 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009368/0.3582, allocations: 0.5392 MB / 457.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.3586, allocations: 274 kB / 457.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003933/0.359, allocations: 0.4995 MB / 458.4 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.3591, allocations: 46.98 kB / 458.4 MB, free: 408 kB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.685e-06/0.3591, allocations: 3.938 kB / 458.4 MB, free: 404 kB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004722/0.3638, allocations: 2.12 MB / 460.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.3639, allocations: 137 kB / 460.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000995/0.3649, allocations: 0.7231 MB / 461.4 MB, free: 13.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.387e-05/0.365, allocations: 49.69 kB / 461.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002898/0.3653, allocations: 371.9 kB / 461.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3654, allocations: 177.5 kB / 462 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.3657, allocations: 158.5 kB / 462.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3659, allocations: 390.8 kB / 462.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005119/0.3664, allocations: 308.7 kB / 462.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006382/0.367, allocations: 0.5226 MB / 463.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.3681, allocations: 0.7739 MB / 464.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.3682, allocations: 4 kB / 464.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001729/0.3699, allocations: 0.9997 MB / 465.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/0.3699, allocations: 8 kB / 465.1 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.37, allocations: 8.031 kB / 465.2 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/0.3717, allocations: 293.4 kB / 465.4 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.3723, allocations: 155.7 kB / 465.6 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.3734, allocations: 1.3 MB / 466.9 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/0.374, allocations: 31.98 kB / 466.9 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.521e-05/0.3741, allocations: 35.98 kB / 467 MB, free: 7.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007306/0.3749, allocations: 481.9 kB / 467.4 MB, free: 6.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006319/0.3755, allocations: 0.508 MB / 467.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001041/0.3766, allocations: 0.7592 MB / 468.7 MB, free: 5.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.021e-06/0.3766, allocations: 0 / 468.7 MB, free: 5.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001667/0.3783, allocations: 0.941 MB / 469.6 MB, free: 4.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.3783, allocations: 16.11 kB / 469.7 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.3783, allocations: 8 kB / 469.7 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.3794, allocations: 181.4 kB / 469.8 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006965/0.3802, allocations: 171.7 kB / 470 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008159/0.381, allocations: 1.179 MB / 471.2 MB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006338/0.3816, allocations: 43.91 kB / 471.2 MB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.62e-05/0.3817, allocations: 35.98 kB / 471.3 MB, free: 2.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (85): * Single equations (assignments): 83 * 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,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003205/0.3821, allocations: 228 kB / 471.5 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.3823, allocations: 79.06 kB / 471.6 MB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.3842, allocations: 0.9814 MB / 472.5 MB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.3842, allocations: 8 kB / 472.5 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3842, allocations: 0 / 472.5 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3842, allocations: 3.984 kB / 472.6 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.3872, allocations: 1.747 MB / 474.3 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.3872, allocations: 4 kB / 474.3 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004362/0.3877, allocations: 99.83 kB / 474.4 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.3888, allocations: 245.6 kB / 474.6 MB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-05/0.3888, allocations: 16 kB / 474.7 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008993/0.3897, allocations: 1.276 MB / 475.9 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3898, allocations: 4.031 kB / 475.9 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/0.3917, allocations: 1.309 MB / 477.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.392, allocations: 160 kB / 477.4 MB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.3922, allocations: 16 kB / 477.4 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.3927, allocations: 27.98 kB / 477.4 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.3929, allocations: 56.55 kB / 477.5 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.457e-05/0.3929, allocations: 31.97 kB / 477.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006808/0.3936, allocations: 0.5068 MB / 478 MB, free: 11.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3936, allocations: 0 / 478 MB, free: 11.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001725/0.3954, allocations: 0.6052 MB / 478.6 MB, free: 11.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001407/0.3968, allocations: 0.4977 MB / 479.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.3992, allocations: 1.223 MB / 480.4 MB, free: 9.621 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3993, allocations: 0 / 480.4 MB, free: 9.621 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006814/0.3999, allocations: 395 kB / 480.8 MB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.4021, allocations: 424.8 kB / 481.2 MB, free: 8.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.405, allocations: 1.64 MB / 482.8 MB, free: 7.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005551/0.4056, allocations: 0.9875 MB / 483.8 MB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.4059, allocations: 87.41 kB / 483.9 MB, free: 6.039 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4059, allocations: 0 / 483.9 MB, free: 6.039 MB / 398.1 MB Notification: Performance of Templates: time 0.03007/0.436, allocations: 23.36 MB / 0.4954 GB, free: 14.77 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches