Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00156/0.00156, allocations: 107.8 kB / 16.45 MB, free: 6.453 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.002099/0.002099, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.719/1.719, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.371/3.371, allocations: 0.505 GB / 0.8066 GB, free: 23.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_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.002089/0.002089, allocations: 71.59 kB / 1.172 GB, free: 17.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3514, allocations: 180.2 MB / 1.348 GB, free: 9.906 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003304/0.3547, allocations: 1.557 MB / 1.349 GB, free: 8.34 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0004051/0.3551, allocations: 107.7 kB / 1.349 GB, free: 8.234 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.472e-05/0.3552, allocations: 4 kB / 1.349 GB, free: 8.23 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.3553, allocations: 7.875 kB / 1.349 GB, free: 8.223 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.671e-05/0.3553, allocations: 11.91 kB / 1.349 GB, free: 8.211 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.3556, allocations: 31.97 kB / 1.349 GB, free: 8.18 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000133/0.3557, allocations: 55.78 kB / 1.349 GB, free: 8.125 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.3559, allocations: 23.98 kB / 1.35 GB, free: 8.102 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.583e-05/0.356, allocations: 23.92 kB / 1.35 GB, free: 8.078 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.842e-05/0.356, allocations: 35.83 kB / 1.35 GB, free: 8.043 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.3561, allocations: 4 kB / 1.35 GB, free: 8.039 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.121e-05/0.3561, allocations: 8 kB / 1.35 GB, free: 8.031 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.435e-05/0.3562, allocations: 19.98 kB / 1.35 GB, free: 8.012 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.238e-05/0.3562, allocations: 27.8 kB / 1.35 GB, free: 7.984 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.3564, allocations: 63.95 kB / 1.35 GB, free: 7.922 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3564, allocations: 0 / 1.35 GB, free: 7.922 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3564, allocations: 0 / 1.35 GB, free: 7.922 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.3564, allocations: 7.938 kB / 1.35 GB, free: 7.914 MB / 1.045 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.0006569/0.3571, allocations: 383.1 kB / 1.35 GB, free: 7.488 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3571, allocations: 15.98 kB / 1.35 GB, free: 7.473 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.3572, allocations: 30.75 kB / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.75e-05/0.3572, allocations: 12.88 kB / 1.35 GB, free: 7.422 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.3574, allocations: 180.3 kB / 1.35 GB, free: 7.207 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.3574, allocations: 384 / 1.35 GB, free: 7.207 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.3574, allocations: 8.375 kB / 1.35 GB, free: 7.199 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.3577, allocations: 90.14 kB / 1.35 GB, free: 7.105 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.3577, allocations: 7.938 kB / 1.35 GB, free: 7.098 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.3577, allocations: 4 kB / 1.35 GB, free: 7.094 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3577, allocations: 0 / 1.35 GB, free: 7.094 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.3581, allocations: 83.84 kB / 1.35 GB, free: 7.012 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005646/0.3586, allocations: 328.7 kB / 1.351 GB, free: 6.641 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.3589, allocations: 54.53 kB / 1.351 GB, free: 6.578 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.359, allocations: 48.91 kB / 1.351 GB, free: 6.527 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.3591, allocations: 0 / 1.351 GB, free: 6.527 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3591, allocations: 34.56 kB / 1.351 GB, free: 6.484 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.3591, allocations: 0 / 1.351 GB, free: 6.484 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0005978/0.3597, allocations: 145.5 kB / 1.351 GB, free: 6.336 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.3597, allocations: 51.41 kB / 1.351 GB, free: 6.273 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.3598, allocations: 113.8 kB / 1.351 GB, free: 6.152 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3599, allocations: 25.7 kB / 1.351 GB, free: 6.121 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.3599, allocations: 96.08 kB / 1.351 GB, free: 6.023 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.3599, allocations: 11.89 kB / 1.351 GB, free: 6.012 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/0.36, allocations: 13.72 kB / 1.351 GB, free: 5.992 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3601, allocations: 326.8 kB / 1.352 GB, free: 5.664 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.3603, allocations: 31.97 kB / 1.352 GB, free: 5.633 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.3604, allocations: 35.95 kB / 1.352 GB, free: 5.598 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/0.3607, allocations: 68.78 kB / 1.352 GB, free: 5.527 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3607, allocations: 4 kB / 1.352 GB, free: 5.523 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003572/0.3611, allocations: 113.5 kB / 1.352 GB, free: 5.406 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3611, allocations: 4 kB / 1.352 GB, free: 5.402 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.3611, allocations: 4 kB / 1.352 GB, free: 5.398 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.3611, allocations: 0 / 1.352 GB, free: 5.398 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.3613, allocations: 11.98 kB / 1.352 GB, free: 5.387 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.3613, allocations: 3.938 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.828e-05/0.3614, allocations: 15.98 kB / 1.352 GB, free: 5.367 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3614, allocations: 7.984 kB / 1.352 GB, free: 5.359 MB / 1.045 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.484e-05/0.3615, allocations: 117.8 kB / 1.352 GB, free: 5.234 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.3615, allocations: 3.953 kB / 1.352 GB, free: 5.23 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004066/0.3619, allocations: 121.4 kB / 1.352 GB, free: 5.094 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3619, allocations: 0 / 1.352 GB, free: 5.094 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3619, allocations: 0 / 1.352 GB, free: 5.094 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3619, allocations: 3.938 kB / 1.352 GB, free: 5.09 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.3621, allocations: 177.6 kB / 1.352 GB, free: 4.867 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3621, allocations: 0 / 1.352 GB, free: 4.867 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.3622, allocations: 19.98 kB / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3622, allocations: 0 / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.3622, allocations: 0 / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3622, allocations: 0 / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3622, allocations: 8 kB / 1.352 GB, free: 4.84 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.3626, allocations: 203.3 kB / 1.353 GB, free: 4.625 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.494e-05/0.3627, allocations: 85.06 kB / 1.353 GB, free: 4.523 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.3627, allocations: 0 / 1.353 GB, free: 4.523 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.3628, allocations: 19.97 kB / 1.353 GB, free: 4.504 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.3629, allocations: 0 / 1.353 GB, free: 4.504 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.3629, allocations: 4 kB / 1.353 GB, free: 4.5 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.044e-05/0.3629, allocations: 91.27 kB / 1.353 GB, free: 4.41 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3629, allocations: 0 / 1.353 GB, free: 4.41 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002394/0.3632, allocations: 15.94 kB / 1.353 GB, free: 4.395 MB / 1.045 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.0007955/0.364, allocations: 0.7362 MB / 1.354 GB, free: 3.633 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003782/0.3643, allocations: 83.88 kB / 1.354 GB, free: 3.551 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3643, allocations: 4 kB / 1.354 GB, free: 3.547 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.3645, allocations: 35.97 kB / 1.354 GB, free: 3.512 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3648, allocations: 14.17 kB / 1.354 GB, free: 3.5 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.3669, allocations: 1.436 MB / 1.355 GB, free: 1.988 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.3672, allocations: 0.6885 MB / 1.356 GB, free: 1.273 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.63e-05/0.3672, allocations: 4 kB / 1.356 GB, free: 1.27 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.997e-05/0.3673, allocations: 19.42 kB / 1.356 GB, free: 1.25 MB / 1.045 GB Notification: Performance of SimCode: time 6.62e-07/0.3673, allocations: 3.938 kB / 1.356 GB, free: 1.246 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.3919, allocations: 1.836 MB / 1.358 GB, free: 15.48 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.278/8.67, allocations: 5.969 kB / 1.358 GB, free: 15.48 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 15.926091051893309]