Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001373, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007883/0.0007883, allocations: 94.7 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002057/0.0002057, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1894, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01163/0.2011, allocations: 18.16 MB / 430.2 MB, free: 7.426 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007313/0.2085, allocations: 8.405 MB / 438.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005866/0.2091, allocations: 35.69 kB / 438.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007513/0.2099, allocations: 282.5 kB / 438.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002037/0.2119, allocations: 0.9879 MB / 439.9 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003033/0.215, allocations: 1.372 MB / 441.3 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002999/0.218, allocations: 3.064 MB / 444.3 MB, free: 8.703 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005693/0.2186, allocations: 417.3 kB / 444.8 MB, free: 8.281 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008707/0.2194, allocations: 0.6577 MB / 445.4 MB, free: 7.621 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000859/0.2203, allocations: 0.7278 MB / 446.1 MB, free: 6.891 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.602e-05/0.2204, allocations: 40 kB / 446.2 MB, free: 6.852 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.2222, allocations: 1.061 MB / 447.2 MB, free: 5.789 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.2225, allocations: 215.4 kB / 447.5 MB, free: 5.578 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003691/0.2228, allocations: 399.8 kB / 447.8 MB, free: 5.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.2246, allocations: 1.641 MB / 449.5 MB, free: 3.535 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2246, allocations: 0 / 449.5 MB, free: 3.535 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2246, allocations: 0 / 449.5 MB, free: 3.535 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.2246, allocations: 0 / 449.5 MB, free: 3.535 MB / 314.7 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.001825/0.2264, allocations: 1.032 MB / 450.5 MB, free: 2.453 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2265, allocations: 12.03 kB / 450.5 MB, free: 2.441 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.2267, allocations: 84.08 kB / 450.6 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007497/0.2275, allocations: 0.5595 MB / 451.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.2275, allocations: 36.98 kB / 451.2 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.2276, allocations: 51.98 kB / 451.3 MB, free: 1.672 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.2287, allocations: 0.7294 MB / 452 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.2287, allocations: 0 / 452 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.896e-05/0.2288, allocations: 23.98 kB / 452 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.179e-05/0.2289, allocations: 40.97 kB / 452 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.23, allocations: 0.7025 MB / 452.8 MB, free: 148 kB / 314.7 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.003935/0.2339, allocations: 3.042 MB / 455.8 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007198/0.2346, allocations: 499.1 kB / 456.3 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003638/0.235, allocations: 262 kB / 456.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002451/0.2353, allocations: 341.3 kB / 456.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.2353, allocations: 39 kB / 456.9 MB, free: 11.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 1.864e-06/0.2353, allocations: 4 kB / 456.9 MB, free: 11.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.00486/0.2402, allocations: 2.311 MB / 459.2 MB, free: 9.281 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.2403, allocations: 89.61 kB / 459.3 MB, free: 9.176 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006944/0.241, allocations: 0.6172 MB / 459.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.632e-05/0.241, allocations: 41.7 kB / 460 MB, free: 8.504 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002273/0.2413, allocations: 332.3 kB / 460.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.2414, allocations: 209.1 kB / 460.5 MB, free: 7.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-05/0.2415, allocations: 12 kB / 460.5 MB, free: 7.957 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2416, allocations: 382.8 kB / 460.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004825/0.2421, allocations: 305.8 kB / 461.2 MB, free: 7.277 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.2427, allocations: 469.3 kB / 461.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009834/0.2437, allocations: 0.7483 MB / 462.4 MB, free: 5.938 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2437, allocations: 0 / 462.4 MB, free: 5.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001418/0.2451, allocations: 0.9653 MB / 463.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.2453, allocations: 229.4 kB / 463.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2453, allocations: 4 kB / 463.6 MB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002448/0.2477, allocations: 424.3 kB / 464 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005809/0.2483, allocations: 155.8 kB / 464.1 MB, free: 4.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008336/0.2492, allocations: 0.8293 MB / 465 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/0.2497, allocations: 48.03 kB / 465 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.2498, allocations: 35.98 kB / 465.1 MB, free: 3.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-06/0.2498, allocations: 4 kB / 465.1 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00131/0.2511, allocations: 0.8088 MB / 465.9 MB, free: 2.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.2511, allocations: 4 kB / 465.9 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001936/0.2531, allocations: 288.6 kB / 466.2 MB, free: 2.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005906/0.2537, allocations: 159.8 kB / 466.3 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006152/0.2543, allocations: 0.7162 MB / 467 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.2548, allocations: 43.89 kB / 467.1 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.108e-05/0.2548, allocations: 35.98 kB / 467.1 MB, free: 1.078 MB / 330.7 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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.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.0003399/0.2552, allocations: 320.9 kB / 467.4 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.2553, allocations: 75.14 kB / 467.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.2568, allocations: 0.8543 MB / 468.3 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.2569, allocations: 11.94 kB / 468.4 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2569, allocations: 0 / 468.4 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.2569, allocations: 3.984 kB / 468.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.2595, allocations: 1.715 MB / 470.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2596, allocations: 64 / 470.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.2601, allocations: 111.9 kB / 470.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.2615, allocations: 356.5 kB / 470.5 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.946e-05/0.2616, allocations: 19.98 kB / 470.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007477/0.2623, allocations: 0.8059 MB / 471.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2624, allocations: 4.062 kB / 471.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.2642, allocations: 1.287 MB / 472.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/0.2644, allocations: 152.2 kB / 472.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.2645, allocations: 16 kB / 472.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.2649, allocations: 39.97 kB / 472.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.2651, allocations: 52.48 kB / 472.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.708e-05/0.2652, allocations: 27.98 kB / 472.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005213/0.2657, allocations: 435 kB / 473.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2657, allocations: 0 / 473.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001289/0.267, allocations: 0.531 MB / 473.9 MB, free: 10.14 MB / 346.7 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.001054/0.2681, allocations: 470.7 kB / 474.3 MB, free: 9.672 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002133/0.2702, allocations: 1.169 MB / 475.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2702, allocations: 0 / 475.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006424/0.2709, allocations: 391 kB / 475.9 MB, free: 8.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.2724, allocations: 354.7 kB / 476.2 MB, free: 7.773 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.2749, allocations: 1.944 MB / 478.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.2754, allocations: 0.9598 MB / 479.2 MB, free: 4.812 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009245/0.2764, allocations: 286.2 kB / 479.4 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.2765, allocations: 63.42 kB / 479.5 MB, free: 4.465 MB / 346.7 MB Notification: Performance of SimCode: time 6.71e-07/0.2766, allocations: 0 / 479.5 MB, free: 4.465 MB / 346.7 MB Notification: Performance of Templates: time 0.03018/0.3067, allocations: 19.31 MB / 498.8 MB, free: 1.316 MB / 362.7 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.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches