Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008083/0.0008083, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008571/0.0008571, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8948/0.8948, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.628e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004457/0.004484, allocations: 2.579 MB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.006101, allocations: 0.8101 MB / 327.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.006282, allocations: 3.938 kB / 327.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.006572, allocations: 75.36 kB / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003357/0.006907, allocations: 138.8 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.007161, allocations: 95.8 kB / 328.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007062/0.007867, allocations: 454.2 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.008057, allocations: 63.89 kB / 328.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.008423, allocations: 239.5 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.008679, allocations: 143.5 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-05/0.008745, allocations: 32 kB / 329.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.004e-05/0.008805, allocations: 36 kB / 329.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.266e-05/0.008878, allocations: 75.75 kB / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.009039, allocations: 139.7 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005239/0.009563, allocations: 454.6 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.009567, allocations: 4 kB / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.009569, allocations: 0 / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.009581, allocations: 0 / 329.8 MB, free: 10.58 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.001345/0.01093, allocations: 0.6079 MB / 330.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.01097, allocations: 11.98 kB / 330.4 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.01107, allocations: 79.12 kB / 330.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.483e-05/0.01116, allocations: 40.7 kB / 330.5 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.0116, allocations: 249.6 kB / 330.8 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.01173, allocations: 102.2 kB / 330.9 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.01177, allocations: 24.38 kB / 330.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.0124, allocations: 0.6785 MB / 331.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.01243, allocations: 4.172 kB / 331.6 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.01247, allocations: 15.94 kB / 331.6 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.01248, allocations: 12 kB / 331.6 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003625/0.01284, allocations: 205.9 kB / 331.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009724/0.01381, allocations: 0.7162 MB / 332.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.01415, allocations: 247 kB / 332.8 MB, free: 7.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.01428, allocations: 112.8 kB / 332.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.01431, allocations: 7.984 kB / 332.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.01433, allocations: 38.56 kB / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.01434, allocations: 0 / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006572/0.01499, allocations: 411 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.0151, allocations: 312.4 kB / 333.6 MB, free: 6.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.01529, allocations: 288.2 kB / 333.9 MB, free: 6.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.01532, allocations: 29.7 kB / 333.9 MB, free: 6.055 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.525e-05/0.0154, allocations: 176.8 kB / 334.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/0.01547, allocations: 111 kB / 334.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.449e-05/0.01554, allocations: 73.44 kB / 334.3 MB, free: 5.691 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.987e-05/0.01563, allocations: 338.8 kB / 334.6 MB, free: 5.352 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.01577, allocations: 125.7 kB / 334.7 MB, free: 5.223 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.01602, allocations: 499.3 kB / 335.2 MB, free: 4.621 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.0163, allocations: 267.8 kB / 335.5 MB, free: 4.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.0163, allocations: 4 kB / 335.5 MB, free: 4.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003959/0.0167, allocations: 395.5 kB / 335.9 MB, free: 3.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.01672, allocations: 29.7 kB / 335.9 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.01673, allocations: 0 / 335.9 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001138/0.01684, allocations: 40.83 kB / 336 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004544/0.0173, allocations: 159.9 kB / 336.1 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.01949, allocations: 3.01 MB / 339.1 MB, free: 472 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.01963, allocations: 39.8 kB / 339.2 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.01965, allocations: 15.94 kB / 339.2 MB, free: 416 kB / 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.0001185/0.01977, allocations: 149.8 kB / 339.3 MB, free: 256 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.034e-05/0.01981, allocations: 47.75 kB / 339.4 MB, free: 208 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.01985, allocations: 31.09 kB / 339.4 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01985, allocations: 3.984 kB / 339.4 MB, free: 176 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.01986, allocations: 0 / 339.4 MB, free: 176 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004311/0.02029, allocations: 0.6579 MB / 340.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.02056, allocations: 320.4 kB / 340.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.02057, allocations: 0 / 340.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.02114, allocations: 199.8 kB / 340.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.654e-05/0.0212, allocations: 28.78 kB / 340.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.02121, allocations: 4 kB / 340.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.02314, allocations: 2.819 MB / 343.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.02314, allocations: 0 / 343.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004998/0.02364, allocations: 0.5039 MB / 343.9 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-05/0.02372, allocations: 59.77 kB / 344 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.02375, allocations: 20.14 kB / 344 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.02388, allocations: 15.98 kB / 344 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.02394, allocations: 24.05 kB / 344 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.02395, allocations: 11.94 kB / 344.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001257/0.02408, allocations: 203 kB / 344.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02408, allocations: 0 / 344.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002881/0.02437, allocations: 111.9 kB / 344.4 MB, free: 10.81 MB / 314.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.0008856/0.02525, allocations: 1.065 MB / 345.4 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008523/0.0261, allocations: 0.5504 MB / 346 MB, free: 9.129 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.02611, allocations: 4 kB / 346 MB, free: 9.125 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006362/0.02675, allocations: 390.2 kB / 346.4 MB, free: 8.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.02707, allocations: 94.72 kB / 346.5 MB, free: 8.645 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.03031, allocations: 3.419 MB / 349.9 MB, free: 5.086 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.03042, allocations: 177.8 kB / 350 MB, free: 4.891 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.03054, allocations: 34.97 kB / 350.1 MB, free: 4.855 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.03065, allocations: 108.5 kB / 350.2 MB, free: 4.75 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.03065, allocations: 4 kB / 350.2 MB, free: 4.746 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.05529, allocations: 10.97 MB / 361.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.876/7.931, allocations: 13.98 kB / 361.2 MB, free: 10.01 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank1.m in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.m from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.H in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.m in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.m from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.768761419691145]