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: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001819/0.00182, allocations: 109.4 kB / 16.41 MB, free: 6.438 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.002028/0.002029, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.254/1.254, allocations: 222.9 MB / 241 MB, free: 15.17 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.307/2.307, allocations: 390.2 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 63.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.837/0.8385, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002418/0.8409, allocations: 1.527 MB / 1.09 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003158/0.8412, allocations: 119.5 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.789e-05/0.8413, allocations: 0.9062 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.8414, allocations: 11.23 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.302e-05/0.8415, allocations: 5.656 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002218/0.8417, allocations: 36.41 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.8418, allocations: 51.45 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.8419, allocations: 19.86 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.08e-05/0.842, allocations: 27.59 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.014e-05/0.8421, allocations: 34.8 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.8421, allocations: 5.25 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.445e-05/0.8422, allocations: 13.06 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.8422, allocations: 15.27 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.585e-05/0.8423, allocations: 28.25 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.8424, allocations: 61.02 kB / 1.091 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.8424, allocations: 1.156 kB / 1.091 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8424, allocations: 0 / 1.091 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.8424, allocations: 0 / 1.091 GB, free: 4.25 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.0004759/0.8429, allocations: 383.9 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.843, allocations: 9.594 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.843, allocations: 8.062 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.8431, allocations: 182.8 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.8432, allocations: 6.141 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.8432, allocations: 3.594 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.8435, allocations: 89.67 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.8435, allocations: 1.375 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.8435, allocations: 11.88 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.8435, allocations: 0.9375 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003177/0.8438, allocations: 79.41 kB / 1.091 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005006/0.8443, allocations: 328.7 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.8446, allocations: 58.27 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.8447, allocations: 39.02 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.8448, allocations: 2.531 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.8448, allocations: 44.05 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.944e-06/0.8448, allocations: 3.984 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005737/0.8454, allocations: 138.6 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.212e-05/0.8454, allocations: 52.31 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.257e-05/0.8455, allocations: 121.4 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.8455, allocations: 25.7 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.8456, allocations: 93.55 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.8456, allocations: 9.25 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.8456, allocations: 18.17 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.86e-05/0.8457, allocations: 318.5 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.8458, allocations: 32.88 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.846, allocations: 36.7 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.8463, allocations: 79.64 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.8463, allocations: 0 / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003428/0.8467, allocations: 103.3 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.8467, allocations: 4.625 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.8467, allocations: 4.703 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.8467, allocations: 0.5156 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.8468, allocations: 16.23 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.8469, allocations: 0.625 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.086e-05/0.8469, allocations: 16.12 kB / 1.093 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.847, allocations: 4.969 kB / 1.093 GB, free: 2.418 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 5.999e-05/0.847, allocations: 123.1 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.8471, allocations: 3.484 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003835/0.8474, allocations: 113.7 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.8475, allocations: 4.781 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.8475, allocations: 0 / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.8475, allocations: 5.484 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.8476, allocations: 182 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.8476, allocations: 0 / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.879e-05/0.8477, allocations: 15.66 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.8478, allocations: 1.547 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.8478, allocations: 1.062 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.8478, allocations: 0.6094 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8478, allocations: 0 / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.8482, allocations: 210.9 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.769e-05/0.8482, allocations: 79.31 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.8482, allocations: 0.8438 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.8483, allocations: 11.89 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.8484, allocations: 7.828 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.8484, allocations: 5.891 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.8485, allocations: 95.61 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8485, allocations: 0 / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00026/0.8487, allocations: 12.88 kB / 1.094 GB, free: 1.68 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.0001358/0.8489, allocations: 102.3 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003787/0.8493, allocations: 76.98 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8493, allocations: 8.906 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.8494, allocations: 41.22 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.8497, allocations: 4.641 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003164/0.8501, allocations: 188.1 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.8502, allocations: 0.6897 MB / 1.095 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.8502, allocations: 13.97 kB / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.8502, allocations: 0 / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of Templates: time 0.002818/0.8531, allocations: 0.9267 MB / 1.096 GB, free: 0.6211 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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