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.00182/0.00182, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002289/0.002289, allocations: 215.7 kB / 23.73 MB, free: 4.164 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001615/0.001615, allocations: 51.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2508, allocations: 53.37 MB / 431.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005841/0.2567, allocations: 3.966 MB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.259, allocations: 1.195 MB / 436.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002701/0.2593, allocations: 11.94 kB / 436.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004058/0.2597, allocations: 130.9 kB / 436.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005958/0.2603, allocations: 269.7 kB / 436.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.2608, allocations: 199.7 kB / 436.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.2618, allocations: 0.9329 MB / 437.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002944/0.2621, allocations: 165.1 kB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005003/0.2626, allocations: 374.6 kB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004756/0.2631, allocations: 354.3 kB / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.2632, allocations: 76 kB / 438.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.2634, allocations: 83.94 kB / 438.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.2635, allocations: 167.4 kB / 439 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003942/0.2639, allocations: 346.6 kB / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009998/0.2649, allocations: 0.9454 MB / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2649, allocations: 0 / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2649, allocations: 0 / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2649, allocations: 0 / 440.2 MB, free: 13.47 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.002094/0.267, allocations: 1.057 MB / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.2671, allocations: 12.03 kB / 441.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.2673, allocations: 95.69 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002624/0.2675, allocations: 96.41 kB / 441.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008819/0.2684, allocations: 427.2 kB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.2686, allocations: 148.4 kB / 442.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.779e-05/0.2687, allocations: 52.33 kB / 442.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.2703, allocations: 1.177 MB / 443.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.2703, allocations: 0 / 443.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.902e-05/0.2704, allocations: 24 kB / 443.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2704, allocations: 12 kB / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.2715, allocations: 447.7 kB / 443.8 MB, free: 9.652 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.00333/0.2748, allocations: 1.564 MB / 445.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.2767, allocations: 0.5764 MB / 445.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005765/0.2773, allocations: 234 kB / 446.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/0.2774, allocations: 12.44 kB / 446.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.2774, allocations: 39 kB / 446.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.444e-06/0.2774, allocations: 0 / 446.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.004989/0.2824, allocations: 1.246 MB / 447.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003304/0.2827, allocations: 0.5722 MB / 448 MB, free: 5.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007378/0.2835, allocations: 0.5382 MB / 448.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.157e-05/0.2835, allocations: 41.64 kB / 448.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/0.2838, allocations: 293.1 kB / 448.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.284, allocations: 194.3 kB / 449.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.2842, allocations: 114.3 kB / 449.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.2844, allocations: 378.7 kB / 449.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.285, allocations: 218.9 kB / 449.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.2861, allocations: 0.9596 MB / 450.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.2872, allocations: 491.5 kB / 451.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.2872, allocations: 0 / 451.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002379/0.2896, allocations: 0.8307 MB / 452 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.2896, allocations: 33.7 kB / 452.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.2896, allocations: 0 / 452.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.2907, allocations: 226.3 kB / 452.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.2914, allocations: 127.8 kB / 452.4 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007744/0.2991, allocations: 5.254 MB / 457.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006752/0.2998, allocations: 79.62 kB / 457.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.2998, allocations: 20 kB / 457.8 MB, free: 10.75 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.0002963/0.3001, allocations: 193.8 kB / 457.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.3003, allocations: 79.47 kB / 458 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.3026, allocations: 0.7602 MB / 458.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3026, allocations: 11.94 kB / 458.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.3026, allocations: 0 / 458.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002234/0.3048, allocations: 1.033 MB / 459.8 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.308, allocations: 1.367 MB / 461.2 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.308, allocations: 4 kB / 461.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.3088, allocations: 131.8 kB / 461.3 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008161/0.3096, allocations: 177.5 kB / 461.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.3096, allocations: 12 kB / 461.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005315/0.3149, allocations: 3.565 MB / 465.1 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3149, allocations: 3.938 kB / 465.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/0.3177, allocations: 1.065 MB / 466.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003041/0.3181, allocations: 127.4 kB / 466.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.3182, allocations: 12 kB / 466.3 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005256/0.3187, allocations: 47.91 kB / 466.3 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3188, allocations: 40.41 kB / 466.4 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/0.3188, allocations: 16 kB / 466.4 MB, free: 1.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005413/0.3194, allocations: 386.8 kB / 466.8 MB, free: 1.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3194, allocations: 0 / 466.8 MB, free: 1.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007243/0.3201, allocations: 219.8 kB / 467 MB, free: 1.07 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.003331/0.3234, allocations: 1.625 MB / 468.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002424/0.3259, allocations: 1.042 MB / 469.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3259, allocations: 0 / 469.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3269, allocations: 0.5116 MB / 470.2 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008601/0.3278, allocations: 198.5 kB / 470.3 MB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.3392, allocations: 6.136 MB / 476.5 MB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.3396, allocations: 293.9 kB / 476.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004752/0.3401, allocations: 85.12 kB / 476.9 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.3405, allocations: 231.4 kB / 477.1 MB, free: 6.664 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3405, allocations: 0 / 477.1 MB, free: 6.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06529/0.4058, allocations: 22.1 MB / 499.2 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.12, allocations: 4 kB / 499.2 MB, free: 0.9805 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.695926196407527]