Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001725/0.001725, 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.002358/0.002358, allocations: 215.6 kB / 22.25 MB, free: 5.078 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.2/3.2, allocations: 0.49 GB / 0.7951 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_12_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.002091/0.002091, allocations: 59.44 kB / 1.154 GB, free: 25.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3455, allocations: 176.1 MB / 1.326 GB, free: 1.941 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003088/0.3486, allocations: 1.57 MB / 1.327 GB, free: 376 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003459/0.3489, allocations: 115.7 kB / 1.328 GB, free: 260 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.892e-05/0.349, allocations: 0 / 1.328 GB, free: 260 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.3491, allocations: 15.86 kB / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.833e-05/0.3491, allocations: 7.938 kB / 1.328 GB, free: 236 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.3494, allocations: 27.91 kB / 1.328 GB, free: 208 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.3495, allocations: 55.83 kB / 1.328 GB, free: 152 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.3497, allocations: 16.28 kB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.154e-05/0.3497, allocations: 35.89 kB / 1.328 GB, free: 100 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.83e-05/0.3498, allocations: 27.86 kB / 1.328 GB, free: 72 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.3498, allocations: 4 kB / 1.328 GB, free: 68 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.3499, allocations: 11.98 kB / 1.328 GB, free: 56 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.832e-05/0.35, allocations: 19.98 kB / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.892e-05/0.35, allocations: 31.8 kB / 1.328 GB, free: 4 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001966/0.3502, allocations: 63.67 kB / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3502, allocations: 0 / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3502, allocations: 0 / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.3502, allocations: 0 / 1.328 GB, free: 15.94 MB / 1.029 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.0006826/0.3509, allocations: 302.1 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.351, allocations: 12.03 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.351, allocations: 34.75 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.707e-05/0.351, allocations: 12.89 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.3512, allocations: 122.4 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.3513, allocations: 8.375 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.3513, allocations: 4.375 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.3516, allocations: 94.08 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3516, allocations: 3.938 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.3516, allocations: 3.984 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3516, allocations: 0 / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.3519, allocations: 83.86 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.3525, allocations: 295.8 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.3527, allocations: 62.53 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.3529, allocations: 36.92 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.3529, allocations: 3.984 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.3529, allocations: 34.59 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3529, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005788/0.3535, allocations: 149.5 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.3536, allocations: 51.41 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.3537, allocations: 117.8 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.3537, allocations: 25.7 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.835e-05/0.3538, allocations: 100.1 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.3538, allocations: 11.88 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/0.3538, allocations: 17.72 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.354, allocations: 318.8 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.3542, allocations: 31.97 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.3543, allocations: 35.95 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.3546, allocations: 84.72 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3546, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003176/0.3549, allocations: 105.6 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3549, allocations: 4 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3549, allocations: 4 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.355, allocations: 4 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3551, allocations: 11.98 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.3551, allocations: 0 / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.687e-05/0.3552, allocations: 11.98 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.3552, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 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 0.0001041/0.3553, allocations: 122.3 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/0.3553, allocations: 8 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003799/0.3557, allocations: 113.5 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3557, allocations: 3.984 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3557, allocations: 0 / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3557, allocations: 3.938 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.3559, allocations: 156.6 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3559, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.254e-05/0.356, allocations: 19.98 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.356, allocations: 0 / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.356, allocations: 3.938 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.356, allocations: 4 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.356, allocations: 0 / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/0.3564, allocations: 207.3 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.198e-05/0.3564, allocations: 7.953 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.3564, allocations: 0 / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.3565, allocations: 11.98 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.882e-05/0.3566, allocations: 7.984 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.3566, allocations: 4 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.162e-05/0.3566, allocations: 91.27 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3566, allocations: 0 / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000238/0.3569, allocations: 15.94 kB / 1.331 GB, free: 12.74 MB / 1.029 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.0007459/0.3576, allocations: 0.7323 MB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003519/0.358, allocations: 87.94 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.358, allocations: 0 / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.3581, allocations: 31.97 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.3585, allocations: 7.984 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.3604, allocations: 1.438 MB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.3607, allocations: 0.6885 MB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.043e-05/0.3608, allocations: 8 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.3608, allocations: 19.42 kB / 1.334 GB, free: 9.598 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3608, allocations: 0 / 1.334 GB, free: 9.598 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02771/0.3885, allocations: 1.955 MB / 1.336 GB, free: 7.785 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.41, allocations: 0 / 1.336 GB, free: 7.785 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.209861122999428]