Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001347/0.001347, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001355/0.001355, allocations: 185 kB / 23.72 MB, free: 4.719 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.371/1.371, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 47.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2739, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006016/0.2799, allocations: 4.421 MB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.282, allocations: 1.211 MB / 428.3 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002241/0.2823, allocations: 11.94 kB / 428.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003629/0.2826, allocations: 134.8 kB / 428.4 MB, free: 8.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000512/0.2831, allocations: 273.8 kB / 428.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004254/0.2836, allocations: 199.6 kB / 428.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009936/0.2846, allocations: 0.9297 MB / 429.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.2849, allocations: 168.4 kB / 430 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004432/0.2853, allocations: 382.7 kB / 430.3 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005095/0.2858, allocations: 406.3 kB / 430.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.2859, allocations: 76 kB / 430.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.2861, allocations: 76 kB / 430.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.2862, allocations: 171.4 kB / 431 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.2866, allocations: 422 kB / 431.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009517/0.2876, allocations: 0.9115 MB / 432.4 MB, free: 4.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2876, allocations: 4 kB / 432.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2876, allocations: 0 / 432.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.2876, allocations: 0 / 432.4 MB, free: 4.812 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002035/0.2896, allocations: 1.061 MB / 433.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2897, allocations: 12.03 kB / 433.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001432/0.2898, allocations: 95.59 kB / 433.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.2899, allocations: 96.42 kB / 433.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007424/0.2907, allocations: 423.3 kB / 434 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.2909, allocations: 152.4 kB / 434.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.228e-05/0.2909, allocations: 48.38 kB / 434.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.2921, allocations: 0.6591 MB / 434.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.2921, allocations: 0 / 434.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.492e-05/0.2922, allocations: 24 kB / 434.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.2922, allocations: 8 kB / 434.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.2933, allocations: 455.7 kB / 435.4 MB, free: 1.625 MB / 334.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.003132/0.2964, allocations: 1.9 MB / 437.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.2983, allocations: 0.5838 MB / 437.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005575/0.2989, allocations: 237.3 kB / 438.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.383e-05/0.2989, allocations: 12.41 kB / 438.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.299, allocations: 47 kB / 438.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.533e-06/0.299, allocations: 4 kB / 438.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.004989/0.304, allocations: 1.239 MB / 439.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003072/0.3043, allocations: 0.5683 MB / 440 MB, free: 12.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006697/0.305, allocations: 0.5343 MB / 440.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.794e-05/0.305, allocations: 45.64 kB / 440.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.3053, allocations: 289.1 kB / 440.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.3054, allocations: 202.2 kB / 441 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.3056, allocations: 114.3 kB / 441.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.3058, allocations: 374.7 kB / 441.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005135/0.3064, allocations: 193.2 kB / 441.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007183/0.3071, allocations: 417.2 kB / 442.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.3081, allocations: 483.5 kB / 442.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3081, allocations: 8 kB / 442.6 MB, free: 10 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002337/0.3105, allocations: 0.7978 MB / 443.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.3105, allocations: 33.7 kB / 443.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3105, allocations: 8.031 kB / 443.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.3116, allocations: 222.3 kB / 443.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007282/0.3123, allocations: 123.8 kB / 443.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007746/0.32, allocations: 5.31 MB / 449.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006945/0.3207, allocations: 83.58 kB / 449.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.3208, allocations: 16 kB / 449.2 MB, free: 3.035 MB / 350.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.0003082/0.3211, allocations: 197.8 kB / 449.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.3212, allocations: 71.58 kB / 449.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/0.3235, allocations: 0.768 MB / 450.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.3235, allocations: 7.938 kB / 450.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.3235, allocations: 0 / 450.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00226/0.3258, allocations: 1.037 MB / 451.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.329, allocations: 1.468 MB / 452.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.329, allocations: 0 / 452.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000774/0.3298, allocations: 135.8 kB / 452.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008571/0.3307, allocations: 173.7 kB / 453 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.676e-05/0.3307, allocations: 12 kB / 453 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005471/0.3362, allocations: 3.6 MB / 456.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3362, allocations: 3.938 kB / 456.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/0.339, allocations: 1.065 MB / 457.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003235/0.3394, allocations: 131.4 kB / 457.8 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.692e-05/0.3395, allocations: 12 kB / 457.8 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3399, allocations: 39.91 kB / 457.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3401, allocations: 52.41 kB / 457.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.3401, allocations: 12 kB / 457.9 MB, free: 9.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004947/0.3406, allocations: 386.8 kB / 458.3 MB, free: 9.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3406, allocations: 0 / 458.3 MB, free: 9.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007478/0.3413, allocations: 223.8 kB / 458.5 MB, free: 9.215 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.003177/0.3445, allocations: 1.621 MB / 460.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.3468, allocations: 1.005 MB / 461.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3468, allocations: 4 kB / 461.1 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.3479, allocations: 0.5196 MB / 461.7 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000816/0.3487, allocations: 186.7 kB / 461.9 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.3594, allocations: 6.033 MB / 467.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.3599, allocations: 0.8917 MB / 468.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003317/0.3602, allocations: 85.12 kB / 468.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/0.3605, allocations: 231.4 kB / 469.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3605, allocations: 0 / 469.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06636/0.4269, allocations: 20.73 MB / 489.8 MB, free: 9.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/14.91, allocations: 12 kB / 489.8 MB, free: 9.98 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable heatCapacitor.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! Error: Could not read variable pipe.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable pipe.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! Error: Could not read variable speed.phi in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.367315472001792]