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.0008228/0.0008228, allocations: 76.08 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001186/0.001186, allocations: 153.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8851/0.8851, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.803e-06/1.803e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.89e-05/2.07e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003623/0.003644, allocations: 3.948 MB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.005441, allocations: 1.18 MB / 323.5 MB, free: 1.199 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002395/0.00568, allocations: 15.88 kB / 323.6 MB, free: 1.184 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.005975, allocations: 122.9 kB / 323.7 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004239/0.006399, allocations: 289.5 kB / 324 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.006741, allocations: 195.6 kB / 324.2 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007583/0.0075, allocations: 0.9682 MB / 325.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.007756, allocations: 161 kB / 325.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004597/0.008216, allocations: 0.534 MB / 325.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.008488, allocations: 303.1 kB / 326.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/0.008563, allocations: 76 kB / 326.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.008637, allocations: 76 kB / 326.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.557e-05/0.008733, allocations: 175.4 kB / 326.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.008928, allocations: 299.3 kB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007045/0.009633, allocations: 0.9502 MB / 327.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.009638, allocations: 0 / 327.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.009639, allocations: 7.938 kB / 327.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.009653, allocations: 3.938 kB / 327.7 MB, free: 13.04 MB / 298.7 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.001337/0.01099, allocations: 1.044 MB / 328.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.01103, allocations: 12.92 kB / 328.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.01115, allocations: 95.66 kB / 328.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.01126, allocations: 92.42 kB / 328.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005533/0.01181, allocations: 434.4 kB / 329.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.01194, allocations: 152.4 kB / 329.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.986e-05/0.012, allocations: 44.38 kB / 329.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.0129, allocations: 1.162 MB / 330.7 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.01292, allocations: 7.984 kB / 330.7 MB, free: 9.715 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.01296, allocations: 23.98 kB / 330.7 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.01297, allocations: 12 kB / 330.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006523/0.01362, allocations: 451.7 kB / 331.2 MB, free: 9.238 MB / 298.7 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.001998/0.01562, allocations: 1.557 MB / 332.7 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.01671, allocations: 0.5727 MB / 333.3 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003382/0.01705, allocations: 230.2 kB / 333.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.01709, allocations: 12.5 kB / 333.6 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.01711, allocations: 47.62 kB / 333.6 MB, free: 6.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.495e-06/0.01712, allocations: 0 / 333.6 MB, free: 6.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.002652/0.01977, allocations: 1.252 MB / 334.9 MB, free: 5.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000188/0.01996, allocations: 0.5683 MB / 335.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.02043, allocations: 0.546 MB / 336 MB, free: 4.207 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.02047, allocations: 37.7 kB / 336 MB, free: 4.164 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.02064, allocations: 289.1 kB / 336.3 MB, free: 3.871 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.02075, allocations: 202.2 kB / 336.5 MB, free: 3.672 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.02087, allocations: 110.3 kB / 336.6 MB, free: 3.559 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.02098, allocations: 370.8 kB / 337 MB, free: 3.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.0213, allocations: 222.8 kB / 337.2 MB, free: 2.965 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005778/0.02188, allocations: 0.9674 MB / 338.1 MB, free: 1.781 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.02253, allocations: 487.8 kB / 338.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.02254, allocations: 3.984 kB / 338.6 MB, free: 1.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001268/0.0238, allocations: 0.8268 MB / 339.4 MB, free: 428 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.02384, allocations: 36.34 kB / 339.5 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.02385, allocations: 4.031 kB / 339.5 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005745/0.02442, allocations: 218.3 kB / 339.7 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000358/0.02478, allocations: 127.8 kB / 339.8 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/0.02946, allocations: 5.254 MB / 345.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.02985, allocations: 83.62 kB / 345.2 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.02988, allocations: 23.92 kB / 345.2 MB, free: 10.32 MB / 314.7 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.0002241/0.03011, allocations: 196.7 kB / 345.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-05/0.03018, allocations: 79.53 kB / 345.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.03147, allocations: 0.7679 MB / 346.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.03147, allocations: 4 kB / 346.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.03147, allocations: 0 / 346.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001295/0.03277, allocations: 1.033 MB / 347.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.03461, allocations: 1.355 MB / 348.6 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.03461, allocations: 0 / 348.6 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.03498, allocations: 131.8 kB / 348.7 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004232/0.03541, allocations: 177.5 kB / 348.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.03543, allocations: 11.98 kB / 348.9 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003155/0.03859, allocations: 3.561 MB / 352.5 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.03859, allocations: 0 / 352.5 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.04019, allocations: 1.065 MB / 353.6 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002412/0.04044, allocations: 127.6 kB / 353.7 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.04049, allocations: 16 kB / 353.7 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.04074, allocations: 35.92 kB / 353.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.04085, allocations: 52.39 kB / 353.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.04087, allocations: 16.17 kB / 353.8 MB, free: 1.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003354/0.04121, allocations: 390.8 kB / 354.2 MB, free: 0.875 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04121, allocations: 3.938 kB / 354.2 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000548/0.04175, allocations: 219.8 kB / 354.4 MB, free: 0.6562 MB / 314.7 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.001792/0.04355, allocations: 1.621 MB / 356 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.04536, allocations: 1.042 MB / 357.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.04537, allocations: 0 / 357.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005889/0.04596, allocations: 0.5197 MB / 357.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006153/0.04657, allocations: 186.4 kB / 357.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007294/0.05387, allocations: 6.098 MB / 363.9 MB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004702/0.05434, allocations: 294 kB / 364.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002685/0.0546, allocations: 81.12 kB / 364.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.05482, allocations: 232.4 kB / 364.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.05483, allocations: 0 / 364.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04751/0.1023, allocations: 22.16 MB / 386.6 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.518/8.62, allocations: 8.047 kB / 386.6 MB, free: 0.5039 MB / 346.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins/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: 10.391020389273763]