Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: 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_latest_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_latest_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.00679/0.00679, 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.001468/0.001468, allocations: 193.5 kB / 16.67 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.66/2.66, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 67.91 kB / 1.054 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.101/1.103, allocations: 157.4 MB / 1.208 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002266/1.105, allocations: 0.6983 MB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001046/1.106, allocations: 0.804 MB / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.865e-05/1.106, allocations: 0 / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/1.106, allocations: 3.938 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.923e-05/1.107, allocations: 3.938 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 7.161e-05/1.107, allocations: 15.98 kB / 1.209 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001018/1.107, allocations: 39.91 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/1.107, allocations: 12 kB / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.298e-05/1.107, allocations: 19.92 kB / 1.209 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.305e-05/1.107, allocations: 31.84 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/1.107, allocations: 4 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.898e-06/1.107, allocations: 4 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/1.107, allocations: 11.92 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.694e-05/1.107, allocations: 19.86 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001072/1.107, allocations: 35.88 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/1.107, allocations: 0 / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.793e-06/1.107, allocations: 0 / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.253e-05/1.107, allocations: 0 / 1.209 GB, free: 11.84 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006033/1.108, allocations: 375.2 kB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/1.108, allocations: 8.031 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/1.108, allocations: 8.844 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/1.108, allocations: 166.2 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/1.108, allocations: 384 / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/1.108, allocations: 384 / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/1.108, allocations: 78.2 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/1.109, allocations: 8.125 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/1.109, allocations: 3.938 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/1.109, allocations: 0 / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003022/1.109, allocations: 63.92 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004415/1.109, allocations: 264.9 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/1.11, allocations: 62.47 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/1.11, allocations: 36.92 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/1.11, allocations: 7.938 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/1.11, allocations: 30.56 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.413e-06/1.11, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005911/1.11, allocations: 129.6 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/1.11, allocations: 51.41 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/1.11, allocations: 113.8 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/1.111, allocations: 25.7 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/1.111, allocations: 92.05 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/1.111, allocations: 15.83 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/1.111, allocations: 13.72 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001411/1.111, allocations: 314.8 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/1.111, allocations: 35.89 kB / 1.211 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/1.111, allocations: 27.97 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/1.111, allocations: 72.78 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/1.111, allocations: 3.938 kB / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003459/1.112, allocations: 93.62 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/1.112, allocations: 8 kB / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/1.112, allocations: 0 / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/1.112, allocations: 0 / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/1.112, allocations: 15.98 kB / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/1.112, allocations: 0 / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.769e-05/1.112, allocations: 19.97 kB / 1.211 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/1.112, allocations: 7.875 kB / 1.212 GB, free: 9.504 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 8.815e-05/1.112, allocations: 117.7 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/1.112, allocations: 7.906 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/1.112, allocations: 7.906 kB / 1.212 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/1.112, allocations: 4 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/1.112, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.112, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/1.113, allocations: 173.6 kB / 1.212 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.113, allocations: 0 / 1.212 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.75e-05/1.113, allocations: 11.98 kB / 1.212 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/1.113, allocations: 336 / 1.212 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/1.113, allocations: 8 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/1.113, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/1.113, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000432/1.113, allocations: 199.4 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.815e-05/1.113, allocations: 84.95 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/1.113, allocations: 8 kB / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/1.113, allocations: 11.98 kB / 1.212 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.286e-05/1.113, allocations: 7.984 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/1.113, allocations: 0 / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.236e-05/1.113, allocations: 83.28 kB / 1.212 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3e-07/1.113, allocations: 4 kB / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002229/1.114, allocations: 4 kB / 1.212 GB, free: 8.68 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.0001754/1.114, allocations: 107.2 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003724/1.114, allocations: 67.92 kB / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.114, allocations: 0 / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001612/1.114, allocations: 35.91 kB / 1.212 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/1.115, allocations: 15.88 kB / 1.212 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005627/1.115, allocations: 133.5 kB / 1.213 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/1.116, allocations: 0.6807 MB / 1.213 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.03e-05/1.116, allocations: 0 / 1.213 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.38e-05/1.116, allocations: 11.44 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of SimCode: time 6.21e-07/1.116, allocations: 0 / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of Templates: time 0.003332/1.119, allocations: 0.7011 MB / 1.214 GB, free: 6.879 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches