Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 96.86 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002641/0.002641, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.23/2.23, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002473/0.002473, allocations: 47.92 kB / 280.7 MB, free: 3.105 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1604, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.007279/0.1678, allocations: 2.757 MB / 330.1 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.1703, allocations: 0.8577 MB / 331 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.1706, allocations: 4 kB / 331 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005438/0.1713, allocations: 71.41 kB / 331.1 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006894/0.172, allocations: 142.9 kB / 331.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.1724, allocations: 87.77 kB / 331.3 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008162/0.1733, allocations: 438.4 kB / 331.7 MB, free: 16 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/0.1736, allocations: 99.36 kB / 331.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.1739, allocations: 155.4 kB / 332 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.1743, allocations: 183.2 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1745, allocations: 36 kB / 332.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1746, allocations: 32 kB / 332.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.1747, allocations: 75.75 kB / 332.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002885/0.175, allocations: 199 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006443/0.1757, allocations: 426.8 kB / 332.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1757, allocations: 8 kB / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1757, allocations: 0 / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1758, allocations: 0 / 332.9 MB, free: 14.82 MB / 286.1 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.001827/0.1776, allocations: 0.6795 MB / 333.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.1777, allocations: 12.03 kB / 333.6 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.1778, allocations: 71.19 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.178, allocations: 44.47 kB / 333.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006405/0.1787, allocations: 295.5 kB / 334 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.1789, allocations: 50.81 kB / 334 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.1789, allocations: 24.28 kB / 334.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008807/0.1798, allocations: 343.2 kB / 334.4 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1799, allocations: 0 / 334.4 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.164e-05/0.1799, allocations: 8 kB / 334.4 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.18, allocations: 8 kB / 334.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007362/0.1807, allocations: 210.1 kB / 334.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.1831, allocations: 0.838 MB / 335.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008038/0.1839, allocations: 279 kB / 335.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.1842, allocations: 108.8 kB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.1843, allocations: 11.98 kB / 335.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.1843, allocations: 38.56 kB / 335.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 3.366e-06/0.1843, allocations: 0 / 335.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001258/0.1856, allocations: 483.2 kB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/0.1858, allocations: 316.4 kB / 336.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.1861, allocations: 279 kB / 336.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.1862, allocations: 33.7 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.1864, allocations: 180.6 kB / 337.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.1866, allocations: 98.55 kB / 337.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.1868, allocations: 73.59 kB / 337.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002279/0.187, allocations: 342.8 kB / 337.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.1874, allocations: 91.95 kB / 337.7 MB, free: 9.617 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004829/0.1879, allocations: 219.6 kB / 338 MB, free: 9.359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008951/0.1888, allocations: 270.7 kB / 338.2 MB, free: 9.078 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1888, allocations: 0 / 338.2 MB, free: 9.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001188/0.19, allocations: 360.8 kB / 338.6 MB, free: 8.711 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.307e-05/0.1901, allocations: 33.69 kB / 338.6 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1901, allocations: 4 kB / 338.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002532/0.1904, allocations: 32.94 kB / 338.6 MB, free: 8.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.192, allocations: 163.8 kB / 338.8 MB, free: 8.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004839/0.1969, allocations: 3.24 MB / 342 MB, free: 4.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005513/0.1975, allocations: 31.88 kB / 342.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.863e-05/0.1976, allocations: 12 kB / 342.1 MB, free: 4.918 MB / 286.1 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.0004237/0.198, allocations: 161.8 kB / 342.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.1982, allocations: 31.62 kB / 342.3 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.1984, allocations: 39.08 kB / 342.3 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.1984, allocations: 4 kB / 342.3 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1984, allocations: 3.938 kB / 342.3 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00116/0.1996, allocations: 0.651 MB / 343 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008049/0.2004, allocations: 389.2 kB / 343.4 MB, free: 3.484 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.2004, allocations: 0 / 343.4 MB, free: 3.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/0.2026, allocations: 215.9 kB / 343.6 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001371/0.2028, allocations: 20.84 kB / 343.6 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/0.2028, allocations: 12 kB / 343.6 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005793/0.2087, allocations: 3.049 MB / 346.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2087, allocations: 0 / 346.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.2102, allocations: 0.5118 MB / 347.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.2106, allocations: 136.7 kB / 347.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.2107, allocations: 8 kB / 347.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005076/0.2113, allocations: 19.92 kB / 347.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.2114, allocations: 19.97 kB / 347.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.2115, allocations: 12 kB / 347.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004033/0.2119, allocations: 202 kB / 347.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2119, allocations: 0 / 347.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008975/0.2128, allocations: 107.8 kB / 347.7 MB, free: 14.86 MB / 302.1 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.002059/0.2149, allocations: 1.057 MB / 348.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00277/0.2177, allocations: 0.5489 MB / 349.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.2177, allocations: 4 kB / 349.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.2201, allocations: 398.9 kB / 349.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.2214, allocations: 96.34 kB / 349.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009667/0.2311, allocations: 3.428 MB / 353.2 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006954/0.2319, allocations: 0.7762 MB / 354 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00034/0.2322, allocations: 38.97 kB / 354 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/0.2325, allocations: 107.4 kB / 354.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of SimCode: time 1.453e-06/0.2325, allocations: 0 / 354.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05395/0.2865, allocations: 9.459 MB / 363.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.95/18.24, allocations: 11.89 kB / 363.6 MB, free: 14.68 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches