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.001844/0.001844, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002258/0.002258, allocations: 210.2 kB / 23.73 MB, free: 4.387 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.483/1.483, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.001583/0.001583, allocations: 43.94 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2341, allocations: 53.37 MB / 431.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005883/0.24, allocations: 4.368 MB / 435.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.2426, allocations: 1.328 MB / 436.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.2429, allocations: 15.94 kB / 436.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004021/0.2433, allocations: 154.7 kB / 436.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007052/0.244, allocations: 333.4 kB / 437.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.2445, allocations: 219.6 kB / 437.5 MB, free: 336 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.2456, allocations: 1.025 MB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.2459, allocations: 202.4 kB / 438.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005491/0.2465, allocations: 426.5 kB / 439.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004893/0.247, allocations: 382.2 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.2471, allocations: 88 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.2473, allocations: 88 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.2474, allocations: 195.3 kB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004044/0.2478, allocations: 406.2 kB / 440.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.2489, allocations: 1.086 MB / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2489, allocations: 0 / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2489, allocations: 0 / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.2489, allocations: 0 / 441.3 MB, free: 12.45 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.002224/0.2511, allocations: 1.172 MB / 442.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2512, allocations: 12.03 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001609/0.2513, allocations: 107.9 kB / 442.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.2515, allocations: 104.3 kB / 442.7 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008503/0.2524, allocations: 467.3 kB / 443.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.2526, allocations: 160.6 kB / 443.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.2526, allocations: 56.38 kB / 443.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.2544, allocations: 1.57 MB / 445 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.2544, allocations: 0 / 445 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.284e-05/0.2545, allocations: 24 kB / 445 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.2545, allocations: 12 kB / 445 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.2557, allocations: 0.5009 MB / 445.5 MB, free: 7.883 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.003327/0.2591, allocations: 1.773 MB / 447.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.2603, allocations: 0.4962 MB / 447.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005694/0.2609, allocations: 226.2 kB / 448 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.2609, allocations: 8.5 kB / 448 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007652/0.2617, allocations: 330 kB / 448.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.815e-06/0.2617, allocations: 0 / 448.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.00492/0.2666, allocations: 1.329 MB / 449.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004574/0.2671, allocations: 0.8193 MB / 450.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007977/0.2679, allocations: 0.594 MB / 451.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.45e-05/0.268, allocations: 41.7 kB / 451.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.2683, allocations: 342.2 kB / 451.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.2685, allocations: 202.3 kB / 451.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.2687, allocations: 138.3 kB / 451.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.2689, allocations: 374.8 kB / 452.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000617/0.2695, allocations: 272.6 kB / 452.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.2708, allocations: 1.325 MB / 453.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.2721, allocations: 0.5679 MB / 454.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2721, allocations: 0 / 454.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00246/0.2745, allocations: 0.9465 MB / 455.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.116e-05/0.2746, allocations: 59.41 kB / 455.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.2746, allocations: 0 / 455.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007899/0.2754, allocations: 233.4 kB / 455.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006404/0.276, allocations: 119.8 kB / 455.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006846/0.2829, allocations: 4.343 MB / 460 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008712/0.2838, allocations: 83.58 kB / 460.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.2838, allocations: 23.98 kB / 460.1 MB, free: 8.266 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.0003731/0.2842, allocations: 220.2 kB / 460.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.2843, allocations: 83.47 kB / 460.4 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.2845, allocations: 82.84 kB / 460.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.2845, allocations: 8 kB / 460.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.2845, allocations: 0 / 460.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002141/0.2866, allocations: 1.037 MB / 461.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.2894, allocations: 1.381 MB / 462.9 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2894, allocations: 3.938 kB / 462.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006219/0.29, allocations: 111.9 kB / 463 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005526/0.2906, allocations: 173.5 kB / 463.2 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.2906, allocations: 15.98 kB / 463.2 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005124/0.2958, allocations: 3.69 MB / 466.9 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2958, allocations: 0 / 466.9 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002438/0.2982, allocations: 1.015 MB / 467.9 MB, free: 8 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004057/0.2986, allocations: 143.4 kB / 468 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.2987, allocations: 19.94 kB / 468.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/0.2993, allocations: 52.2 kB / 468.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.2995, allocations: 52.41 kB / 468.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.2995, allocations: 15.98 kB / 468.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005501/0.3001, allocations: 419.1 kB / 468.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3001, allocations: 0 / 468.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008161/0.3009, allocations: 255.8 kB / 468.8 MB, free: 15.07 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.002745/0.3036, allocations: 1.593 MB / 470.4 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.3058, allocations: 1.041 MB / 471.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.3058, allocations: 4 kB / 471.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000999/0.3068, allocations: 0.5122 MB / 472 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009637/0.3078, allocations: 215.4 kB / 472.2 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.3187, allocations: 6.349 MB / 478.5 MB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.3191, allocations: 324.2 kB / 478.9 MB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000412/0.3195, allocations: 89.2 kB / 479 MB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003649/0.3199, allocations: 259.3 kB / 479.2 MB, free: 4.348 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3199, allocations: 0 / 479.2 MB, free: 4.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06606/0.3859, allocations: 24.91 MB / 0.4923 GB, free: 11.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/13.85, allocations: 14.84 kB / 0.4923 GB, free: 11.92 MB / 414.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: 16.490284841973335]