Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111 kB / 16.41 MB, free: 6.461 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.001456/0.001456, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.444/1.444, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.91 kB / 1.019 GB, free: 9.34 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8648/0.8664, allocations: 151.6 MB / 1.167 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002121/0.8686, allocations: 0.7061 MB / 1.168 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.8696, allocations: 0.8039 MB / 1.169 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.8697, allocations: 4 kB / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.906e-05/0.8698, allocations: 0 / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.382e-05/0.8699, allocations: 11.88 kB / 1.169 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 6.089e-05/0.87, allocations: 11.98 kB / 1.169 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.481e-05/0.8701, allocations: 43.91 kB / 1.169 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.8702, allocations: 8 kB / 1.169 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.8703, allocations: 19.92 kB / 1.169 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.682e-05/0.8703, allocations: 23.91 kB / 1.169 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.8704, allocations: 4 kB / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.947e-06/0.8704, allocations: 4 kB / 1.169 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.8704, allocations: 11.92 kB / 1.169 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.858e-05/0.8704, allocations: 11.94 kB / 1.169 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.8705, allocations: 47.86 kB / 1.169 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.8705, allocations: 3.938 kB / 1.169 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8706, allocations: 3.938 kB / 1.169 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.8706, allocations: 0 / 1.169 GB, free: 2.035 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005998/0.8712, allocations: 367.8 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.8712, allocations: 8.922 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.8713, allocations: 8.891 kB / 1.169 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.8714, allocations: 168.3 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.8715, allocations: 8.375 kB / 1.17 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.8715, allocations: 4.375 kB / 1.17 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002701/0.8718, allocations: 62.22 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.8718, allocations: 192 / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.8718, allocations: 7.938 kB / 1.17 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.8718, allocations: 0 / 1.17 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.8721, allocations: 71.86 kB / 1.17 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004782/0.8726, allocations: 268.9 kB / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.8729, allocations: 58.48 kB / 1.17 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.873, allocations: 43.34 kB / 1.17 GB, free: 0.832 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.873, allocations: 4 kB / 1.17 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.8731, allocations: 30.56 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.8731, allocations: 0 / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0005675/0.8737, allocations: 133.5 kB / 1.17 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.8737, allocations: 51.41 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.8738, allocations: 109.8 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.8738, allocations: 29.7 kB / 1.17 GB, free: 448 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.835e-05/0.8739, allocations: 80.14 kB / 1.17 GB, free: 364 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.8739, allocations: 15.84 kB / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.874, allocations: 13.72 kB / 1.171 GB, free: 328 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.8741, allocations: 318.9 kB / 1.171 GB, free: 0 / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.8743, allocations: 36.11 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.8744, allocations: 31.95 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.8747, allocations: 72.77 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.8747, allocations: 7.938 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003349/0.8751, allocations: 97.61 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.8751, allocations: 4 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.8751, allocations: 0 / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.8751, allocations: 4 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.8753, allocations: 15.98 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.8753, allocations: 3.938 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.302e-05/0.8754, allocations: 15.98 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.8754, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 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.994e-05/0.8755, allocations: 113.8 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.8755, allocations: 7.953 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.904e-05/0.8755, allocations: 7.891 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.8755, allocations: 0 / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8756, allocations: 0 / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.8756, allocations: 4 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.8758, allocations: 173.5 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.8758, allocations: 4 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.8759, allocations: 19.91 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.8759, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.8759, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.8759, allocations: 4 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8759, allocations: 0 / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003918/0.8763, allocations: 195.4 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.8764, allocations: 81.06 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.8764, allocations: 3.984 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.8765, allocations: 11.98 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.8766, allocations: 8 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.8766, allocations: 0 / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.421e-05/0.8766, allocations: 91.27 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8766, allocations: 0 / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002266/0.8769, allocations: 8 kB / 1.172 GB, free: 14.89 MB / 0.9044 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.0001455/0.877, allocations: 103.2 kB / 1.172 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003544/0.8774, allocations: 63.92 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.8774, allocations: 4 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.8775, allocations: 35.95 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.8779, allocations: 11.94 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.8782, allocations: 147.1 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.8785, allocations: 0.6885 MB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.8785, allocations: 7.438 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of SimCode: time 3.01e-07/0.8786, allocations: 4 kB / 1.173 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of Templates: time 0.002192/0.8808, allocations: 0.7466 MB / 1.174 GB, free: 13.02 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches