Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 179.2 kB / 17.36 MB, free: 4.449 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.666/1.666, allocations: 205.6 MB / 223.7 MB, free: 8.953 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.0008306/0.0008308, allocations: 90.36 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002642, allocations: 4 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2613, allocations: 47.58 MB / 376.6 MB, free: 45.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002854/0.2642, allocations: 2.349 MB / 378.9 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.2656, allocations: 0.8493 MB / 379.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002771/0.2659, allocations: 3.312 kB / 379.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003241/0.2663, allocations: 64.8 kB / 379.9 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.2667, allocations: 116.2 kB / 380 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.267, allocations: 79.86 kB / 380.1 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005405/0.2675, allocations: 417.4 kB / 380.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.2678, allocations: 86.08 kB / 380.5 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.268, allocations: 148.4 kB / 380.7 MB, free: 42.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.2684, allocations: 166.2 kB / 380.8 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.2684, allocations: 21.44 kB / 380.9 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.475e-05/0.2685, allocations: 22.62 kB / 380.9 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.969e-05/0.2686, allocations: 64.62 kB / 381 MB, free: 42.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.2688, allocations: 206.8 kB / 381.2 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.2692, allocations: 413 kB / 381.6 MB, free: 41.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2692, allocations: 0 / 381.6 MB, free: 41.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2692, allocations: 3.938 kB / 381.6 MB, free: 41.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.2692, allocations: 5.406 kB / 381.6 MB, free: 41.79 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.00109/0.2703, allocations: 0.6138 MB / 382.2 MB, free: 41.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.2704, allocations: 12.34 kB / 382.2 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.58e-05/0.2705, allocations: 43.41 kB / 382.2 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.2709, allocations: 303.2 kB / 382.5 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.271, allocations: 46.52 kB / 382.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.2711, allocations: 34.23 kB / 382.6 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.2716, allocations: 324.4 kB / 382.9 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.2716, allocations: 1.031 kB / 382.9 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.2717, allocations: 11.69 kB / 382.9 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.2717, allocations: 4.594 kB / 382.9 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.2721, allocations: 210.7 kB / 383.2 MB, free: 40.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.2733, allocations: 0.8078 MB / 384 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005249/0.2739, allocations: 286.6 kB / 384.2 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.2741, allocations: 121.4 kB / 384.4 MB, free: 39.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.2741, allocations: 8.609 kB / 384.4 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.2741, allocations: 41.69 kB / 384.4 MB, free: 39.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.184e-06/0.2742, allocations: 96 / 384.4 MB, free: 39.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009934/0.2752, allocations: 494.2 kB / 384.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.553e-05/0.2752, allocations: 317.9 kB / 385.2 MB, free: 38.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.2755, allocations: 275.8 kB / 385.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.2755, allocations: 33.02 kB / 385.5 MB, free: 38.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.397e-05/0.2756, allocations: 172.3 kB / 385.7 MB, free: 38.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.599e-05/0.2757, allocations: 98.34 kB / 385.8 MB, free: 38.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.428e-05/0.2757, allocations: 6.375 kB / 385.8 MB, free: 38.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.984e-05/0.2758, allocations: 345.9 kB / 386.1 MB, free: 38.1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.276, allocations: 90.08 kB / 386.2 MB, free: 38.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/0.2762, allocations: 227.9 kB / 386.4 MB, free: 37.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.2767, allocations: 278.6 kB / 386.7 MB, free: 37.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2767, allocations: 0 / 386.7 MB, free: 37.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005795/0.2773, allocations: 370.1 kB / 387.1 MB, free: 37.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.091e-05/0.2773, allocations: 42.11 kB / 387.1 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2773, allocations: 2.281 kB / 387.1 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/0.2775, allocations: 38.16 kB / 387.1 MB, free: 37.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.2785, allocations: 201 kB / 387.3 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.2813, allocations: 3.082 MB / 390.4 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.2815, allocations: 35.81 kB / 390.4 MB, free: 33.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.2816, allocations: 12 kB / 390.5 MB, free: 33.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.2817, allocations: 153.8 kB / 390.6 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.406e-05/0.2818, allocations: 39.56 kB / 390.6 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.426e-05/0.2818, allocations: 35.17 kB / 390.7 MB, free: 33.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2818, allocations: 7.938 kB / 390.7 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2818, allocations: 0 / 390.7 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004828/0.2823, allocations: 0.6659 MB / 391.4 MB, free: 32.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.2827, allocations: 381.2 kB / 391.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2827, allocations: 0 / 391.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.2839, allocations: 251.8 kB / 392 MB, free: 32.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.757e-05/0.284, allocations: 32.72 kB / 392 MB, free: 32.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.284, allocations: 8 kB / 392 MB, free: 32.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002251/0.2863, allocations: 2.891 MB / 394.9 MB, free: 29.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.2863, allocations: 8.031 kB / 394.9 MB, free: 29.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006666/0.287, allocations: 0.5232 MB / 395.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.2871, allocations: 136.7 kB / 395.6 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.2872, allocations: 12 kB / 395.6 MB, free: 28.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.2874, allocations: 19.98 kB / 395.6 MB, free: 28.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.2875, allocations: 19.97 kB / 395.6 MB, free: 28.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.2875, allocations: 12 kB / 395.6 MB, free: 28.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001493/0.2877, allocations: 201.9 kB / 395.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2877, allocations: 0 / 395.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003501/0.288, allocations: 107.8 kB / 395.9 MB, free: 27.96 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000126/0.2882, allocations: 115.2 kB / 396 MB, free: 27.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.2896, allocations: 0.5799 MB / 396.6 MB, free: 27.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2896, allocations: 8 kB / 396.6 MB, free: 27.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.2909, allocations: 454.8 kB / 397.1 MB, free: 26.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.2914, allocations: 92.53 kB / 397.2 MB, free: 26.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.293, allocations: 1.043 MB / 398.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.2932, allocations: 0.7762 MB / 399 MB, free: 24.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.2933, allocations: 38.95 kB / 399 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.394e-05/0.2934, allocations: 27.44 kB / 399.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2934, allocations: 0 / 399.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of Templates: time 0.00873/0.3022, allocations: 5.724 MB / 404.8 MB, free: 19.04 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches