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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) 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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00837/0.00837, allocations: 100.7 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 197 kB / 16.68 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.607/2.607, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 71.91 kB / 1.054 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8867/0.8881, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00351/0.8917, allocations: 1.53 MB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004547/0.8922, allocations: 119.7 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.557e-05/0.8923, allocations: 3.938 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.8924, allocations: 11.92 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.709e-05/0.8925, allocations: 7.938 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.8928, allocations: 31.89 kB / 1.209 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.8929, allocations: 47.84 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.8931, allocations: 27.98 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.17e-05/0.8932, allocations: 23.92 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.406e-05/0.8933, allocations: 27.91 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.8933, allocations: 7.938 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.153e-05/0.8934, allocations: 8 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.226e-05/0.8935, allocations: 23.91 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.937e-05/0.8936, allocations: 27.86 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.8938, allocations: 55.81 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.8938, allocations: 4 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.374e-06/0.8938, allocations: 0 / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.615e-06/0.8938, allocations: 0 / 1.209 GB, free: 11.6 MB / 0.9356 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.0006918/0.8945, allocations: 381.5 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.8946, allocations: 12.03 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.95e-05/0.8946, allocations: 34.73 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/0.8947, allocations: 12.84 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.8949, allocations: 192.1 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.8949, allocations: 4.375 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.895, allocations: 8.375 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.8953, allocations: 82.2 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.8953, allocations: 3.938 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.8953, allocations: 4 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.8953, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.8956, allocations: 83.91 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000618/0.8963, allocations: 328.6 kB / 1.21 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.8965, allocations: 58.53 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.8967, allocations: 48.94 kB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.8967, allocations: 0 / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.8967, allocations: 34.56 kB / 1.21 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.8968, allocations: 0 / 1.21 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005631/0.8973, allocations: 137.6 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.8974, allocations: 51.41 kB / 1.211 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.8975, allocations: 113.8 kB / 1.211 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.8975, allocations: 29.7 kB / 1.211 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.831e-05/0.8976, allocations: 96.03 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.8976, allocations: 11.84 kB / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.8976, allocations: 13.72 kB / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.8978, allocations: 326.8 kB / 1.211 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.8979, allocations: 31.91 kB / 1.211 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.8981, allocations: 35.95 kB / 1.211 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.8983, allocations: 76.78 kB / 1.211 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8984, allocations: 4 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003595/0.8987, allocations: 101.8 kB / 1.211 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.8988, allocations: 9.562 kB / 1.211 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.8988, allocations: 0 / 1.211 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.8988, allocations: 4.031 kB / 1.211 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.8989, allocations: 15.98 kB / 1.211 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.8989, allocations: 7.984 kB / 1.211 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.946e-05/0.899, allocations: 15.91 kB / 1.211 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.8991, allocations: 4 kB / 1.211 GB, free: 9.039 MB / 0.9356 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 8.869e-05/0.8992, allocations: 117.8 kB / 1.212 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.8992, allocations: 0 / 1.212 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003962/0.8996, allocations: 117.5 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.8996, allocations: 0 / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.8996, allocations: 0 / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.8996, allocations: 0 / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.8999, allocations: 185.5 kB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.8999, allocations: 0 / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.9, allocations: 15.98 kB / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.9, allocations: 0 / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.9, allocations: 4 kB / 1.212 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.9, allocations: 8 kB / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.9, allocations: 3.938 kB / 1.212 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.9005, allocations: 199.4 kB / 1.212 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.475e-05/0.9005, allocations: 81.02 kB / 1.212 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.9006, allocations: 4 kB / 1.212 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.9007, allocations: 23.84 kB / 1.212 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/0.9008, allocations: 4 kB / 1.212 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.9008, allocations: 4 kB / 1.212 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.866e-05/0.9009, allocations: 91.27 kB / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9009, allocations: 0 / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002656/0.9012, allocations: 11.94 kB / 1.212 GB, free: 8.074 MB / 0.9356 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.001046/0.9023, allocations: 0.7319 MB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004337/0.9027, allocations: 83.91 kB / 1.213 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.9027, allocations: 0 / 1.213 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.9029, allocations: 35.97 kB / 1.213 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.9034, allocations: 7.984 kB / 1.213 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.906, allocations: 1.428 MB / 1.215 GB, free: 5.684 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/0.9065, allocations: 0.6885 MB / 1.215 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.951e-05/0.9066, allocations: 4.375 kB / 1.215 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.893e-05/0.9066, allocations: 27.42 kB / 1.215 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of SimCode: time 1.683e-06/0.9066, allocations: 0 / 1.215 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.9276, allocations: 1.845 MB / 1.217 GB, free: 3.168 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.563/8.49, allocations: 12.06 kB / 1.217 GB, free: 3.156 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/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) Reference file matches