Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 76.08 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000855/0.000855, allocations: 153.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8813/0.8813, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.424e-06/2.424e-06, allocations: 7.922 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.202e-05/1.445e-05, allocations: 2.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002282/0.002297, allocations: 2.535 MB / 321 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009724/0.003269, allocations: 0.7827 MB / 321.7 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.00339, allocations: 0 / 321.7 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.003601, allocations: 75.41 kB / 321.8 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.00382, allocations: 146.8 kB / 322 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.004031, allocations: 95.73 kB / 322 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.004418, allocations: 458.1 kB / 322.5 MB, free: 2.266 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.004552, allocations: 59.95 kB / 322.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.004754, allocations: 247.5 kB / 322.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.004902, allocations: 131.7 kB / 322.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.004941, allocations: 36 kB / 323 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.64e-05/0.004978, allocations: 36 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.005029, allocations: 79.69 kB / 323.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.587e-05/0.005124, allocations: 135.7 kB / 323.2 MB, free: 1.555 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003341/0.005459, allocations: 458.6 kB / 323.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.00546, allocations: 0 / 323.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.005461, allocations: 0 / 323.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.005466, allocations: 0 / 323.6 MB, free: 1.105 MB / 282.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.0007617/0.006228, allocations: 0.615 MB / 324.3 MB, free: 468 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.006271, allocations: 12.91 kB / 324.3 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.116e-05/0.006353, allocations: 67.19 kB / 324.3 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.976e-05/0.006422, allocations: 52.66 kB / 324.4 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.006736, allocations: 241.7 kB / 324.6 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.006846, allocations: 106.2 kB / 324.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.00688, allocations: 24.33 kB / 324.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.00737, allocations: 0.6785 MB / 325.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.007383, allocations: 192 / 325.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.007405, allocations: 15.94 kB / 325.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.007413, allocations: 11.94 kB / 325.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.007679, allocations: 213.8 kB / 325.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000921/0.0086, allocations: 0.7163 MB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.00894, allocations: 255.7 kB / 326.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.009074, allocations: 112.8 kB / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.009098, allocations: 4 kB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.00912, allocations: 38.56 kB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.202e-06/0.009121, allocations: 0 / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006585/0.00978, allocations: 402.2 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.6e-05/0.009876, allocations: 316.4 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.01007, allocations: 284.2 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.01009, allocations: 33.7 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.01023, allocations: 180.7 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.01029, allocations: 115 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-05/0.01036, allocations: 65.7 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.962e-05/0.01045, allocations: 346.7 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.01059, allocations: 117.7 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002576/0.01085, allocations: 496.2 kB / 329.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.01112, allocations: 263.5 kB / 329.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.01113, allocations: 4 kB / 329.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004724/0.0116, allocations: 399.5 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.01163, allocations: 29.7 kB / 329.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.01163, allocations: 0 / 329.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/0.01175, allocations: 36.84 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.01221, allocations: 159.9 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.01422, allocations: 2.998 MB / 333 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.01436, allocations: 31.88 kB / 333 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.01438, allocations: 27.86 kB / 333 MB, free: 6.941 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.0001147/0.0145, allocations: 149.8 kB / 333.2 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/0.01477, allocations: 39.88 kB / 333.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.01481, allocations: 43.02 kB / 333.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.01481, allocations: 0 / 333.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.01482, allocations: 0 / 333.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000515/0.01533, allocations: 0.6461 MB / 333.9 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.01561, allocations: 324.4 kB / 334.2 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01561, allocations: 0 / 334.2 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006287/0.01624, allocations: 207.7 kB / 334.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.368e-05/0.01629, allocations: 20.86 kB / 334.4 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.01631, allocations: 7.984 kB / 334.4 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/0.01792, allocations: 2.838 MB / 337.3 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.01792, allocations: 3.984 kB / 337.3 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.01843, allocations: 0.5092 MB / 337.8 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.914e-05/0.01852, allocations: 67.7 kB / 337.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.01854, allocations: 4 kB / 337.9 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.01867, allocations: 15.98 kB / 337.9 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.921e-05/0.01874, allocations: 31.89 kB / 337.9 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.01875, allocations: 4 kB / 337.9 MB, free: 1.637 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001381/0.01888, allocations: 203 kB / 338.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01888, allocations: 4 kB / 338.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003074/0.01919, allocations: 107.9 kB / 338.2 MB, free: 1.332 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.0007024/0.01989, allocations: 1.061 MB / 339.3 MB, free: 244 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008289/0.02072, allocations: 0.5426 MB / 339.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.02073, allocations: 3.938 kB / 339.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006355/0.02136, allocations: 390.9 kB / 340.2 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.02168, allocations: 84.58 kB / 340.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.02491, allocations: 3.433 MB / 343.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.02502, allocations: 173.8 kB / 343.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.02513, allocations: 34.95 kB / 343.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.02524, allocations: 104.5 kB / 344 MB, free: 11.29 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02524, allocations: 0 / 344 MB, free: 11.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.04707, allocations: 10.98 MB / 355 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/7.849, allocations: 12.05 kB / 355 MB, free: 0.5352 MB / 314.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.00029988 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable openTank1.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank1.m in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.m in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.703994333744049]