Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.MovingAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001164/0.001164, allocations: 193.4 kB / 16.14 MB, free: 6.66 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.365/1.365, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.76/2.76, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 74.05 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3434, allocations: 157.4 MB / 1.052 GB, free: 8.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.003305/0.3468, allocations: 1.146 MB / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.3487, allocations: 1.123 MB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.866e-05/0.3488, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.698e-05/0.3489, allocations: 7.875 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.349, allocations: 35.7 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005178/0.3496, allocations: 139.7 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003955/0.35, allocations: 299.2 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.3502, allocations: 64.14 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.3504, allocations: 115.6 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.3507, allocations: 143.4 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.3508, allocations: 20 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.763e-05/0.3508, allocations: 16 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.3509, allocations: 63.78 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.3511, allocations: 119.4 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003923/0.3515, allocations: 307.2 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3515, allocations: 0 / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3515, allocations: 0 / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.3515, allocations: 0 / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001753/0.3533, allocations: 0.6237 MB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3534, allocations: 8.031 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.3535, allocations: 36.56 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3537, allocations: 196.8 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.354, allocations: 268.3 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.012e-05/0.3541, allocations: 32.31 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007298/0.3548, allocations: 258.3 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.3549, allocations: 7.938 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.198e-05/0.3549, allocations: 4 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.355, allocations: 4 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007029/0.3557, allocations: 181.4 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.3573, allocations: 0.7814 MB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007121/0.358, allocations: 195.7 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.3584, allocations: 134.5 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.3585, allocations: 15.98 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007641/0.3593, allocations: 307.6 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.484e-06/0.3593, allocations: 224 / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001541/0.3608, allocations: 494.9 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.193e-05/0.3609, allocations: 118.8 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.3612, allocations: 179.4 kB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.679e-05/0.3612, allocations: 41.7 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.18e-05/0.3613, allocations: 117.3 kB / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.3615, allocations: 150 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.3618, allocations: 106.3 kB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001806/0.362, allocations: 342.8 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005011/0.3625, allocations: 149.2 kB / 1.06 GB, free: 228 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006156/0.3631, allocations: 252.8 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.3641, allocations: 393.9 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.3642, allocations: 4 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009752/0.3651, allocations: 488.8 kB / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3652, allocations: 11.94 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3652, allocations: 4.094 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.3652, allocations: 7.984 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.3656, allocations: 99.81 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.3656, allocations: 4 kB / 1.061 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.3659, allocations: 59.66 kB / 1.061 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.366, allocations: 23.94 kB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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 0.0001604/0.3661, allocations: 159.4 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.059e-05/0.3662, allocations: 35.64 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.561e-05/0.3662, allocations: 29.88 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3663, allocations: 4 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.3663, allocations: 7.938 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.3663, allocations: 7.984 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/0.3667, allocations: 353.1 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3667, allocations: 0 / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004061/0.3671, allocations: 75.97 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3671, allocations: 3.938 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.3671, allocations: 15.98 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3671, allocations: 4 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3671, allocations: 0 / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.3683, allocations: 0.5836 MB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.3684, allocations: 104.8 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.3684, allocations: 15.92 kB / 1.063 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.3687, allocations: 31.97 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3688, allocations: 55.92 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.3689, allocations: 19.98 kB / 1.063 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.237e-05/0.369, allocations: 121.2 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.369, allocations: 0 / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003392/0.3693, allocations: 80 kB / 1.063 GB, free: 13.03 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0002101/0.3696, allocations: 131 kB / 1.063 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007343/0.3703, allocations: 388.6 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3703, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003935/0.3707, allocations: 203.7 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.371, allocations: 48.03 kB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3722, allocations: 0.6976 MB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3725, allocations: 0.7725 MB / 1.065 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001658/0.3727, allocations: 34.97 kB / 1.065 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.3728, allocations: 39.42 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3728, allocations: 0 / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of Templates: time 0.007015/0.3799, allocations: 3.399 MB / 1.069 GB, free: 7.301 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches