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.001329/0.001329, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.00133/0.00133, allocations: 181.7 kB / 23.72 MB, free: 4.699 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.381/1.381, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001568/0.001568, allocations: 47.92 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2376, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006339/0.2439, allocations: 4.887 MB / 427.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002543/0.2465, allocations: 1.358 MB / 428.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.2468, allocations: 11.88 kB / 428.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004388/0.2472, allocations: 158.7 kB / 429 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007433/0.248, allocations: 345.4 kB / 429.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005079/0.2485, allocations: 219.6 kB / 429.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001261/0.2497, allocations: 1.019 MB / 430.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003773/0.2501, allocations: 198.4 kB / 430.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005877/0.2507, allocations: 418.6 kB / 431.2 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006348/0.2513, allocations: 454.1 kB / 431.7 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.2515, allocations: 88 kB / 431.7 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.2517, allocations: 95.94 kB / 431.8 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.2518, allocations: 187.4 kB / 432 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005152/0.2523, allocations: 485.8 kB / 432.5 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.2536, allocations: 1.075 MB / 433.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2536, allocations: 0 / 433.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2536, allocations: 0 / 433.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.2536, allocations: 0 / 433.6 MB, free: 3.57 MB / 334.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.002566/0.2562, allocations: 1.172 MB / 434.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.2562, allocations: 16.03 kB / 434.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.2564, allocations: 108 kB / 434.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.2566, allocations: 100.4 kB / 435 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008816/0.2575, allocations: 467.3 kB / 435.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/0.2577, allocations: 156.7 kB / 435.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.2578, allocations: 60.31 kB / 435.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.2593, allocations: 0.8088 MB / 436.4 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.2593, allocations: 0 / 436.4 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.096e-05/0.2594, allocations: 28 kB / 436.5 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.2594, allocations: 12 kB / 436.5 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.2607, allocations: 0.5125 MB / 437 MB, free: 15.94 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.00374/0.2644, allocations: 2.099 MB / 439.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.2657, allocations: 497.7 kB / 439.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005954/0.2663, allocations: 238.1 kB / 439.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.318e-05/0.2664, allocations: 17.56 kB / 439.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007762/0.2672, allocations: 326.1 kB / 440.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.615e-06/0.2672, allocations: 0 / 440.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005159/0.2723, allocations: 1.318 MB / 441.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004778/0.2728, allocations: 0.8271 MB / 442.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008885/0.2737, allocations: 0.5862 MB / 442.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.2738, allocations: 45.7 kB / 442.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003528/0.2742, allocations: 349.1 kB / 443.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.2744, allocations: 194.3 kB / 443.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.2746, allocations: 134.3 kB / 443.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.2748, allocations: 374.8 kB / 443.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005867/0.2754, allocations: 213.2 kB / 444.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008864/0.2763, allocations: 0.5256 MB / 444.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.2776, allocations: 0.5602 MB / 445.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2776, allocations: 0 / 445.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002368/0.2799, allocations: 0.8924 MB / 446.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.038e-05/0.28, allocations: 59.41 kB / 446.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.28, allocations: 11.97 kB / 446.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007456/0.2808, allocations: 213.5 kB / 446.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006435/0.2814, allocations: 119.9 kB / 446.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007089/0.2885, allocations: 4.385 MB / 450.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008728/0.2894, allocations: 95.56 kB / 451 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.128e-05/0.2894, allocations: 20 kB / 451 MB, free: 1.07 MB / 350.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.0003848/0.2898, allocations: 209.8 kB / 451.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.29, allocations: 87.47 kB / 451.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.2901, allocations: 78.84 kB / 451.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2901, allocations: 4 kB / 451.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2901, allocations: 4 kB / 451.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002255/0.2924, allocations: 1.041 MB / 452.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.2954, allocations: 1.506 MB / 454 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.2954, allocations: 192 / 454 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006391/0.296, allocations: 111.8 kB / 454.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005696/0.2966, allocations: 177.5 kB / 454.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.2966, allocations: 11.98 kB / 454.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005505/0.3021, allocations: 3.737 MB / 458 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3021, allocations: 0 / 458 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.3047, allocations: 1.022 MB / 459 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003969/0.3051, allocations: 143.3 kB / 459.1 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.3052, allocations: 16 kB / 459.2 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006058/0.3058, allocations: 43.95 kB / 459.2 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.306, allocations: 52.41 kB / 459.3 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.306, allocations: 20.05 kB / 459.3 MB, free: 8.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005605/0.3066, allocations: 419.1 kB / 459.7 MB, free: 7.961 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3066, allocations: 0 / 459.7 MB, free: 7.961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008338/0.3074, allocations: 251.8 kB / 459.9 MB, free: 7.715 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.002767/0.3102, allocations: 1.59 MB / 461.5 MB, free: 6.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002178/0.3124, allocations: 0.9863 MB / 462.5 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.3124, allocations: 4 kB / 462.5 MB, free: 5.055 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3134, allocations: 0.5278 MB / 463 MB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009839/0.3144, allocations: 207.1 kB / 463.2 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.3257, allocations: 6.142 MB / 469.4 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005969/0.3263, allocations: 0.916 MB / 470.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000403/0.3267, allocations: 85.22 kB / 470.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.3271, allocations: 255.4 kB / 470.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3271, allocations: 0 / 470.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0674/0.3945, allocations: 23.37 MB / 494 MB, free: 5.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.02/14.41, allocations: 10.22 kB / 494 MB, free: 5.719 MB / 398.1 MB " [Timeout remaining time 645] (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.86316216100022]