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.001677/0.001677, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002012/0.002012, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001586/0.001586, allocations: 44.08 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2379, allocations: 53.38 MB / 431.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005546/0.2435, allocations: 3.966 MB / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.2458, allocations: 1.199 MB / 436.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003356/0.2462, allocations: 11.94 kB / 436.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003936/0.2466, allocations: 130.8 kB / 436.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006425/0.2472, allocations: 269.8 kB / 436.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.2477, allocations: 191.7 kB / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.2488, allocations: 0.9374 MB / 437.8 MB, free: 60 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003301/0.2491, allocations: 169.1 kB / 437.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005749/0.2497, allocations: 382.6 kB / 438.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005137/0.2502, allocations: 398.4 kB / 438.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.2503, allocations: 79.94 kB / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.2505, allocations: 87.98 kB / 438.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.2507, allocations: 171.4 kB / 439 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003651/0.2511, allocations: 342.5 kB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.2521, allocations: 0.9376 MB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2521, allocations: 4 kB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2521, allocations: 0 / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.2521, allocations: 0 / 440.3 MB, free: 13.51 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.002098/0.2542, allocations: 1.061 MB / 441.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2543, allocations: 8.031 kB / 441.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.2544, allocations: 91.7 kB / 441.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.2547, allocations: 96.41 kB / 441.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008568/0.2555, allocations: 439.2 kB / 442 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.2557, allocations: 144.4 kB / 442.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.2558, allocations: 52.33 kB / 442.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.2574, allocations: 1.173 MB / 443.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.2574, allocations: 0 / 443.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.2574, allocations: 16 kB / 443.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.2575, allocations: 12 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2585, allocations: 451.7 kB / 443.8 MB, free: 9.695 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.003304/0.2618, allocations: 1.564 MB / 445.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/0.2638, allocations: 0.5764 MB / 446 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.2644, allocations: 234 kB / 446.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.2644, allocations: 8.438 kB / 446.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.149e-05/0.2645, allocations: 50.98 kB / 446.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.966e-06/0.2645, allocations: 0 / 446.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005101/0.2696, allocations: 1.246 MB / 447.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003868/0.27, allocations: 0.5722 MB / 448.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000831/0.2708, allocations: 0.5382 MB / 448.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.2709, allocations: 37.7 kB / 448.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/0.2712, allocations: 297.1 kB / 448.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.2714, allocations: 190.3 kB / 449.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.2717, allocations: 114.3 kB / 449.2 MB, free: 4.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.2719, allocations: 370.7 kB / 449.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005513/0.2724, allocations: 226.9 kB / 449.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.2735, allocations: 0.9635 MB / 450.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.2746, allocations: 487.6 kB / 451.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.2746, allocations: 0 / 451.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002407/0.277, allocations: 0.8268 MB / 452.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.388e-05/0.2771, allocations: 41.67 kB / 452.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.2771, allocations: 7.984 kB / 452.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.2781, allocations: 218.3 kB / 452.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007561/0.2788, allocations: 127.8 kB / 452.5 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007883/0.2867, allocations: 5.258 MB / 457.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007059/0.2874, allocations: 79.62 kB / 457.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.285e-05/0.2875, allocations: 19.98 kB / 457.8 MB, free: 10.78 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.0003112/0.2878, allocations: 197.7 kB / 458 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.2879, allocations: 75.53 kB / 458.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/0.2903, allocations: 0.7602 MB / 458.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.2903, allocations: 11.92 kB / 458.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2903, allocations: 0 / 458.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002259/0.2925, allocations: 1.033 MB / 459.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.2959, allocations: 1.355 MB / 461.2 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.2959, allocations: 4 kB / 461.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007565/0.2966, allocations: 135.8 kB / 461.4 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008269/0.2975, allocations: 173.5 kB / 461.6 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.2975, allocations: 15.98 kB / 461.6 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005416/0.3029, allocations: 3.561 MB / 465.1 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3029, allocations: 3.938 kB / 465.1 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.3058, allocations: 1.065 MB / 466.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003796/0.3062, allocations: 131.4 kB / 466.3 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.3063, allocations: 15.94 kB / 466.3 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.3068, allocations: 35.91 kB / 466.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.307, allocations: 48.41 kB / 466.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.307, allocations: 15.98 kB / 466.4 MB, free: 1.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005033/0.3075, allocations: 386.8 kB / 466.8 MB, free: 1.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3075, allocations: 0 / 466.8 MB, free: 1.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007784/0.3083, allocations: 219.8 kB / 467 MB, free: 1.109 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.003261/0.3115, allocations: 1.625 MB / 468.7 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002511/0.314, allocations: 1.042 MB / 469.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.314, allocations: 4 kB / 469.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.3151, allocations: 0.5119 MB / 470.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009211/0.316, allocations: 191.9 kB / 470.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.3275, allocations: 6.152 MB / 476.6 MB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.3278, allocations: 293.9 kB / 476.8 MB, free: 7.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000369/0.3282, allocations: 81.12 kB / 476.9 MB, free: 6.926 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/0.3286, allocations: 231.4 kB / 477.1 MB, free: 6.699 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3286, allocations: 0 / 477.1 MB, free: 6.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06357/0.3921, allocations: 22.24 MB / 499.4 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.74, allocations: 7.922 kB / 499.4 MB, free: 0.8594 MB / 398.1 MB " [Timeout remaining time 646] (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: 16.22117978800088]