Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009468/0.0009467, allocations: 182.3 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 225.7 MB / 243.2 MB, free: 10.23 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007604/0.0007604, allocations: 94.95 kB / 294.4 MB, free: 9.762 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002448/0.0002449, allocations: 4 kB / 354.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2092, allocations: 50.42 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002198/0.2114, allocations: 2.34 MB / 406.9 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2127, allocations: 0.8098 MB / 407.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.213, allocations: 3.938 kB / 407.7 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003017/0.2133, allocations: 67.59 kB / 407.8 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.2137, allocations: 117 kB / 407.9 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.2139, allocations: 87.78 kB / 408 MB, free: 27.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.2144, allocations: 410.3 kB / 408.4 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.2146, allocations: 95.36 kB / 408.5 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.2148, allocations: 147.4 kB / 408.6 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.215, allocations: 159.2 kB / 408.8 MB, free: 27.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.645e-05/0.215, allocations: 24 kB / 408.8 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.153e-05/0.2151, allocations: 28 kB / 408.8 MB, free: 27.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.5e-05/0.2152, allocations: 67.73 kB / 408.9 MB, free: 27.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.2153, allocations: 204.8 kB / 409.1 MB, free: 26.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.2156, allocations: 412 kB / 409.5 MB, free: 26.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2156, allocations: 4 kB / 409.5 MB, free: 26.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2156, allocations: 0 / 409.5 MB, free: 26.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.2156, allocations: 0 / 409.5 MB, free: 26.41 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.0008618/0.2165, allocations: 0.6178 MB / 410.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2166, allocations: 8.031 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.369e-05/0.2167, allocations: 40.56 kB / 410.2 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.217, allocations: 303.3 kB / 410.5 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.608e-05/0.2171, allocations: 54.7 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.2172, allocations: 16.38 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.2176, allocations: 333.5 kB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.2176, allocations: 0 / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.2177, allocations: 8 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.2177, allocations: 4 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003627/0.218, allocations: 209.6 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.2192, allocations: 0.8104 MB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.2197, allocations: 287 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.2199, allocations: 120.8 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.2199, allocations: 8 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.22, allocations: 38.56 kB / 412.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.323e-06/0.22, allocations: 3.938 kB / 412.3 MB, free: 23.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008893/0.2209, allocations: 494.9 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.2209, allocations: 312.4 kB / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2212, allocations: 290.9 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.2212, allocations: 29.7 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.812e-05/0.2213, allocations: 168.7 kB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.2213, allocations: 114.5 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.2214, allocations: 4 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.368e-05/0.2214, allocations: 342.8 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.2216, allocations: 87.97 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.2219, allocations: 208.9 kB / 414.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.2222, allocations: 271.8 kB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2222, allocations: 0 / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005303/0.2228, allocations: 385.5 kB / 415 MB, free: 20.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.2228, allocations: 29.8 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2228, allocations: 3.938 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001446/0.223, allocations: 36.84 kB / 415.1 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009865/0.224, allocations: 207.8 kB / 415.3 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002614/0.2266, allocations: 3.066 MB / 418.3 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.2269, allocations: 35.81 kB / 418.4 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.2269, allocations: 8 kB / 418.4 MB, free: 16.86 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.0001319/0.2271, allocations: 161.7 kB / 418.5 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.549e-05/0.2271, allocations: 39.64 kB / 418.6 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.2272, allocations: 39.08 kB / 418.6 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2272, allocations: 7.984 kB / 418.6 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2272, allocations: 0 / 418.6 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000491/0.2277, allocations: 0.6618 MB / 419.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.2281, allocations: 389.1 kB / 419.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2281, allocations: 0 / 419.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.2293, allocations: 251.7 kB / 419.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.52e-05/0.2294, allocations: 28.78 kB / 419.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.2294, allocations: 12 kB / 419.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/0.2316, allocations: 2.883 MB / 422.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2316, allocations: 4.156 kB / 422.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006934/0.2323, allocations: 0.5287 MB / 423.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.2325, allocations: 136.8 kB / 423.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.818e-05/0.2325, allocations: 8 kB / 423.5 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.2328, allocations: 23.89 kB / 423.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.2329, allocations: 19.97 kB / 423.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.2329, allocations: 8 kB / 423.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001518/0.2331, allocations: 201.9 kB / 423.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2331, allocations: 0 / 423.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003905/0.2335, allocations: 99.94 kB / 423.8 MB, free: 10.91 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.0001053/0.2336, allocations: 124.2 kB / 424 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.235, allocations: 0.5898 MB / 424.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.235, allocations: 0 / 424.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.2363, allocations: 450.4 kB / 425 MB, free: 9.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.2368, allocations: 76.55 kB / 425.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.2383, allocations: 1.055 MB / 426.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.2385, allocations: 0.78 MB / 426.9 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001625/0.2387, allocations: 34.95 kB / 426.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.906e-05/0.2387, allocations: 27.44 kB / 427 MB, free: 7.695 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2387, allocations: 0 / 427 MB, free: 7.695 MB / 298.7 MB Notification: Performance of Templates: time 0.008994/0.2477, allocations: 5.726 MB / 432.7 MB, free: 2.004 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches