Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Average.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.001855/0.001855, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002355/0.002355, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.807/2.807, allocations: 476.8 MB / 0.7707 GB, free: 4.301 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) 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(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 68.64 kB / 1.117 GB, free: 40.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3624, allocations: 169.9 MB / 1.283 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002992/0.3654, allocations: 1.578 MB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003409/0.3657, allocations: 115.7 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.474e-05/0.3658, allocations: 0 / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.3659, allocations: 15.8 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.226e-05/0.366, allocations: 3.938 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.3662, allocations: 23.97 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.3663, allocations: 55.84 kB / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3665, allocations: 19.97 kB / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.95e-05/0.3665, allocations: 23.92 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.524e-05/0.3666, allocations: 35.84 kB / 1.285 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.3666, allocations: 8 kB / 1.285 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.369e-05/0.3667, allocations: 11.98 kB / 1.285 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.3667, allocations: 15.98 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.3668, allocations: 23.81 kB / 1.285 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.3669, allocations: 67.19 kB / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3669, allocations: 4 kB / 1.285 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3669, allocations: 0 / 1.285 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.3669, allocations: 0 / 1.285 GB, free: 9.758 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005404/0.3675, allocations: 302.1 kB / 1.286 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3675, allocations: 8.031 kB / 1.286 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.574e-05/0.3676, allocations: 42.73 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.3676, allocations: 8.891 kB / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.3677, allocations: 130.4 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.3678, allocations: 384 / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.3678, allocations: 8.312 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.368, allocations: 86.14 kB / 1.286 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3681, allocations: 7.938 kB / 1.286 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3681, allocations: 4 kB / 1.286 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3681, allocations: 0 / 1.286 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.3684, allocations: 79.91 kB / 1.286 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005424/0.3689, allocations: 303.7 kB / 1.286 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.3692, allocations: 58.48 kB / 1.286 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.3693, allocations: 36.91 kB / 1.286 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.3694, allocations: 4 kB / 1.286 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.3694, allocations: 38.56 kB / 1.286 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.3694, allocations: 0 / 1.286 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005993/0.37, allocations: 137.7 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.3701, allocations: 55.39 kB / 1.287 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3702, allocations: 121.8 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.3702, allocations: 25.7 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.969e-05/0.3702, allocations: 88.14 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.3703, allocations: 15.83 kB / 1.287 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.3703, allocations: 17.72 kB / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3705, allocations: 314.8 kB / 1.287 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.3706, allocations: 39.95 kB / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.3707, allocations: 43.98 kB / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.371, allocations: 72.72 kB / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.371, allocations: 0 / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003255/0.3713, allocations: 101.6 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3714, allocations: 4 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3714, allocations: 0 / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3714, allocations: 0 / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.3715, allocations: 19.97 kB / 1.287 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3715, allocations: 0 / 1.287 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.679e-05/0.3716, allocations: 19.94 kB / 1.287 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.3716, allocations: 0 / 1.287 GB, free: 7.41 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.072e-05/0.3717, allocations: 121.7 kB / 1.288 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.3718, allocations: 7.984 kB / 1.288 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003796/0.3721, allocations: 113.5 kB / 1.288 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3721, allocations: 0 / 1.288 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3721, allocations: 8 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.3722, allocations: 4 kB / 1.288 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001896/0.3723, allocations: 148.7 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3723, allocations: 0 / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.894e-05/0.3724, allocations: 19.97 kB / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3724, allocations: 0 / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.3725, allocations: 0 / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3725, allocations: 0 / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3725, allocations: 0 / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.3728, allocations: 211.3 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.758e-05/0.3728, allocations: 7.953 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.3729, allocations: 0 / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.373, allocations: 15.98 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.373, allocations: 7.922 kB / 1.288 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.373, allocations: 0 / 1.288 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.597e-05/0.3731, allocations: 95.28 kB / 1.288 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3731, allocations: 0 / 1.288 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002353/0.3733, allocations: 15.92 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000733/0.374, allocations: 0.7329 MB / 1.289 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003558/0.3744, allocations: 76.14 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3744, allocations: 0 / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.3746, allocations: 40.05 kB / 1.289 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.3749, allocations: 14.66 kB / 1.289 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.3768, allocations: 1.429 MB / 1.29 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.3771, allocations: 0.6963 MB / 1.291 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.277e-05/0.3772, allocations: 7.984 kB / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.3772, allocations: 15.44 kB / 1.291 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of SimCode: time 3.6e-07/0.3772, allocations: 3.938 kB / 1.291 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02849/0.4057, allocations: 1.947 MB / 1.293 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.11, allocations: 7.75 kB / 1.293 GB, free: 1.613 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.171445408999716]