Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.0009875/0.0009875, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001024/0.001024, allocations: 157 kB / 23.93 MB, free: 0.6289 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.94/0.94, allocations: 173.3 MB / 200.4 MB, free: 9.441 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.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.466e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004086/0.004111, allocations: 4.343 MB / 322.8 MB, free: 1.988 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.006475, allocations: 1.312 MB / 324.1 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002739/0.006749, allocations: 11.88 kB / 324.1 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.007088, allocations: 150.7 kB / 324.2 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005163/0.007605, allocations: 365 kB / 324.6 MB, free: 152 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003829/0.007987, allocations: 223.6 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007327/0.00872, allocations: 1.064 MB / 325.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002807/0.009001, allocations: 202.2 kB / 326.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005334/0.009534, allocations: 0.5965 MB / 326.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.009828, allocations: 327.1 kB / 327 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.799e-05/0.009916, allocations: 88 kB / 327.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.28e-05/0.009998, allocations: 88 kB / 327.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.01011, allocations: 203.3 kB / 327.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.01033, allocations: 339.3 kB / 327.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007724/0.0111, allocations: 1.125 MB / 328.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.01111, allocations: 0 / 328.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.01111, allocations: 0 / 328.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.01112, allocations: 0 / 328.8 MB, free: 11.9 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.001466/0.01258, allocations: 1.152 MB / 330 MB, free: 10.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.01263, allocations: 12.91 kB / 330 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.01277, allocations: 111.9 kB / 330.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.0129, allocations: 104.4 kB / 330.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008783/0.01378, allocations: 470.6 kB / 330.7 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.01391, allocations: 164.5 kB / 330.8 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.01397, allocations: 52.38 kB / 330.9 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.01505, allocations: 1.562 MB / 332.4 MB, free: 7.898 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.01507, allocations: 8.172 kB / 332.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.358e-05/0.01511, allocations: 27.94 kB / 332.5 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.01512, allocations: 12 kB / 332.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007429/0.01586, allocations: 0.5048 MB / 333 MB, free: 7.348 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.00226/0.01812, allocations: 1.766 MB / 334.7 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008028/0.01893, allocations: 0.4942 MB / 335.2 MB, free: 4.984 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000337/0.01926, allocations: 226.2 kB / 335.5 MB, free: 4.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.0193, allocations: 12.5 kB / 335.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005553/0.01985, allocations: 322.2 kB / 335.8 MB, free: 4.418 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 3.066e-06/0.01986, allocations: 0 / 335.8 MB, free: 4.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.003357/0.02321, allocations: 1.33 MB / 337.1 MB, free: 3.074 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002931/0.02351, allocations: 0.8232 MB / 337.9 MB, free: 2.055 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.02405, allocations: 0.594 MB / 338.5 MB, free: 1.453 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.852e-05/0.0241, allocations: 41.64 kB / 338.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.0243, allocations: 349.1 kB / 338.9 MB, free: 1.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.02441, allocations: 198.3 kB / 339.1 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.02456, allocations: 134.3 kB / 339.2 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.0247, allocations: 374.8 kB / 339.6 MB, free: 360 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.02507, allocations: 268.5 kB / 339.9 MB, free: 80 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007867/0.02585, allocations: 1.333 MB / 341.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.02661, allocations: 0.5642 MB / 341.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.02661, allocations: 0 / 341.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001414/0.02802, allocations: 0.9504 MB / 342.7 MB, free: 12.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.765e-05/0.02807, allocations: 55.41 kB / 342.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.02808, allocations: 4 kB / 342.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004726/0.02856, allocations: 229.4 kB / 343 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.02889, allocations: 111.9 kB / 343.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004108/0.033, allocations: 4.338 MB / 347.4 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.0334, allocations: 87.58 kB / 347.5 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.03343, allocations: 27.98 kB / 347.6 MB, free: 7.738 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.0002317/0.03367, allocations: 213.3 kB / 347.8 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.226e-05/0.03374, allocations: 79.53 kB / 347.8 MB, free: 7.445 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.801e-05/0.03382, allocations: 82.8 kB / 347.9 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.03382, allocations: 4 kB / 347.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.03382, allocations: 0 / 347.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001174/0.035, allocations: 1.049 MB / 349 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.03659, allocations: 1.382 MB / 350.4 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.0366, allocations: 0 / 350.4 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.0369, allocations: 107.8 kB / 350.5 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002971/0.0372, allocations: 173.5 kB / 350.6 MB, free: 4.473 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.03722, allocations: 12 kB / 350.6 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002931/0.04015, allocations: 3.698 MB / 354.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.04015, allocations: 0 / 354.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.04146, allocations: 1.022 MB / 355.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.04166, allocations: 143.3 kB / 355.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.32e-05/0.04171, allocations: 16.19 kB / 355.5 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.042, allocations: 43.95 kB / 355.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.04212, allocations: 60.44 kB / 355.6 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.04214, allocations: 19.88 kB / 355.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003413/0.04248, allocations: 423.1 kB / 356.1 MB, free: 14.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04248, allocations: 0 / 356.1 MB, free: 14.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005227/0.04301, allocations: 255.7 kB / 356.3 MB, free: 14.55 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.001518/0.04452, allocations: 1.59 MB / 357.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.0457, allocations: 1.025 MB / 358.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.0457, allocations: 0 / 358.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005192/0.04622, allocations: 0.5355 MB / 359.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005639/0.04679, allocations: 215.3 kB / 359.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006476/0.05326, allocations: 6.324 MB / 366 MB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.05348, allocations: 324.3 kB / 366.3 MB, free: 4.176 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002285/0.0537, allocations: 89.2 kB / 366.4 MB, free: 4.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.05394, allocations: 264.4 kB / 366.7 MB, free: 3.832 MB / 330.7 MB Notification: Performance of SimCode: time 7.12e-07/0.05394, allocations: 0 / 366.7 MB, free: 3.832 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03728/0.09122, allocations: 24.9 MB / 391.6 MB, free: 11.37 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.267/8.358, allocations: 8 kB / 391.6 MB, free: 11.36 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.224197970703244]