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.00166/0.00166, allocations: 118.6 kB / 17.79 MB, free: 5.25 MB / 14.72 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.001943/0.001943, allocations: 194.8 kB / 20.73 MB, free: 2.312 MB / 14.72 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 1.498/1.498, allocations: 225.6 MB / 249.1 MB, free: 3.578 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001492/0.001492, allocations: 56 kB / 365.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09779/0.09929, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006329/0.1056, allocations: 4.857 MB / 422.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.1084, allocations: 1.363 MB / 424 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003297/0.1087, allocations: 11.94 kB / 424 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004526/0.1092, allocations: 162.7 kB / 424.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007167/0.1099, allocations: 341.4 kB / 424.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.1103, allocations: 219.6 kB / 424.7 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.1115, allocations: 1.019 MB / 425.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003547/0.1118, allocations: 202 kB / 425.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005315/0.1124, allocations: 418.6 kB / 426.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000542/0.1129, allocations: 454.1 kB / 426.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.1131, allocations: 88 kB / 426.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.1132, allocations: 88 kB / 426.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.1134, allocations: 191.3 kB / 427.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004645/0.1139, allocations: 473.9 kB / 427.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.1151, allocations: 1.082 MB / 428.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1151, allocations: 3.984 kB / 428.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1151, allocations: 4 kB / 428.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1151, allocations: 0 / 428.7 MB, free: 1.695 MB / 350.1 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.002297/0.1174, allocations: 1.239 MB / 429.9 MB, free: 400 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1174, allocations: 8.031 kB / 429.9 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/0.1176, allocations: 108 kB / 430 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.1178, allocations: 112.3 kB / 430.2 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008705/0.1186, allocations: 0.5284 MB / 430.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.1188, allocations: 97.28 kB / 430.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.867e-05/0.1189, allocations: 56.36 kB / 430.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.1204, allocations: 0.8088 MB / 431.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.1204, allocations: 3.938 kB / 431.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.829e-05/0.1204, allocations: 27.98 kB / 431.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1205, allocations: 12 kB / 431.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.1218, allocations: 0.5125 MB / 432.2 MB, free: 13.96 MB / 366.1 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.003534/0.1253, allocations: 2.179 MB / 434.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.1267, allocations: 498.6 kB / 434.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006155/0.1273, allocations: 230.4 kB / 435.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.475e-05/0.1273, allocations: 13.66 kB / 435.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007852/0.1281, allocations: 330.9 kB / 435.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.274e-06/0.1281, allocations: 0 / 435.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.005166/0.1333, allocations: 1.47 MB / 436.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004951/0.1338, allocations: 0.831 MB / 437.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007631/0.1345, allocations: 0.5901 MB / 438.3 MB, free: 7.418 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.168e-05/0.1346, allocations: 45.7 kB / 438.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/0.1349, allocations: 353.1 kB / 438.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.1351, allocations: 190.3 kB / 438.9 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.1353, allocations: 134.2 kB / 439 MB, free: 6.691 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.1355, allocations: 378.8 kB / 439.4 MB, free: 6.312 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006159/0.1362, allocations: 217 kB / 439.6 MB, free: 6.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.1371, allocations: 0.513 MB / 440.1 MB, free: 5.465 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.1384, allocations: 0.5653 MB / 440.7 MB, free: 4.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.1384, allocations: 4 kB / 440.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002452/0.1409, allocations: 0.8938 MB / 441.6 MB, free: 3.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.147e-05/0.1409, allocations: 61.75 kB / 441.6 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1409, allocations: 4 kB / 441.6 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007691/0.1417, allocations: 221.5 kB / 441.9 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006294/0.1423, allocations: 115.8 kB / 442 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1752/0.3175, allocations: 4.585 MB / 446.6 MB, free: 28.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008494/0.3183, allocations: 86.7 kB / 446.6 MB, free: 28.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.3184, allocations: 26.23 kB / 446.7 MB, free: 28.93 MB / 366.1 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.0002928/0.3187, allocations: 212.3 kB / 446.9 MB, free: 28.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3188, allocations: 80.34 kB / 447 MB, free: 28.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.3189, allocations: 81.2 kB / 447 MB, free: 28.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3189, allocations: 8.859 kB / 447 MB, free: 28.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3189, allocations: 0 / 447 MB, free: 28.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001844/0.3208, allocations: 1.048 MB / 448.1 MB, free: 28.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.3231, allocations: 1.534 MB / 449.6 MB, free: 27.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3231, allocations: 1 kB / 449.6 MB, free: 27.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.3237, allocations: 112 kB / 449.7 MB, free: 27.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005037/0.3242, allocations: 166.1 kB / 449.9 MB, free: 27.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.3242, allocations: 12.61 kB / 449.9 MB, free: 27.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004059/0.3283, allocations: 3.943 MB / 453.8 MB, free: 25.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3283, allocations: 3.188 kB / 453.9 MB, free: 25.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002215/0.3305, allocations: 1.017 MB / 454.9 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/0.3308, allocations: 219.7 kB / 455.1 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.547e-05/0.3309, allocations: 18.66 kB / 455.1 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/0.3315, allocations: 48.8 kB / 455.2 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3316, allocations: 53.09 kB / 455.2 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/0.3317, allocations: 20.05 kB / 455.2 MB, free: 24.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004698/0.3321, allocations: 422.1 kB / 455.6 MB, free: 24.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3321, allocations: 0 / 455.6 MB, free: 24.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007825/0.3329, allocations: 254.5 kB / 455.9 MB, free: 24.53 MB / 366.1 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.002574/0.3355, allocations: 1.597 MB / 457.5 MB, free: 23.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.3374, allocations: 0.9852 MB / 458.5 MB, free: 22.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.3374, allocations: 6.062 kB / 458.5 MB, free: 22.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009008/0.3383, allocations: 0.5232 MB / 459 MB, free: 22.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008771/0.3392, allocations: 209.9 kB / 459.2 MB, free: 22.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009543/0.3487, allocations: 6.132 MB / 465.3 MB, free: 19.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.3491, allocations: 0.9192 MB / 466.2 MB, free: 18.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004198/0.3496, allocations: 87.22 kB / 466.3 MB, free: 18.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.3499, allocations: 260.6 kB / 466.6 MB, free: 18.48 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3499, allocations: 0 / 466.6 MB, free: 18.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0555/0.4054, allocations: 22.91 MB / 489.5 MB, free: 4.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.52, allocations: 16.72 kB / 489.5 MB, free: 4.637 MB / 366.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/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: 16.039871853776276]