Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_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.009314/0.009314, allocations: 101.8 kB / 15.73 MB, free: 6 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.002025/0.002025, allocations: 197.3 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.498/1.498, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 67.91 kB / 0.9504 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8511/0.8526, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002752/0.8554, allocations: 1.531 MB / 1.089 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000358/0.8557, allocations: 121 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.578e-05/0.8558, allocations: 1.188 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.8559, allocations: 9.484 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.736e-05/0.856, allocations: 9.859 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.8563, allocations: 26.06 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000116/0.8564, allocations: 55.41 kB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.8565, allocations: 27.8 kB / 1.089 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.646e-05/0.8566, allocations: 22.44 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.8567, allocations: 32.56 kB / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.8567, allocations: 4.375 kB / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-05/0.8568, allocations: 13.33 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.167e-05/0.8568, allocations: 16.53 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.8569, allocations: 27.72 kB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.857, allocations: 60.45 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8571, allocations: 0.5156 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.724e-06/0.8571, allocations: 0.8125 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.8571, allocations: 0 / 1.089 GB, free: 3.98 MB / 0.8575 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.0005309/0.8576, allocations: 386.7 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.8577, allocations: 9.406 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.401e-05/0.8577, allocations: 32.95 kB / 1.09 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.8578, allocations: 8.828 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.8579, allocations: 188.9 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.8579, allocations: 1.438 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.858, allocations: 11.5 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002995/0.8583, allocations: 86.64 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.8583, allocations: 3.938 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.8583, allocations: 4 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.8583, allocations: 1.344 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003409/0.8587, allocations: 83.81 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/0.8592, allocations: 320.5 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.8594, allocations: 62.41 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.8596, allocations: 38.38 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.731e-05/0.8596, allocations: 2.453 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.8597, allocations: 36.41 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.8597, allocations: 0 / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005847/0.8603, allocations: 143.1 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.8603, allocations: 55.86 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.98e-05/0.8604, allocations: 113.3 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.8604, allocations: 33.7 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.8605, allocations: 97.95 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.8605, allocations: 9.75 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-05/0.8605, allocations: 17.8 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.923e-05/0.8606, allocations: 317.7 kB / 1.091 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.8608, allocations: 32.62 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.8609, allocations: 37.39 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.8612, allocations: 74.7 kB / 1.091 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.8612, allocations: 0.875 kB / 1.091 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003363/0.8616, allocations: 110.4 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.8616, allocations: 5.516 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.8616, allocations: 1.094 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.8616, allocations: 0 / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.8618, allocations: 15.5 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.8618, allocations: 1.922 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.82e-05/0.8619, allocations: 15.11 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.8619, allocations: 1.094 kB / 1.092 GB, free: 2.105 MB / 0.8575 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 6.321e-05/0.862, allocations: 128.3 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/0.862, allocations: 3.984 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003958/0.8624, allocations: 113.7 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.8624, allocations: 0 / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.8624, allocations: 1.922 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.8624, allocations: 0 / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.8626, allocations: 189.7 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.8626, allocations: 0.7969 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.8627, allocations: 15.83 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.8627, allocations: 0 / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.8627, allocations: 1.297 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.8627, allocations: 0.6875 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8627, allocations: 1.188 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003754/0.8631, allocations: 206.2 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.8632, allocations: 79.28 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.8632, allocations: 0.8125 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.8633, allocations: 12.64 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.505e-05/0.8633, allocations: 7.672 kB / 1.092 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.8634, allocations: 1.5 kB / 1.092 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.051e-05/0.8634, allocations: 94.52 kB / 1.092 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8634, allocations: 0.875 kB / 1.092 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002343/0.8636, allocations: 16.53 kB / 1.092 GB, free: 1.367 MB / 0.8575 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.0006072/0.8643, allocations: 0.7421 MB / 1.093 GB, free: 16.69 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003679/0.8646, allocations: 81.83 kB / 1.093 GB, free: 16.68 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.8646, allocations: 0 / 1.093 GB, free: 16.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.8648, allocations: 42.48 kB / 1.093 GB, free: 16.67 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.8651, allocations: 13.62 kB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.867, allocations: 1.43 MB / 1.095 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.8673, allocations: 0.6929 MB / 1.095 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.162e-05/0.8673, allocations: 11.08 kB / 1.095 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.254e-05/0.8674, allocations: 19.19 kB / 1.095 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.8674, allocations: 0.7812 kB / 1.095 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.8851, allocations: 1.832 MB / 1.097 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/8.304, allocations: 8.875 kB / 1.097 GB, free: 14.28 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches