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.002166/0.002166, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.002505/0.002505, allocations: 216.9 kB / 22.24 MB, free: 5.242 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.546/1.546, allocations: 230.6 MB / 256 MB, free: 7.789 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.387/3.387, allocations: 0.5107 GB / 0.8158 GB, free: 17.86 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.002318/0.002318, allocations: 71.67 kB / 1.186 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3194, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002896/0.3223, allocations: 1.545 MB / 1.365 GB, free: 12.55 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003727/0.3227, allocations: 115.6 kB / 1.365 GB, free: 12.44 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.935e-05/0.3227, allocations: 0 / 1.365 GB, free: 12.44 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.3229, allocations: 11.88 kB / 1.365 GB, free: 12.43 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.906e-05/0.3229, allocations: 11.92 kB / 1.365 GB, free: 12.42 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.3232, allocations: 31.95 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.3233, allocations: 55.84 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.3234, allocations: 16.27 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.544e-05/0.3235, allocations: 27.86 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.486e-05/0.3235, allocations: 27.91 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.3236, allocations: 4 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.477e-05/0.3236, allocations: 15.97 kB / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.627e-05/0.3237, allocations: 11.94 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.512e-05/0.3237, allocations: 23.92 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.3239, allocations: 67.61 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3239, allocations: 0 / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3239, allocations: 0 / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.3239, allocations: 0 / 1.365 GB, free: 12.14 MB / 1.061 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.0006112/0.3245, allocations: 310.1 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3246, allocations: 8.031 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.887e-05/0.3246, allocations: 38.75 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.3247, allocations: 8.875 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.3248, allocations: 122.4 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.3249, allocations: 8.375 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.3249, allocations: 384 / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.3252, allocations: 94.14 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3252, allocations: 3.938 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3252, allocations: 0 / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3252, allocations: 4 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.3255, allocations: 79.91 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006038/0.3261, allocations: 291.8 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.3264, allocations: 50.53 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.3265, allocations: 40.92 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.3266, allocations: 7.938 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.3266, allocations: 38.53 kB / 1.366 GB, free: 10.92 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.3266, allocations: 0 / 1.366 GB, free: 10.92 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0005871/0.3272, allocations: 141.5 kB / 1.366 GB, free: 10.78 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.3273, allocations: 55.41 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3274, allocations: 113.8 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3274, allocations: 25.7 kB / 1.367 GB, free: 10.56 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.3275, allocations: 96.08 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.3275, allocations: 15.84 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.3275, allocations: 13.72 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3277, allocations: 326.8 kB / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.3278, allocations: 31.97 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.328, allocations: 35.95 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.3283, allocations: 72.72 kB / 1.367 GB, free: 9.957 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3283, allocations: 4 kB / 1.367 GB, free: 9.953 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003378/0.3286, allocations: 101.6 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3286, allocations: 7.984 kB / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.3286, allocations: 0 / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.3286, allocations: 4 kB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3288, allocations: 11.98 kB / 1.367 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3288, allocations: 4 kB / 1.367 GB, free: 9.82 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.326e-05/0.3289, allocations: 15.98 kB / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.3289, allocations: 0 / 1.367 GB, free: 9.805 MB / 1.061 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.0001047/0.329, allocations: 122.4 kB / 1.368 GB, free: 9.676 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.329, allocations: 7.953 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003922/0.3294, allocations: 113.5 kB / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3294, allocations: 4 kB / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3294, allocations: 0 / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3294, allocations: 0 / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.3296, allocations: 144.7 kB / 1.368 GB, free: 9.352 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3296, allocations: 8 kB / 1.368 GB, free: 9.344 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.676e-05/0.3297, allocations: 15.97 kB / 1.368 GB, free: 9.328 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3297, allocations: 3.938 kB / 1.368 GB, free: 9.324 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/0.3297, allocations: 0 / 1.368 GB, free: 9.324 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3297, allocations: 4 kB / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3297, allocations: 3.984 kB / 1.368 GB, free: 9.316 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.3301, allocations: 211.3 kB / 1.368 GB, free: 9.094 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-06/0.3301, allocations: 0 / 1.368 GB, free: 9.094 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.3301, allocations: 8 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.3303, allocations: 7.984 kB / 1.368 GB, free: 9.078 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.3303, allocations: 8.406 kB / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.3303, allocations: 0 / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.452e-05/0.3304, allocations: 91.27 kB / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3304, allocations: 4 kB / 1.368 GB, free: 8.977 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002482/0.3306, allocations: 19.89 kB / 1.368 GB, free: 8.957 MB / 1.061 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.0008046/0.3314, allocations: 0.7319 MB / 1.369 GB, free: 8.199 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003742/0.3318, allocations: 79.86 kB / 1.369 GB, free: 8.121 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3318, allocations: 0 / 1.369 GB, free: 8.121 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.332, allocations: 39.95 kB / 1.369 GB, free: 8.082 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.3324, allocations: 10.03 kB / 1.369 GB, free: 8.074 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.3344, allocations: 1.424 MB / 1.37 GB, free: 6.57 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.76e-05/0.3344, allocations: 76.09 kB / 1.37 GB, free: 6.477 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.973e-05/0.3345, allocations: 15.98 kB / 1.37 GB, free: 6.461 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.3345, allocations: 11.44 kB / 1.37 GB, free: 6.449 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.3345, allocations: 0 / 1.37 GB, free: 6.449 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.3623, allocations: 2.39 MB / 1.373 GB, free: 4.195 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.13, allocations: 5.75 kB / 1.373 GB, free: 4.191 MB / 1.061 GB " [Timeout remaining time 288] (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: 19.18229611730203]