Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008804/0.0008804, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007875/0.0007875, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8876/0.8876, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.108e-05/1.241e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003823/0.003835, allocations: 4.369 MB / 328.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.006292, allocations: 1.343 MB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.006616, allocations: 15.88 kB / 330.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003295/0.006946, allocations: 146.6 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005836/0.00753, allocations: 365.1 kB / 330.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003881/0.007918, allocations: 215.5 kB / 331 MB, free: 9.469 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008882/0.008806, allocations: 1.072 MB / 332.1 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003294/0.009135, allocations: 202.3 kB / 332.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008367/0.009972, allocations: 0.6081 MB / 332.9 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.01033, allocations: 331 kB / 333.2 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.619e-05/0.01042, allocations: 88 kB / 333.3 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.01054, allocations: 88 kB / 333.4 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.01064, allocations: 199.3 kB / 333.6 MB, free: 6.887 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/0.01089, allocations: 339.3 kB / 333.9 MB, free: 6.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008342/0.01173, allocations: 1.114 MB / 335 MB, free: 5.438 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.01173, allocations: 4 kB / 335 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.01173, allocations: 0 / 335 MB, free: 5.434 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.01175, allocations: 0 / 335 MB, free: 5.434 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001589/0.01334, allocations: 1.164 MB / 336.2 MB, free: 4.223 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.01338, allocations: 8.031 kB / 336.2 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.01352, allocations: 115.9 kB / 336.3 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.01365, allocations: 104.4 kB / 336.4 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008818/0.01453, allocations: 474.5 kB / 336.9 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.01465, allocations: 152.7 kB / 337 MB, free: 3.324 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-05/0.01471, allocations: 56.38 kB / 337.1 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.01581, allocations: 1.562 MB / 338.6 MB, free: 1.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.01583, allocations: 4.141 kB / 338.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.291e-05/0.01587, allocations: 31.94 kB / 338.7 MB, free: 1.383 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.01588, allocations: 15.98 kB / 338.7 MB, free: 1.367 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007061/0.01659, allocations: 0.5047 MB / 339.2 MB, free: 0.8594 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.01875, allocations: 1.758 MB / 340.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008158/0.01957, allocations: 494.1 kB / 341.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.01991, allocations: 238.2 kB / 341.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.01995, allocations: 12.5 kB / 341.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005133/0.02047, allocations: 326.1 kB / 342 MB, free: 13.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.354e-06/0.02047, allocations: 0 / 342 MB, free: 13.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003/0.02347, allocations: 1.326 MB / 343.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002384/0.02371, allocations: 0.8232 MB / 344.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.02417, allocations: 0.5901 MB / 344.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.02421, allocations: 45.7 kB / 344.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.02439, allocations: 353.1 kB / 345.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.02451, allocations: 194.3 kB / 345.3 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.02464, allocations: 130.3 kB / 345.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.02475, allocations: 378.8 kB / 345.8 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.0251, allocations: 264.6 kB / 346.1 MB, free: 9.602 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/0.02582, allocations: 1.337 MB / 347.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.02649, allocations: 0.5602 MB / 348 MB, free: 7.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.02649, allocations: 0 / 348 MB, free: 7.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001208/0.0277, allocations: 0.9465 MB / 348.9 MB, free: 6.359 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/0.02774, allocations: 63.41 kB / 349 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.02775, allocations: 7.984 kB / 349 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004125/0.02816, allocations: 217.5 kB / 349.2 MB, free: 6.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.02847, allocations: 115.8 kB / 349.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/0.0324, allocations: 4.331 MB / 353.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.03274, allocations: 91.67 kB / 353.7 MB, free: 1.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.03277, allocations: 23.94 kB / 353.8 MB, free: 1.273 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002022/0.03297, allocations: 209.7 kB / 354 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.751e-05/0.03304, allocations: 79.53 kB / 354 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.637e-05/0.03312, allocations: 86.78 kB / 354.1 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.03312, allocations: 4 kB / 354.1 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.03312, allocations: 0 / 354.1 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001123/0.03425, allocations: 1.053 MB / 355.2 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.03574, allocations: 1.379 MB / 356.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.03574, allocations: 0 / 356.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.03604, allocations: 107.8 kB / 356.7 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002904/0.03633, allocations: 169.7 kB / 356.8 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.03635, allocations: 19.92 kB / 356.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002892/0.03924, allocations: 3.695 MB / 360.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.03925, allocations: 4.125 kB / 360.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.04052, allocations: 1.022 MB / 361.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.04071, allocations: 147.3 kB / 361.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.04076, allocations: 12 kB / 361.7 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.04105, allocations: 43.95 kB / 361.8 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.04115, allocations: 56.39 kB / 361.8 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.04117, allocations: 16 kB / 361.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003036/0.04148, allocations: 415.1 kB / 362.2 MB, free: 8.336 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04148, allocations: 4.062 kB / 362.2 MB, free: 8.332 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004693/0.04195, allocations: 259.7 kB / 362.5 MB, free: 8.078 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001499/0.04345, allocations: 1.59 MB / 364.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.04484, allocations: 1.029 MB / 365.1 MB, free: 5.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.04484, allocations: 4.5 kB / 365.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.04535, allocations: 0.5273 MB / 365.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.04588, allocations: 219.3 kB / 365.9 MB, free: 4.582 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006527/0.05241, allocations: 6.328 MB / 372.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.0526, allocations: 324.3 kB / 372.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.05281, allocations: 89.2 kB / 372.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.05304, allocations: 264.3 kB / 372.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of SimCode: time 8.11e-07/0.05304, allocations: 0 / 372.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.09266, allocations: 24.94 MB / 397.8 MB, free: 4.863 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.199, allocations: 12 kB / 397.8 MB, free: 4.852 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable speed.phi in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.967707835137844]