Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009841/0.0009841, allocations: 199.6 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 229.5 MB / 247.7 MB, free: 6.289 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008527/0.0008526, allocations: 95.75 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002911, allocations: 8 kB / 360.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2265, allocations: 51.42 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01063/0.2372, allocations: 16.42 MB / 428.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008441/0.2457, allocations: 9.85 MB / 438.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000733/0.2465, allocations: 31.69 kB / 438.4 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000785/0.2472, allocations: 282.4 kB / 438.6 MB, free: 14.31 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002202/0.2495, allocations: 1.015 MB / 439.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003391/0.2529, allocations: 1.516 MB / 441.2 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002908/0.2558, allocations: 3.185 MB / 444.3 MB, free: 8.574 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006969/0.2565, allocations: 0.5255 MB / 444.9 MB, free: 8.035 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009937/0.2575, allocations: 0.7122 MB / 445.6 MB, free: 7.32 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.2585, allocations: 0.794 MB / 446.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.2587, allocations: 47.94 kB / 446.4 MB, free: 6.477 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.2607, allocations: 1.154 MB / 447.6 MB, free: 5.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002826/0.261, allocations: 271.1 kB / 447.8 MB, free: 5.055 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004394/0.2615, allocations: 439.7 kB / 448.3 MB, free: 4.617 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.2636, allocations: 1.797 MB / 450.1 MB, free: 2.816 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2636, allocations: 4 kB / 450.1 MB, free: 2.812 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2636, allocations: 0 / 450.1 MB, free: 2.812 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2636, allocations: 0 / 450.1 MB, free: 2.812 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002259/0.2659, allocations: 1.106 MB / 451.2 MB, free: 1.656 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2659, allocations: 8.031 kB / 451.2 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002891/0.2662, allocations: 95.98 kB / 451.3 MB, free: 1.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000841/0.2671, allocations: 0.601 MB / 451.9 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.133e-05/0.2672, allocations: 100.7 kB / 452 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.2673, allocations: 59.98 kB / 452 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.2687, allocations: 0.8885 MB / 452.9 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.2687, allocations: 3.938 kB / 452.9 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.24e-05/0.2688, allocations: 23.98 kB / 453 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.848e-05/0.2688, allocations: 49.28 kB / 453 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.2702, allocations: 0.8444 MB / 453.8 MB, free: 14.91 MB / 330.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.005332/0.2755, allocations: 3.474 MB / 457.3 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009636/0.2765, allocations: 0.6618 MB / 458 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005223/0.277, allocations: 366.3 kB / 458.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002681/0.2797, allocations: 2.051 MB / 460.4 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.2798, allocations: 47.06 kB / 460.4 MB, free: 7.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 1.963e-06/0.2798, allocations: 4 kB / 460.4 MB, free: 7.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.006699/0.2865, allocations: 2.847 MB / 463.3 MB, free: 4.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.2866, allocations: 85.67 kB / 463.4 MB, free: 4.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007782/0.2873, allocations: 0.6798 MB / 464.1 MB, free: 4.191 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.049e-05/0.2874, allocations: 45.64 kB / 464.1 MB, free: 4.141 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.2876, allocations: 332.4 kB / 464.4 MB, free: 3.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.2878, allocations: 224.8 kB / 464.6 MB, free: 3.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.2879, allocations: 16 kB / 464.7 MB, free: 3.574 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.2881, allocations: 390.8 kB / 465 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.2886, allocations: 357.8 kB / 465.4 MB, free: 2.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000692/0.2893, allocations: 0.5191 MB / 465.9 MB, free: 2.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.2906, allocations: 0.8521 MB / 466.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2906, allocations: 0 / 466.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001888/0.2925, allocations: 1.157 MB / 467.9 MB, free: 176 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001396/0.2926, allocations: 219.6 kB / 468.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.2926, allocations: 4 kB / 468.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.2939, allocations: 448.4 kB / 468.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006644/0.2945, allocations: 159.7 kB / 468.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.2957, allocations: 1.024 MB / 469.8 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006191/0.2963, allocations: 51.86 kB / 469.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.708e-05/0.2964, allocations: 35.92 kB / 469.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.2964, allocations: 9.188 kB / 469.8 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001696/0.2981, allocations: 0.9998 MB / 470.8 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.2981, allocations: 4 kB / 470.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006993/0.2989, allocations: 309.1 kB / 471.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.2995, allocations: 163.7 kB / 471.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009235/0.3004, allocations: 0.8996 MB / 472.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/0.301, allocations: 47.86 kB / 472.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.616e-05/0.3011, allocations: 36.08 kB / 472.3 MB, free: 11.67 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004222/0.3015, allocations: 340.7 kB / 472.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.3016, allocations: 79.16 kB / 472.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.3036, allocations: 1.084 MB / 473.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.3037, allocations: 11.94 kB / 473.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3037, allocations: 3.938 kB / 473.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3037, allocations: 3.984 kB / 473.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002969/0.3067, allocations: 1.998 MB / 475.8 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3067, allocations: 3.938 kB / 475.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005984/0.3073, allocations: 115.9 kB / 475.9 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.3085, allocations: 452.4 kB / 476.4 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.258e-05/0.3085, allocations: 15.98 kB / 476.4 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.3097, allocations: 1.04 MB / 477.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3097, allocations: 0 / 477.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.312, allocations: 1.591 MB / 479 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.3123, allocations: 252.1 kB / 479.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.3125, allocations: 12 kB / 479.3 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005977/0.3131, allocations: 47.91 kB / 479.3 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3132, allocations: 60.56 kB / 479.4 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.94e-05/0.3133, allocations: 27.98 kB / 479.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005558/0.3138, allocations: 471 kB / 479.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.675e-06/0.3139, allocations: 0 / 479.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001386/0.3152, allocations: 0.5895 MB / 480.5 MB, free: 3.359 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009347/0.3162, allocations: 490.5 kB / 480.9 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002724/0.3189, allocations: 1.381 MB / 482.3 MB, free: 1.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3189, allocations: 0 / 482.3 MB, free: 1.492 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000911/0.3199, allocations: 472.2 kB / 482.8 MB, free: 1.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.3215, allocations: 372.9 kB / 483.1 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.3247, allocations: 2.113 MB / 485.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005588/0.3253, allocations: 0.9952 MB / 486.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001025/0.3263, allocations: 302.6 kB / 486.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.3265, allocations: 75.36 kB / 486.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.3265, allocations: 0 / 486.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of Templates: time 0.03213/0.3587, allocations: 21.79 MB / 0.4965 GB, free: 7.523 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches