Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007673/0.0007673, allocations: 94.42 kB / 272.1 MB, free: 8.113 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002566/0.0002567, allocations: 4 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2468, allocations: 47.56 MB / 376.6 MB, free: 45.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01737/0.2643, allocations: 16.23 MB / 392.8 MB, free: 32.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008678/0.273, allocations: 9.65 MB / 402.5 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.2741, allocations: 27.75 kB / 402.5 MB, free: 21.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000801/0.275, allocations: 294.4 kB / 402.8 MB, free: 21.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002033/0.277, allocations: 1.007 MB / 403.8 MB, free: 20.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003098/0.2801, allocations: 1.5 MB / 405.3 MB, free: 18.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002244/0.2824, allocations: 3.182 MB / 408.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006246/0.283, allocations: 0.531 MB / 409 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009348/0.284, allocations: 0.7083 MB / 409.7 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008123/0.2848, allocations: 0.7901 MB / 410.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.2849, allocations: 44 kB / 410.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.2868, allocations: 1.143 MB / 411.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.287, allocations: 267.2 kB / 411.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003536/0.2874, allocations: 443.6 kB / 412.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001623/0.289, allocations: 1.788 MB / 414.2 MB, free: 9.965 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.289, allocations: 3.938 kB / 414.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2891, allocations: 0 / 414.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2891, allocations: 0 / 414.2 MB, free: 9.961 MB / 298.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.002013/0.2911, allocations: 1.095 MB / 415.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2911, allocations: 12.03 kB / 415.3 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.2914, allocations: 92 kB / 415.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007139/0.2921, allocations: 0.597 MB / 416 MB, free: 8.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.129e-05/0.2922, allocations: 108.7 kB / 416.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.061e-05/0.2923, allocations: 55.98 kB / 416.1 MB, free: 7.898 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.2935, allocations: 0.8884 MB / 417 MB, free: 6.984 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.2935, allocations: 11.98 kB / 417 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/0.2936, allocations: 19.98 kB / 417 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.113e-05/0.2936, allocations: 53.28 kB / 417.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.2947, allocations: 0.8404 MB / 417.9 MB, free: 6.059 MB / 298.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.004405/0.2992, allocations: 3.466 MB / 421.4 MB, free: 2.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.3, allocations: 0.6685 MB / 422.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/0.3004, allocations: 362.3 kB / 422.4 MB, free: 1.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002545/0.303, allocations: 2.062 MB / 424.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.303, allocations: 43.12 kB / 424.5 MB, free: 15.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.395e-06/0.303, allocations: 0 / 424.5 MB, free: 15.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006756/0.3098, allocations: 2.855 MB / 427.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.3099, allocations: 85.61 kB / 427.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008519/0.3108, allocations: 0.6721 MB / 428.1 MB, free: 11.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.804e-05/0.3108, allocations: 41.7 kB / 428.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.3111, allocations: 340.4 kB / 428.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.3113, allocations: 232.7 kB / 428.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.3113, allocations: 12 kB / 428.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3115, allocations: 386.8 kB / 429.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005613/0.3121, allocations: 361.8 kB / 429.5 MB, free: 9.992 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006506/0.3127, allocations: 0.5113 MB / 430 MB, free: 9.418 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.3139, allocations: 0.8521 MB / 430.8 MB, free: 8.504 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3139, allocations: 8 kB / 430.9 MB, free: 8.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00188/0.3158, allocations: 1.149 MB / 432 MB, free: 7.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.316, allocations: 219.7 kB / 432.2 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.316, allocations: 4 kB / 432.2 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.3173, allocations: 448.4 kB / 432.7 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.3179, allocations: 155.8 kB / 432.8 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.3192, allocations: 1.032 MB / 433.8 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006356/0.3198, allocations: 51.86 kB / 433.9 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-05/0.3199, allocations: 35.92 kB / 433.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.3199, allocations: 6.812 kB / 433.9 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001653/0.3216, allocations: 0.9962 MB / 434.9 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.3216, allocations: 8.094 kB / 434.9 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006913/0.3223, allocations: 316.6 kB / 435.2 MB, free: 3.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006254/0.3229, allocations: 167.8 kB / 435.4 MB, free: 3.832 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009256/0.3239, allocations: 0.8957 MB / 436.3 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.3245, allocations: 55.86 kB / 436.4 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-05/0.3245, allocations: 31.98 kB / 436.4 MB, free: 2.824 MB / 314.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.0004264/0.325, allocations: 332.8 kB / 436.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.3251, allocations: 79.06 kB / 436.8 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.327, allocations: 1.087 MB / 437.9 MB, free: 1.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.327, allocations: 12 kB / 437.9 MB, free: 1.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.327, allocations: 3.938 kB / 437.9 MB, free: 1.289 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.327, allocations: 3.984 kB / 437.9 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.3299, allocations: 1.994 MB / 439.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3299, allocations: 0 / 439.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.3305, allocations: 123.8 kB / 440 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.3317, allocations: 456.5 kB / 440.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/0.3318, allocations: 12 kB / 440.5 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.3329, allocations: 1.026 MB / 441.5 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3329, allocations: 7.984 kB / 441.5 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.3352, allocations: 1.587 MB / 443.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004337/0.3356, allocations: 259.9 kB / 443.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3358, allocations: 12 kB / 443.4 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005754/0.3363, allocations: 47.97 kB / 443.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3365, allocations: 52.58 kB / 443.5 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.3366, allocations: 31.97 kB / 443.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005535/0.3371, allocations: 475 kB / 444 MB, free: 11.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3371, allocations: 0 / 444 MB, free: 11.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001449/0.3386, allocations: 0.5818 MB / 444.5 MB, free: 10.52 MB / 330.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.001008/0.3396, allocations: 499.2 kB / 445 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.3424, allocations: 1.381 MB / 446.4 MB, free: 8.645 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3424, allocations: 0 / 446.4 MB, free: 8.645 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008772/0.3433, allocations: 463.5 kB / 446.9 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.3449, allocations: 366 kB / 447.2 MB, free: 7.844 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.3482, allocations: 2.104 MB / 449.3 MB, free: 5.711 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000523/0.3487, allocations: 0.9913 MB / 450.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001001/0.3497, allocations: 314.5 kB / 450.6 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.3499, allocations: 71.42 kB / 450.7 MB, free: 4.309 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3499, allocations: 0 / 450.7 MB, free: 4.309 MB / 330.7 MB Notification: Performance of Templates: time 0.03303/0.3829, allocations: 21.74 MB / 472.4 MB, free: 14.62 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches