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.007621/0.007621, allocations: 108.8 kB / 15.74 MB, free: 6.441 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.001642/0.001642, allocations: 195.1 kB / 16.67 MB, free: 6.355 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.056/3.056, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 71.91 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4365/0.438, allocations: 157.4 MB / 1.208 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002306/0.4404, allocations: 0.71 MB / 1.208 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.4416, allocations: 0.8001 MB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.801e-05/0.4416, allocations: 0 / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.121e-05/0.4417, allocations: 3.938 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.519e-05/0.4418, allocations: 3.938 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 6.954e-05/0.4419, allocations: 7.984 kB / 1.209 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.442, allocations: 51.84 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.4421, allocations: 19.92 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.559e-05/0.4422, allocations: 11.98 kB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.993e-05/0.4422, allocations: 27.84 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.4423, allocations: 4 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.4423, allocations: 4 kB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.503e-05/0.4423, allocations: 4 kB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.79e-05/0.4424, allocations: 19.92 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.4425, allocations: 39.81 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4425, allocations: 0 / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4425, allocations: 0 / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.4425, allocations: 0 / 1.209 GB, free: 7.906 MB / 0.9669 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.0006384/0.4432, allocations: 367.4 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.4432, allocations: 8.625 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.4433, allocations: 8.844 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.4434, allocations: 180.2 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.4434, allocations: 384 / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.4434, allocations: 384 / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.4437, allocations: 78.16 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.4437, allocations: 192 / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.4437, allocations: 3.938 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.4438, allocations: 0 / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.4441, allocations: 63.92 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.4445, allocations: 265 kB / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.4448, allocations: 62.41 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.4449, allocations: 36.91 kB / 1.21 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.4449, allocations: 4 kB / 1.21 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.445, allocations: 38.56 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.445, allocations: 3.938 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005394/0.4456, allocations: 125.6 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.4456, allocations: 51.41 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.22e-05/0.4457, allocations: 113.8 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.4457, allocations: 29.7 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.4458, allocations: 88.05 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.4458, allocations: 7.891 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.4459, allocations: 17.72 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.4461, allocations: 310.8 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.4462, allocations: 39.89 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.4464, allocations: 31.97 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.4466, allocations: 68.78 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4467, allocations: 3.938 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003193/0.447, allocations: 97.62 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.447, allocations: 4 kB / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.447, allocations: 0 / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.447, allocations: 3.938 kB / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.4472, allocations: 19.98 kB / 1.211 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.4472, allocations: 0 / 1.211 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.225e-05/0.4473, allocations: 19.88 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.4473, allocations: 4 kB / 1.212 GB, free: 5.566 MB / 0.9669 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.83e-05/0.4474, allocations: 117.8 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.4474, allocations: 0 / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.4475, allocations: 7.906 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.4475, allocations: 0 / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4475, allocations: 4 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4475, allocations: 0 / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.4477, allocations: 173.6 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4477, allocations: 0 / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.382e-05/0.4478, allocations: 11.98 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4478, allocations: 4 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.4478, allocations: 4 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.4478, allocations: 0 / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4478, allocations: 0 / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.4482, allocations: 199.2 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.4482, allocations: 85.05 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.4483, allocations: 4 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4484, allocations: 11.98 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.702e-05/0.4484, allocations: 8.359 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.4484, allocations: 0 / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.352e-05/0.4485, allocations: 83.28 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4485, allocations: 0 / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002177/0.4487, allocations: 11.94 kB / 1.212 GB, free: 4.754 MB / 0.9669 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.0001658/0.4489, allocations: 103.2 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003442/0.4492, allocations: 71.89 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4493, allocations: 3.938 kB / 1.212 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.4494, allocations: 39.91 kB / 1.212 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.4497, allocations: 11.94 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003967/0.4501, allocations: 141.2 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.4506, allocations: 0.6807 MB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.546e-05/0.4506, allocations: 0 / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.4507, allocations: 15.44 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of SimCode: time 3e-07/0.4507, allocations: 0 / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of Templates: time 0.002961/0.4536, allocations: 0.6843 MB / 1.214 GB, free: 2.957 MB / 0.9669 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