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.001659/0.001659, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.00204/0.00204, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.431/1.431, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001462/0.001462, allocations: 47.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09455, allocations: 53.33 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.1811/0.2757, allocations: 4.863 MB / 431.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.278, allocations: 1.386 MB / 432.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.2783, allocations: 16.12 kB / 432.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003475/0.2786, allocations: 158.1 kB / 432.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005449/0.2792, allocations: 338.9 kB / 433.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003436/0.2795, allocations: 221.3 kB / 433.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000784/0.2803, allocations: 1.021 MB / 434.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002518/0.2805, allocations: 200.2 kB / 434.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004254/0.281, allocations: 422.2 kB / 434.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000418/0.2814, allocations: 451.1 kB / 435.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.2815, allocations: 91.97 kB / 435.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.2817, allocations: 90.19 kB / 435.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.2818, allocations: 194.4 kB / 435.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003578/0.2821, allocations: 472.4 kB / 436.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.2832, allocations: 1.083 MB / 437.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2832, allocations: 0.6562 kB / 437.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2832, allocations: 0 / 437.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.2832, allocations: 4 kB / 437.3 MB, free: 6.34 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.001988/0.2852, allocations: 1.238 MB / 438.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2852, allocations: 11.28 kB / 438.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001517/0.2854, allocations: 113.5 kB / 438.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.2856, allocations: 101.7 kB / 438.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006953/0.2862, allocations: 0.5296 MB / 439.2 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.2864, allocations: 100.7 kB / 439.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.2865, allocations: 56.12 kB / 439.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.2878, allocations: 0.8096 MB / 440.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.2878, allocations: 4 kB / 440.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.225e-05/0.2878, allocations: 25.16 kB / 440.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.2879, allocations: 13 kB / 440.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2891, allocations: 0.51 MB / 440.8 MB, free: 4.137 MB / 350.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.002944/0.292, allocations: 2.172 MB / 442.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.2933, allocations: 0.493 MB / 443.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005491/0.2939, allocations: 225.5 kB / 443.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.445e-05/0.2939, allocations: 14.11 kB / 443.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007091/0.2946, allocations: 331.1 kB / 444 MB, free: 2.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.485e-06/0.2946, allocations: 0 / 444 MB, free: 2.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004819/0.2994, allocations: 1.474 MB / 445.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.2996, allocations: 0.829 MB / 446.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006743/0.3002, allocations: 0.5953 MB / 446.9 MB, free: 484 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.189e-05/0.3003, allocations: 44.61 kB / 446.9 MB, free: 440 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.3005, allocations: 349.1 kB / 447.3 MB, free: 156 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.3006, allocations: 194 kB / 447.5 MB, free: 4 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003014/0.3009, allocations: 134.5 kB / 447.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.3011, allocations: 376.9 kB / 448 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005944/0.3017, allocations: 215.4 kB / 448.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009128/0.3026, allocations: 0.5163 MB / 448.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.3039, allocations: 0.5669 MB / 449.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3039, allocations: 1.094 kB / 449.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00236/0.3063, allocations: 0.8965 MB / 450.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.533e-05/0.3063, allocations: 60.55 kB / 450.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3063, allocations: 2.281 kB / 450.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007134/0.307, allocations: 216.1 kB / 450.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006249/0.3077, allocations: 118.3 kB / 450.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006822/0.3145, allocations: 4.607 MB / 455.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000852/0.3153, allocations: 86.36 kB / 455.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.3154, allocations: 23.55 kB / 455.2 MB, free: 10.53 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.0003652/0.3157, allocations: 209.8 kB / 455.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3159, allocations: 89.03 kB / 455.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00016/0.316, allocations: 78.41 kB / 455.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.316, allocations: 5.781 kB / 455.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.316, allocations: 3.938 kB / 455.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00216/0.3182, allocations: 1.038 MB / 456.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.321, allocations: 1.547 MB / 458.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.321, allocations: 1.031 kB / 458.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006105/0.3216, allocations: 106.5 kB / 458.3 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005517/0.3222, allocations: 168.1 kB / 458.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.3222, allocations: 13.12 kB / 458.5 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005264/0.3275, allocations: 3.939 MB / 462.4 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3275, allocations: 1.219 kB / 462.4 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.3299, allocations: 1.023 MB / 463.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/0.3302, allocations: 219.4 kB / 463.7 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.3303, allocations: 21.23 kB / 463.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006072/0.3309, allocations: 50.27 kB / 463.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.3311, allocations: 53.16 kB / 463.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.3311, allocations: 18.64 kB / 463.8 MB, free: 4.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005492/0.3317, allocations: 417.4 kB / 464.2 MB, free: 3.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3317, allocations: 0 / 464.2 MB, free: 3.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009004/0.3326, allocations: 253.2 kB / 464.5 MB, free: 3.895 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.002857/0.3354, allocations: 1.597 MB / 466.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.3377, allocations: 0.9973 MB / 467.1 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.3377, allocations: 5.906 kB / 467.1 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.3387, allocations: 0.514 MB / 467.6 MB, free: 1.676 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.3398, allocations: 212.7 kB / 467.8 MB, free: 1.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.3504, allocations: 6.116 MB / 473.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.351, allocations: 0.9161 MB / 474.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003823/0.3513, allocations: 86.64 kB / 474.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.3517, allocations: 264.9 kB / 475.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3517, allocations: 1.375 kB / 475.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08718/0.4389, allocations: 22.94 MB / 498.1 MB, free: 6.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.54, allocations: 3.938 kB / 498.1 MB, free: 6.953 MB / 398.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/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: 15.992890070003341]