Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 63.92 kB / 307 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09384, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1627/0.2566, allocations: 17.63 MB / 375.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007317/0.264, allocations: 6.051 MB / 381.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009815/0.265, allocations: 21.81 kB / 381.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009669/0.266, allocations: 332.1 kB / 381.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002847/0.2689, allocations: 1.044 MB / 382.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004618/0.2735, allocations: 1.648 MB / 384.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002527/0.276, allocations: 1.94 MB / 386.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006297/0.2767, allocations: 487.8 kB / 386.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.2777, allocations: 0.7186 MB / 387.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008383/0.2786, allocations: 0.7353 MB / 388.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.2787, allocations: 65.88 kB / 388.2 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002113/0.2808, allocations: 1.131 MB / 389.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.2811, allocations: 270.7 kB / 389.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.2815, allocations: 405.6 kB / 390 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001848/0.2833, allocations: 1.711 MB / 391.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2833, allocations: 1.188 kB / 391.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2833, allocations: 0 / 391.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.577e-06/0.2834, allocations: 0 / 391.7 MB, free: 4.641 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.001866/0.2852, allocations: 1.171 MB / 392.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.2853, allocations: 8.719 kB / 392.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.2855, allocations: 90.14 kB / 393 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006286/0.2862, allocations: 0.548 MB / 393.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.483e-05/0.2862, allocations: 40.86 kB / 393.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.932e-05/0.2863, allocations: 47.89 kB / 393.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009815/0.2873, allocations: 0.7348 MB / 394.3 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.2873, allocations: 0 / 394.3 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/0.2874, allocations: 21.83 kB / 394.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-05/0.2875, allocations: 47.28 kB / 394.4 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009866/0.2885, allocations: 0.7046 MB / 395.1 MB, free: 2.324 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.00351/0.292, allocations: 3.054 MB / 398.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007764/0.2928, allocations: 489.2 kB / 398.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004153/0.2932, allocations: 266.7 kB / 398.9 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003305/0.2935, allocations: 342.9 kB / 399.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.2936, allocations: 43.75 kB / 399.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.644e-06/0.2936, allocations: 0 / 399.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005256/0.2988, allocations: 2.3 MB / 401.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.2989, allocations: 87.47 kB / 401.7 MB, free: 13.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007052/0.2996, allocations: 0.622 MB / 402.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.107e-05/0.2997, allocations: 40.2 kB / 402.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.3, allocations: 331.2 kB / 402.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.3002, allocations: 204 kB / 402.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.3004, allocations: 144.5 kB / 403 MB, free: 12.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.3006, allocations: 379.5 kB / 403.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.3011, allocations: 311 kB / 403.7 MB, free: 11.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005959/0.3017, allocations: 486.2 kB / 404.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.3028, allocations: 0.7478 MB / 404.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3028, allocations: 2.562 kB / 404.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001507/0.3043, allocations: 0.9649 MB / 405.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3043, allocations: 11.22 kB / 405.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.3043, allocations: 4.375 kB / 405.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/0.3067, allocations: 419.1 kB / 406.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.3073, allocations: 152.6 kB / 406.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009515/0.3083, allocations: 0.8255 MB / 407.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004723/0.3088, allocations: 35.97 kB / 407.3 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.3089, allocations: 31.94 kB / 407.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007212/0.3096, allocations: 477.9 kB / 407.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006477/0.3103, allocations: 482 kB / 408.2 MB, free: 8.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00106/0.3113, allocations: 0.7204 MB / 409 MB, free: 7.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.455e-06/0.3113, allocations: 0 / 409 MB, free: 7.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001527/0.3129, allocations: 0.9086 MB / 409.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.738e-06/0.3129, allocations: 4 kB / 409.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.3129, allocations: 13.73 kB / 409.9 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00185/0.3148, allocations: 264.5 kB / 410.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000576/0.3154, allocations: 163.7 kB / 410.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006459/0.316, allocations: 0.7123 MB / 411 MB, free: 5.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004575/0.3165, allocations: 36.05 kB / 411.1 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.395e-05/0.3166, allocations: 35.98 kB / 411.1 MB, free: 5.238 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.0002182/0.3168, allocations: 223.1 kB / 411.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.3169, allocations: 67.16 kB / 411.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.3185, allocations: 0.8723 MB / 412.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3186, allocations: 4 kB / 412.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3186, allocations: 0 / 412.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3186, allocations: 7.984 kB / 412.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002762/0.3214, allocations: 1.707 MB / 414 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3214, allocations: 4.062 kB / 414 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/0.3219, allocations: 115.9 kB / 414.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.3233, allocations: 320.5 kB / 414.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.3234, allocations: 23.92 kB / 414.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008296/0.3242, allocations: 0.8094 MB / 415.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.3242, allocations: 0 / 415.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.3262, allocations: 1.299 MB / 416.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.3264, allocations: 140.3 kB / 416.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.3265, allocations: 19.98 kB / 416.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.3269, allocations: 23.98 kB / 416.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.3271, allocations: 60.36 kB / 416.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.83e-05/0.3271, allocations: 27.98 kB / 416.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005306/0.3277, allocations: 447 kB / 417.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3277, allocations: 0 / 417.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001471/0.3291, allocations: 0.5427 MB / 417.8 MB, free: 14.4 MB / 334.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.00091/0.3301, allocations: 438.8 kB / 418.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002601/0.3327, allocations: 1.313 MB / 419.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.3327, allocations: 4 kB / 419.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007112/0.3334, allocations: 398.9 kB / 419.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.335, allocations: 368.3 kB / 420.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.3376, allocations: 1.593 MB / 421.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005876/0.3382, allocations: 0.9674 MB / 422.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008593/0.339, allocations: 293.5 kB / 423.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3392, allocations: 59.44 kB / 423.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3392, allocations: 0 / 423.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of Templates: time 0.03413/0.3733, allocations: 20.4 MB / 443.6 MB, free: 4.695 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches