Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,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.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,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.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 94.36 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.001193/0.001193, allocations: 184 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.424/1.424, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003808, allocations: 8 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1259, allocations: 50.41 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1865/0.3124, allocations: 20.63 MB / 372.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009113/0.3216, allocations: 7.261 MB / 379.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009322/0.3226, allocations: 31.69 kB / 379.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009404/0.3235, allocations: 315.4 kB / 380.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002615/0.3261, allocations: 1.03 MB / 381.1 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004571/0.3307, allocations: 1.566 MB / 382.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003744/0.3345, allocations: 3.122 MB / 385.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009038/0.3354, allocations: 0.501 MB / 386.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.3367, allocations: 0.707 MB / 387 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009993/0.3377, allocations: 0.7552 MB / 387.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.3379, allocations: 38.16 kB / 387.8 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002559/0.3404, allocations: 1.232 MB / 389 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003023/0.3408, allocations: 251.5 kB / 389.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005358/0.3413, allocations: 456.7 kB / 389.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.344, allocations: 1.833 MB / 391.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.344, allocations: 3.938 kB / 391.5 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.344, allocations: 3.938 kB / 391.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.3441, allocations: 1.406 kB / 391.5 MB, free: 6.145 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002024/0.3461, allocations: 1.11 MB / 392.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3461, allocations: 9 kB / 392.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003714/0.3465, allocations: 104.4 kB / 392.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.3473, allocations: 0.5937 MB / 393.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.3474, allocations: 45.23 kB / 393.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.594e-05/0.3475, allocations: 55.59 kB / 393.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.3487, allocations: 0.887 MB / 394.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.3487, allocations: 1.094 kB / 394.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.848e-05/0.3488, allocations: 26.86 kB / 394.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.838e-05/0.3489, allocations: 45.94 kB / 394.4 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.3501, allocations: 0.809 MB / 395.2 MB, free: 3.695 MB / 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.004385/0.3545, allocations: 3.839 MB / 399.1 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008247/0.3554, allocations: 0.5502 MB / 399.6 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004419/0.3558, allocations: 275.5 kB / 399.9 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004328/0.3563, allocations: 0.5016 MB / 400.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.3563, allocations: 43.81 kB / 400.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.215e-06/0.3563, allocations: 0 / 400.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004458/0.3608, allocations: 2.129 MB / 402.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/0.3609, allocations: 135.5 kB / 402.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009116/0.3618, allocations: 0.7274 MB / 403.4 MB, free: 13.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.923e-05/0.3619, allocations: 47.83 kB / 403.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.3622, allocations: 376.5 kB / 403.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.3624, allocations: 186.7 kB / 404 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.712e-05/0.3625, allocations: 64.5 kB / 404.1 MB, free: 12.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.3627, allocations: 387.1 kB / 404.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.3632, allocations: 307.5 kB / 404.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006446/0.3638, allocations: 0.5102 MB / 405.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.3649, allocations: 0.7749 MB / 406 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3649, allocations: 0 / 406 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001704/0.3666, allocations: 1.003 MB / 407 MB, free: 10.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.3668, allocations: 261.4 kB / 407.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.3668, allocations: 8 kB / 407.3 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001816/0.3686, allocations: 301.4 kB / 407.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005685/0.3692, allocations: 143.8 kB / 407.7 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.3703, allocations: 1.315 MB / 409.1 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007739/0.3711, allocations: 47.97 kB / 409.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.95e-05/0.3712, allocations: 40.05 kB / 409.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/0.3712, allocations: 0 / 409.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001512/0.3727, allocations: 0.8502 MB / 410 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3727, allocations: 8 kB / 410 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.374, allocations: 189.9 kB / 410.2 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006981/0.3747, allocations: 171.7 kB / 410.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008024/0.3755, allocations: 1.183 MB / 411.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006415/0.3762, allocations: 56.03 kB / 411.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.009e-05/0.3763, allocations: 39.92 kB / 411.6 MB, free: 5.559 MB / 318.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.0004793/0.3767, allocations: 329.5 kB / 411.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.3769, allocations: 82.97 kB / 412 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.3788, allocations: 0.9677 MB / 413 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3788, allocations: 12 kB / 413 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3788, allocations: 0 / 413 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.3788, allocations: 3.984 kB / 413 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.3816, allocations: 1.761 MB / 414.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.3817, allocations: 8 kB / 414.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004541/0.3821, allocations: 95.89 kB / 414.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.3833, allocations: 257.3 kB / 415.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.3834, allocations: 16 kB / 415.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009941/0.3844, allocations: 1.272 MB / 416.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3844, allocations: 0 / 416.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3866, allocations: 1.316 MB / 417.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003033/0.3869, allocations: 176 kB / 417.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.3871, allocations: 12 kB / 417.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.3877, allocations: 44.17 kB / 418 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3878, allocations: 56.47 kB / 418 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.488e-05/0.3879, allocations: 31.98 kB / 418 MB, free: 14.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007192/0.3886, allocations: 0.5107 MB / 418.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3886, allocations: 0 / 418.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002313/0.3909, allocations: 0.5896 MB / 419.1 MB, free: 13.88 MB / 334.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.001889/0.3928, allocations: 0.5064 MB / 419.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002647/0.3955, allocations: 1.208 MB / 420.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3955, allocations: 3.938 kB / 420.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000749/0.3963, allocations: 397.9 kB / 421.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.3985, allocations: 395.9 kB / 421.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.4016, allocations: 1.971 MB / 423.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.4022, allocations: 0.9917 MB / 424.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001159/0.4034, allocations: 328 kB / 424.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.4036, allocations: 75.42 kB / 425 MB, free: 8.016 MB / 334.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4036, allocations: 0 / 425 MB, free: 8.016 MB / 334.1 MB Notification: Performance of Templates: time 0.03649/0.4401, allocations: 21.74 MB / 446.7 MB, free: 2.5 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches