Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001324/0.001324, allocations: 113.2 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.001462/0.001462, allocations: 213.8 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 47.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2551, allocations: 53.37 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006117/0.2612, allocations: 4.427 MB / 435.6 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.264, allocations: 1.254 MB / 436.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/0.2643, allocations: 11.94 kB / 436.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004384/0.2647, allocations: 130.8 kB / 437 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000622/0.2653, allocations: 269.7 kB / 437.2 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.2658, allocations: 207.6 kB / 437.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.2668, allocations: 0.9259 MB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/0.2671, allocations: 174 kB / 438.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005003/0.2676, allocations: 374.7 kB / 438.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005062/0.2681, allocations: 406.3 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.2683, allocations: 76 kB / 439.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.2684, allocations: 80 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.2686, allocations: 175.4 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004197/0.269, allocations: 422 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.27, allocations: 0.9255 MB / 440.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.27, allocations: 0 / 440.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.27, allocations: 0 / 440.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.27, allocations: 0 / 440.9 MB, free: 13.03 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001972/0.272, allocations: 1.061 MB / 442 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.272, allocations: 12.03 kB / 442 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.2722, allocations: 95.7 kB / 442.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000238/0.2724, allocations: 96.36 kB / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000788/0.2732, allocations: 431.2 kB / 442.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.2734, allocations: 148.4 kB / 442.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.492e-05/0.2735, allocations: 48.33 kB / 442.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.2747, allocations: 0.667 MB / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.2747, allocations: 4 kB / 443.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/0.2747, allocations: 23.94 kB / 443.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.2747, allocations: 16 kB / 443.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.2758, allocations: 451.7 kB / 444 MB, free: 9.832 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.003188/0.279, allocations: 1.888 MB / 445.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.2809, allocations: 0.5812 MB / 446.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.2814, allocations: 234 kB / 446.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.633e-05/0.2815, allocations: 16.42 kB / 446.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.2815, allocations: 43 kB / 446.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.224e-06/0.2815, allocations: 0 / 446.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005069/0.2866, allocations: 1.251 MB / 448 MB, free: 5.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003236/0.2869, allocations: 0.5605 MB / 448.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006783/0.2876, allocations: 0.5382 MB / 449.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.2876, allocations: 37.7 kB / 449.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.2879, allocations: 297.1 kB / 449.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.2881, allocations: 190.3 kB / 449.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.2883, allocations: 114.3 kB / 449.7 MB, free: 3.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.2885, allocations: 378.7 kB / 450.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005495/0.289, allocations: 193.2 kB / 450.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007435/0.2898, allocations: 417.2 kB / 450.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.2909, allocations: 491.5 kB / 451.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.2909, allocations: 4 kB / 451.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002387/0.2933, allocations: 0.8017 MB / 451.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/0.2933, allocations: 33.7 kB / 452 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.2933, allocations: 3.984 kB / 452 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.2944, allocations: 226.3 kB / 452.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007462/0.2951, allocations: 131.8 kB / 452.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007898/0.303, allocations: 5.296 MB / 457.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007056/0.3037, allocations: 79.56 kB / 457.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.3038, allocations: 24.11 kB / 457.7 MB, free: 11.26 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003293/0.3041, allocations: 201.7 kB / 457.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3042, allocations: 75.52 kB / 458 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.3066, allocations: 0.7641 MB / 458.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.3066, allocations: 15.88 kB / 458.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.3066, allocations: 0 / 458.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002269/0.3088, allocations: 1.025 MB / 459.8 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.3121, allocations: 1.472 MB / 461.3 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3121, allocations: 7.984 kB / 461.3 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000778/0.3129, allocations: 127.8 kB / 461.4 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008579/0.3138, allocations: 173.5 kB / 461.6 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.889e-05/0.3138, allocations: 15.98 kB / 461.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005448/0.3193, allocations: 3.588 MB / 465.2 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3193, allocations: 3.938 kB / 465.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.3222, allocations: 1.065 MB / 466.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003109/0.3225, allocations: 127.4 kB / 466.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.051e-05/0.3226, allocations: 16 kB / 466.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.3231, allocations: 48.14 kB / 466.4 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.3232, allocations: 40.41 kB / 466.5 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.3232, allocations: 19.98 kB / 466.5 MB, free: 2.031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004889/0.3237, allocations: 382.8 kB / 466.9 MB, free: 1.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3237, allocations: 0 / 466.9 MB, free: 1.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007569/0.3245, allocations: 223.8 kB / 467.1 MB, free: 1.441 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003182/0.3277, allocations: 1.629 MB / 468.7 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.33, allocations: 1.013 MB / 469.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.33, allocations: 0 / 469.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000996/0.331, allocations: 0.5158 MB / 470.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008012/0.3318, allocations: 178.2 kB / 470.4 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.3426, allocations: 6.063 MB / 476.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.3432, allocations: 0.8918 MB / 477.4 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003748/0.3436, allocations: 85.11 kB / 477.5 MB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.3439, allocations: 227.4 kB / 477.7 MB, free: 6.582 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3439, allocations: 0 / 477.7 MB, free: 6.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0629/0.4068, allocations: 20.74 MB / 498.4 MB, free: 2.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/14.73, allocations: 6.75 kB / 498.4 MB, free: 2.168 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_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_PumpAndValve.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable heatCapacitor.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable heatCapacitor.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! Error: Could not read variable pipe.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable pipe.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! Error: Could not read variable speed.phi in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.22009402600088]