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.001969/0.001969, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002344/0.002344, allocations: 194.9 kB / 16.26 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.028/2.028, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.667/2.667, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 64.11 kB / 0.8987 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3077, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002827/0.3106, allocations: 1.6 MB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003108/0.3109, allocations: 115.7 kB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.063e-05/0.311, allocations: 3.938 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3111, allocations: 7.984 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.823e-05/0.3112, allocations: 3.938 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.3114, allocations: 27.91 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.182e-05/0.3115, allocations: 55.84 kB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.3116, allocations: 23.98 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.666e-05/0.3117, allocations: 23.91 kB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.641e-05/0.3118, allocations: 31.86 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.3118, allocations: 4 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.507e-05/0.3118, allocations: 15.98 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.3119, allocations: 15.97 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.3119, allocations: 23.88 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.3121, allocations: 59.75 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3121, allocations: 0 / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3121, allocations: 0 / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.279e-06/0.3121, allocations: 0 / 1.054 GB, free: 6.637 MB / 0.8106 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.0005039/0.3126, allocations: 383.5 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3126, allocations: 8.625 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.3127, allocations: 38.73 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.3127, allocations: 12.84 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.3129, allocations: 180.3 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.3129, allocations: 4.375 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.3129, allocations: 4.375 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.3132, allocations: 94.12 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3132, allocations: 3.938 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.3133, allocations: 0 / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.3133, allocations: 0 / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.3136, allocations: 91.84 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005054/0.3141, allocations: 320.6 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.3143, allocations: 66.53 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.3144, allocations: 36.91 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.3145, allocations: 4 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3145, allocations: 30.56 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.3145, allocations: 4 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005179/0.315, allocations: 141.5 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.3151, allocations: 55.41 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.093e-05/0.3152, allocations: 121.7 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.3152, allocations: 25.7 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/0.3152, allocations: 103.9 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.3153, allocations: 3.906 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.3153, allocations: 21.7 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.166e-05/0.3154, allocations: 314.8 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.3155, allocations: 35.95 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.3157, allocations: 39.97 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.3159, allocations: 68.78 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.316, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003104/0.3163, allocations: 109.5 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3163, allocations: 4 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3163, allocations: 4 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.3163, allocations: 0 / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.3164, allocations: 15.98 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3165, allocations: 3.984 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.383e-05/0.3165, allocations: 19.89 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.3166, allocations: 0 / 1.057 GB, free: 4.078 MB / 0.8106 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 7.981e-05/0.3167, allocations: 119.3 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.3167, allocations: 4 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000355/0.317, allocations: 117.4 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.3171, allocations: 4 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3171, allocations: 384 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.3171, allocations: 0 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.3172, allocations: 177.6 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3172, allocations: 4 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.415e-05/0.3173, allocations: 15.98 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3174, allocations: 3.984 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.3174, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3174, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3174, allocations: 3.984 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003449/0.3177, allocations: 207.3 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.3178, allocations: 85.09 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.3178, allocations: 3.938 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3179, allocations: 7.984 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.3179, allocations: 8 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.318, allocations: 0 / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.204e-05/0.318, allocations: 95.2 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.318, allocations: 4 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002271/0.3183, allocations: 23.78 kB / 1.057 GB, free: 3.109 MB / 0.8106 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.0006106/0.3189, allocations: 0.732 MB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003271/0.3192, allocations: 79.86 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3192, allocations: 0 / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/0.3194, allocations: 39.95 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.3197, allocations: 13.09 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.3215, allocations: 1.436 MB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3217, allocations: 0.6924 MB / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.687e-05/0.3218, allocations: 8.234 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.084e-05/0.3218, allocations: 15.44 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.3218, allocations: 3.938 kB / 1.06 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.389/3.711, allocations: 1.604 MB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003334/3.711, allocations: 190.5 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/6.25, allocations: 0 / 1.062 GB, free: 14.21 MB / 0.8262 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