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.005728/0.005728, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001235/0.001235, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.419/1.419, 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.656/2.656, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.91 kB / 1.054 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7707/0.772, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002815/0.7749, allocations: 1.534 MB / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003993/0.7753, allocations: 115.7 kB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.142e-05/0.7754, allocations: 7.938 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.7756, allocations: 11.94 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.764e-05/0.7757, allocations: 7.922 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.7759, allocations: 27.91 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.776, allocations: 55.77 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.7762, allocations: 31.98 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.83e-05/0.7763, allocations: 19.92 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.882e-05/0.7764, allocations: 27.91 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.7764, allocations: 4 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.281e-05/0.7765, allocations: 8 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.149e-05/0.7765, allocations: 23.92 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.041e-05/0.7766, allocations: 27.84 kB / 1.209 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.7767, allocations: 55.81 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.7767, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7767, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.7768, allocations: 4 kB / 1.209 GB, free: 11.61 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.0005743/0.7773, allocations: 381.5 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.7774, allocations: 12.03 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.754e-05/0.7774, allocations: 30.75 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.7775, allocations: 8.844 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.7777, allocations: 192.1 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.7777, allocations: 4.375 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.7777, allocations: 8.375 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.778, allocations: 90.14 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.7781, allocations: 3.938 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.7781, allocations: 0 / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.7781, allocations: 0 / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003448/0.7784, allocations: 87.84 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005459/0.779, allocations: 324.7 kB / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.7792, allocations: 62.56 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.7794, allocations: 44.91 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.7794, allocations: 7.984 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.7795, allocations: 30.56 kB / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.7795, allocations: 0 / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005845/0.7801, allocations: 137.6 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.7801, allocations: 51.41 kB / 1.211 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.905e-05/0.7802, allocations: 121.8 kB / 1.211 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.7802, allocations: 25.7 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.698e-05/0.7803, allocations: 92.03 kB / 1.211 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.7803, allocations: 15.78 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.7804, allocations: 17.72 kB / 1.211 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.7805, allocations: 322.8 kB / 1.211 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.7806, allocations: 35.91 kB / 1.211 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.7808, allocations: 31.95 kB / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.7811, allocations: 80.78 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7811, allocations: 0 / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003569/0.7815, allocations: 105.5 kB / 1.211 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.7815, allocations: 4 kB / 1.211 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.7815, allocations: 0 / 1.211 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.7815, allocations: 0 / 1.211 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.7817, allocations: 19.92 kB / 1.211 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.7817, allocations: 4 kB / 1.211 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.33e-05/0.7818, allocations: 11.98 kB / 1.211 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.364e-05/0.7818, allocations: 4 kB / 1.211 GB, free: 9.059 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 9.314e-05/0.7819, allocations: 121.8 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.758e-05/0.7819, allocations: 0 / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004199/0.7824, allocations: 113.5 kB / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.7824, allocations: 0 / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.7824, allocations: 3.984 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7824, allocations: 0 / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.7826, allocations: 189.5 kB / 1.212 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.7826, allocations: 0 / 1.212 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.7827, allocations: 11.98 kB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7827, allocations: 11.88 kB / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.7827, allocations: 0 / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.7827, allocations: 4 kB / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7828, allocations: 0 / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.7832, allocations: 199.8 kB / 1.212 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.7832, allocations: 81.02 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.7832, allocations: 0 / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.7833, allocations: 15.98 kB / 1.212 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.7834, allocations: 12.03 kB / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.7834, allocations: 3.984 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.658e-05/0.7835, allocations: 91.27 kB / 1.212 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.723e-06/0.7835, allocations: 0 / 1.212 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002459/0.7837, allocations: 19.88 kB / 1.212 GB, free: 8.086 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.0007463/0.7845, allocations: 0.7319 MB / 1.213 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000378/0.7849, allocations: 79.91 kB / 1.213 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.7849, allocations: 4 kB / 1.213 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.7851, allocations: 39.91 kB / 1.213 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.7853, allocations: 5.875 kB / 1.213 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.7874, allocations: 1.423 MB / 1.215 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.7877, allocations: 0.6885 MB / 1.215 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.406e-05/0.7877, allocations: 7.984 kB / 1.215 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.787e-05/0.7878, allocations: 23.42 kB / 1.215 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of SimCode: time 3.51e-07/0.7878, allocations: 0 / 1.215 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.8052, allocations: 1.856 MB / 1.217 GB, free: 3.176 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/8.456, allocations: 4 kB / 1.217 GB, free: 3.172 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