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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_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.001948/0.001948, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002199/0.002199, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.516/1.516, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.063/3.063, allocations: 482.4 MB / 0.7542 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.83 kB / 0.9231 GB, free: 29.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3347, allocations: 162.2 MB / 1.082 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002995/0.3377, allocations: 1.601 MB / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003633/0.3381, allocations: 111.7 kB / 1.083 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.3382, allocations: 0 / 1.083 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.3383, allocations: 3.938 kB / 1.083 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.744e-05/0.3383, allocations: 7.922 kB / 1.083 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.3386, allocations: 27.97 kB / 1.083 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.248e-05/0.3387, allocations: 59.78 kB / 1.083 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3388, allocations: 23.98 kB / 1.083 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.312e-05/0.3389, allocations: 19.92 kB / 1.083 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.066e-05/0.339, allocations: 31.89 kB / 1.083 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.339, allocations: 7.938 kB / 1.083 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.876e-05/0.3391, allocations: 8 kB / 1.083 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.626e-05/0.3391, allocations: 15.92 kB / 1.083 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.127e-05/0.3392, allocations: 27.86 kB / 1.083 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.3393, allocations: 55.8 kB / 1.083 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3393, allocations: 0 / 1.083 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3393, allocations: 0 / 1.083 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.3393, allocations: 0 / 1.083 GB, free: 11.72 MB / 0.8419 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.0006137/0.3399, allocations: 383.5 kB / 1.084 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.34, allocations: 8.031 kB / 1.084 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.34, allocations: 8.844 kB / 1.084 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.3402, allocations: 192.2 kB / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.3403, allocations: 384 / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.3403, allocations: 8.375 kB / 1.084 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.3406, allocations: 86.19 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.3406, allocations: 192 / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3406, allocations: 7.938 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3406, allocations: 0 / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.3409, allocations: 83.86 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.3415, allocations: 328.7 kB / 1.085 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.3417, allocations: 62.58 kB / 1.085 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.3419, allocations: 40.91 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.3419, allocations: 0 / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.342, allocations: 34.56 kB / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.342, allocations: 0 / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0005599/0.3425, allocations: 137.6 kB / 1.085 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.3426, allocations: 55.39 kB / 1.085 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.3427, allocations: 109.8 kB / 1.085 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.3427, allocations: 33.7 kB / 1.085 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.352e-05/0.3428, allocations: 95.98 kB / 1.085 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.3428, allocations: 15.83 kB / 1.085 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.835e-05/0.3429, allocations: 13.72 kB / 1.085 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.343, allocations: 318.8 kB / 1.085 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.3431, allocations: 31.95 kB / 1.085 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.3433, allocations: 39.89 kB / 1.086 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.3436, allocations: 76.78 kB / 1.086 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3436, allocations: 7.938 kB / 1.086 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003211/0.3439, allocations: 97.53 kB / 1.086 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3439, allocations: 12 kB / 1.086 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3439, allocations: 4 kB / 1.086 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.344, allocations: 0 / 1.086 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.3441, allocations: 19.91 kB / 1.086 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.3441, allocations: 4 kB / 1.086 GB, free: 9.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.558e-05/0.3442, allocations: 7.984 kB / 1.086 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.3442, allocations: 4 kB / 1.086 GB, free: 9.211 MB / 0.8419 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.017e-05/0.3443, allocations: 121.8 kB / 1.086 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.3443, allocations: 3.984 kB / 1.086 GB, free: 9.078 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003827/0.3447, allocations: 113.4 kB / 1.086 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3447, allocations: 0 / 1.086 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3447, allocations: 0 / 1.086 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3447, allocations: 0 / 1.086 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.3449, allocations: 181.6 kB / 1.086 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.345, allocations: 4 kB / 1.086 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.3451, allocations: 19.97 kB / 1.086 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3451, allocations: 3.938 kB / 1.086 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.3451, allocations: 0 / 1.086 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.3451, allocations: 4 kB / 1.086 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3451, allocations: 0 / 1.086 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003861/0.3455, allocations: 203.8 kB / 1.086 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.3456, allocations: 85.05 kB / 1.086 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.3456, allocations: 0 / 1.086 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3457, allocations: 11.98 kB / 1.086 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.3457, allocations: 3.984 kB / 1.086 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3458, allocations: 8 kB / 1.086 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.968e-05/0.3458, allocations: 91.7 kB / 1.087 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3458, allocations: 4 kB / 1.087 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002352/0.3461, allocations: 11.94 kB / 1.087 GB, free: 8.254 MB / 0.8419 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.0001401/0.3462, allocations: 107.1 kB / 1.087 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003754/0.3466, allocations: 75.86 kB / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3466, allocations: 4 kB / 1.087 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.3468, allocations: 43.95 kB / 1.087 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.3471, allocations: 4 kB / 1.087 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003487/0.3475, allocations: 163.5 kB / 1.087 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.3478, allocations: 0.693 MB / 1.088 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.322e-05/0.3478, allocations: 8 kB / 1.088 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.3479, allocations: 11.38 kB / 1.088 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.3479, allocations: 0 / 1.088 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of Templates: time 0.003091/0.351, allocations: 0.6415 MB / 1.088 GB, free: 6.453 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches