Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111.5 kB / 17.29 MB, free: 6.219 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.001537/0.001537, allocations: 193.3 kB / 18.21 MB, free: 5.293 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.332/1.332, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 51.27 kB / 300.8 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09495, allocations: 49.45 MB / 350.2 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02108/0.1161, allocations: 18.31 MB / 368.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.174/0.2901, allocations: 6.161 MB / 374.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.2913, allocations: 33.06 kB / 374.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000927/0.2923, allocations: 296 kB / 375 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002538/0.2949, allocations: 0.96 MB / 376 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004295/0.2992, allocations: 1.499 MB / 377.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002999/0.3022, allocations: 1.956 MB / 379.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008938/0.3031, allocations: 479.8 kB / 379.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.3046, allocations: 0.7208 MB / 380.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.3058, allocations: 0.7619 MB / 381.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002037/0.3061, allocations: 70.25 kB / 381.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002525/0.3086, allocations: 1.113 MB / 382.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003629/0.309, allocations: 262.1 kB / 382.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005161/0.3095, allocations: 403 kB / 383.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.3114, allocations: 1.23 MB / 384.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3114, allocations: 1.25 kB / 384.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3114, allocations: 0 / 384.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3115, allocations: 0 / 384.5 MB, free: 8.16 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002215/0.3137, allocations: 1.174 MB / 385.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.3137, allocations: 9.812 kB / 385.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003083/0.314, allocations: 87.48 kB / 385.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000724/0.3148, allocations: 0.5521 MB / 386.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-05/0.3148, allocations: 44.17 kB / 386.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.927e-05/0.3149, allocations: 41.62 kB / 386.4 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.3162, allocations: 0.7387 MB / 387.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.3163, allocations: 0 / 387.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.865e-05/0.3164, allocations: 23.59 kB / 387.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.308e-05/0.3164, allocations: 45.08 kB / 387.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.3177, allocations: 0.6987 MB / 387.9 MB, free: 6.715 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.004476/0.3222, allocations: 3.037 MB / 390.9 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007514/0.3229, allocations: 497.3 kB / 391.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003742/0.3233, allocations: 261.9 kB / 391.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.3235, allocations: 336 kB / 392 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.3236, allocations: 54.11 kB / 392 MB, free: 3.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.814e-06/0.3236, allocations: 0 / 392 MB, free: 3.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005091/0.3287, allocations: 2.295 MB / 394.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.3287, allocations: 83.36 kB / 394.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007491/0.3295, allocations: 0.6297 MB / 395 MB, free: 1.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.3296, allocations: 41.7 kB / 395.1 MB, free: 1.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3297, allocations: 329.4 kB / 395.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.3299, allocations: 205.4 kB / 395.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.3301, allocations: 139.2 kB / 395.7 MB, free: 1.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3302, allocations: 380.6 kB / 396.1 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000451/0.3307, allocations: 315.9 kB / 396.4 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005223/0.3312, allocations: 482.7 kB / 396.9 MB, free: 232 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.3323, allocations: 0.7449 MB / 397.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.3323, allocations: 6.516 kB / 397.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00153/0.3338, allocations: 0.9666 MB / 398.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3338, allocations: 8 kB / 398.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3339, allocations: 3.188 kB / 398.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/0.3363, allocations: 411.7 kB / 399 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005777/0.3369, allocations: 156.5 kB / 399.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008875/0.3378, allocations: 0.8327 MB / 400 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006238/0.3384, allocations: 34.78 kB / 400 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.047e-05/0.3385, allocations: 44.73 kB / 400.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006884/0.3392, allocations: 472.5 kB / 400.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005622/0.3398, allocations: 478.4 kB / 401 MB, free: 13.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009558/0.3408, allocations: 0.7284 MB / 401.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.545e-06/0.3408, allocations: 4 kB / 401.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001403/0.3422, allocations: 0.9072 MB / 402.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.3422, allocations: 8 kB / 402.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3422, allocations: 4.875 kB / 402.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/0.3441, allocations: 268.5 kB / 402.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005759/0.3447, allocations: 159.7 kB / 403.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006223/0.3453, allocations: 0.7176 MB / 403.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006271/0.346, allocations: 43.88 kB / 403.8 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.63e-05/0.3461, allocations: 32 kB / 403.9 MB, free: 11.15 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],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 (84): * 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: 1 * 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): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003021/0.3464, allocations: 224.8 kB / 404.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3465, allocations: 75.16 kB / 404.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.3481, allocations: 0.8685 MB / 405 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3481, allocations: 11.98 kB / 405 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3481, allocations: 0 / 405 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3481, allocations: 0 / 405 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.3509, allocations: 1.712 MB / 406.8 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3509, allocations: 0 / 406.8 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/0.3514, allocations: 111.8 kB / 406.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001505/0.3529, allocations: 324.6 kB / 407.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.767e-05/0.353, allocations: 23.92 kB / 407.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000803/0.3538, allocations: 0.8088 MB / 408 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3538, allocations: 3.938 kB / 408 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.3558, allocations: 1.295 MB / 409.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.356, allocations: 144.2 kB / 409.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.3562, allocations: 20.06 kB / 409.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004777/0.3566, allocations: 31.97 kB / 409.5 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.3568, allocations: 56.42 kB / 409.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.3569, allocations: 23.98 kB / 409.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005517/0.3574, allocations: 447 kB / 410 MB, free: 4.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3574, allocations: 0 / 410 MB, free: 4.863 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001589/0.359, allocations: 0.531 MB / 410.6 MB, free: 4.332 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009886/0.36, allocations: 440.1 kB / 411 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.3626, allocations: 1.315 MB / 412.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3626, allocations: 0 / 412.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006375/0.3633, allocations: 395 kB / 412.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/0.365, allocations: 367.5 kB / 413 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.3676, allocations: 1.872 MB / 414.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.368, allocations: 0.9596 MB / 415.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.3683, allocations: 71.42 kB / 415.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3683, allocations: 0 / 415.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of Templates: time 0.02371/0.392, allocations: 17.48 MB / 433.4 MB, free: 13.53 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches