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.001842/0.001842, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001517/0.001517, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.001516/0.001516, allocations: 51.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2313, allocations: 53.36 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006348/0.2377, allocations: 4.901 MB / 436 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.2402, allocations: 1.39 MB / 437.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.2405, allocations: 15.94 kB / 437.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003809/0.2409, allocations: 154.7 kB / 437.6 MB, free: 408 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006539/0.2415, allocations: 353.4 kB / 437.9 MB, free: 52 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.242, allocations: 207.7 kB / 438.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.2431, allocations: 1.027 MB / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/0.2435, allocations: 210.4 kB / 439.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005831/0.2441, allocations: 426.5 kB / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005904/0.2447, allocations: 450.1 kB / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.2448, allocations: 88 kB / 440.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.2449, allocations: 92 kB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.2451, allocations: 195.3 kB / 440.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004603/0.2456, allocations: 477.8 kB / 441.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.2468, allocations: 1.078 MB / 442.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2468, allocations: 0 / 442.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2468, allocations: 0 / 442.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.2468, allocations: 0 / 442.1 MB, free: 11.82 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.002347/0.2491, allocations: 1.172 MB / 443.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2492, allocations: 12.03 kB / 443.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.2493, allocations: 108 kB / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.2495, allocations: 108.3 kB / 443.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008981/0.2504, allocations: 463.3 kB / 444 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.2506, allocations: 156.7 kB / 444.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-05/0.2507, allocations: 52.38 kB / 444.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.2522, allocations: 0.8094 MB / 445 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.2522, allocations: 0 / 445 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.796e-05/0.2523, allocations: 32 kB / 445 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.2523, allocations: 12 kB / 445 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.2535, allocations: 0.5048 MB / 445.5 MB, free: 8.199 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.003612/0.2572, allocations: 2.095 MB / 447.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.2585, allocations: 0.4983 MB / 448.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006447/0.2591, allocations: 226.2 kB / 448.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.61e-05/0.2592, allocations: 16.48 kB / 448.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007623/0.2599, allocations: 330 kB / 448.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.2599, allocations: 0 / 448.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.0052/0.2651, allocations: 1.322 MB / 450 MB, free: 3.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005539/0.2657, allocations: 0.8271 MB / 450.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008925/0.2666, allocations: 0.5901 MB / 451.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.2667, allocations: 41.7 kB / 451.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.267, allocations: 349.1 kB / 451.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.2672, allocations: 202.2 kB / 452 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.2675, allocations: 130.3 kB / 452.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.2677, allocations: 378.8 kB / 452.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006048/0.2683, allocations: 209.2 kB / 452.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009259/0.2692, allocations: 0.5217 MB / 453.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.2705, allocations: 0.5679 MB / 453.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2705, allocations: 0 / 453.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002423/0.2729, allocations: 0.8924 MB / 454.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.48e-05/0.273, allocations: 63.39 kB / 454.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.273, allocations: 4 kB / 454.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000779/0.2738, allocations: 217.6 kB / 455 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006667/0.2745, allocations: 119.8 kB / 455.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007024/0.2815, allocations: 4.385 MB / 459.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008225/0.2823, allocations: 83.58 kB / 459.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.2824, allocations: 27.98 kB / 459.6 MB, free: 9.316 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.000379/0.2827, allocations: 207.4 kB / 459.8 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.2829, allocations: 91.45 kB / 459.9 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.283, allocations: 74.86 kB / 459.9 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.283, allocations: 16 kB / 460 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.283, allocations: 0 / 460 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002223/0.2853, allocations: 1.045 MB / 461 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002908/0.2882, allocations: 1.518 MB / 462.5 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2882, allocations: 4 kB / 462.5 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006566/0.2888, allocations: 99.92 kB / 462.6 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005636/0.2894, allocations: 174 kB / 462.8 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.2894, allocations: 12 kB / 462.8 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005456/0.2949, allocations: 3.73 MB / 466.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2949, allocations: 3.984 kB / 466.5 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.2975, allocations: 1.014 MB / 467.6 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004132/0.2979, allocations: 139.5 kB / 467.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.298, allocations: 19.98 kB / 467.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.2986, allocations: 47.95 kB / 467.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.2988, allocations: 56.41 kB / 467.8 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.913e-05/0.2988, allocations: 15.98 kB / 467.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005955/0.2994, allocations: 419.1 kB / 468.2 MB, free: 216 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2994, allocations: 0 / 468.2 MB, free: 216 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009381/0.3003, allocations: 255.9 kB / 468.5 MB, free: 15.96 MB / 382.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.002981/0.3033, allocations: 1.597 MB / 470.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.3055, allocations: 0.9869 MB / 471.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.3055, allocations: 4.062 kB / 471.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.3066, allocations: 0.5195 MB / 471.6 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.3078, allocations: 211 kB / 471.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.3188, allocations: 6.12 MB / 477.9 MB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006037/0.3194, allocations: 0.9199 MB / 478.8 MB, free: 5.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003957/0.3198, allocations: 89.2 kB / 478.9 MB, free: 5.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.3202, allocations: 263.3 kB / 479.2 MB, free: 4.969 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3202, allocations: 0 / 479.2 MB, free: 4.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06771/0.3879, allocations: 23.4 MB / 0.4908 GB, free: 13.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.59, allocations: 7.188 kB / 0.4908 GB, free: 13.94 MB / 414.1 MB " [Timeout remaining time 645] (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: 17.10469061999902]