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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0009882/0.0009882, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.00108/0.00108, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 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: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.694/2.694, allocations: 436.5 MB / 0.7104 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003632, allocations: 12 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7629/0.7633, allocations: 153.6 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001171/0.7645, allocations: 0.7631 MB / 1.022 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.7658, allocations: 1.1 MB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.884e-05/0.7658, allocations: 4 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.807e-05/0.7659, allocations: 11.86 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.766, allocations: 43.84 kB / 1.023 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.7664, allocations: 119.8 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.7666, allocations: 199.5 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.7667, allocations: 44.3 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.7669, allocations: 111.7 kB / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.767, allocations: 135.5 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.7671, allocations: 16 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 3.478e-05/0.7671, allocations: 16 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.7672, allocations: 55.8 kB / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.248e-05/0.7672, allocations: 65.58 kB / 1.023 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001833/0.7674, allocations: 209.4 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.7674, allocations: 0 / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.506e-06/0.7675, allocations: 3.984 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.7675, allocations: 0 / 1.024 GB, free: 14.19 MB / 0.7794 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.001083/0.7686, allocations: 0.6119 MB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.7686, allocations: 15.98 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.773e-05/0.7687, allocations: 27.72 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.7688, allocations: 195.5 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001923/0.769, allocations: 267.7 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.7691, allocations: 35.86 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004629/0.7695, allocations: 261.7 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.7696, allocations: 4 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.7696, allocations: 8 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.7696, allocations: 4 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.77, allocations: 191.8 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.7711, allocations: 0.7778 MB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.7715, allocations: 228.8 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.7716, allocations: 4.188 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004975/0.7721, allocations: 323.4 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 1.663e-06/0.7721, allocations: 0 / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.0009619/0.7731, allocations: 495.7 kB / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.7731, allocations: 118.8 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.7733, allocations: 175.5 kB / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.7733, allocations: 37.7 kB / 1.027 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.7734, allocations: 121.2 kB / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.7735, allocations: 146 kB / 1.028 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.7735, allocations: 16 kB / 1.028 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.7737, allocations: 346.8 kB / 1.028 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.774, allocations: 145.2 kB / 1.028 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003421/0.7743, allocations: 260.7 kB / 1.028 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003007/0.7746, allocations: 164 kB / 1.028 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7746, allocations: 7.938 kB / 1.028 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007856/0.7754, allocations: 497 kB / 1.029 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.7755, allocations: 5.562 kB / 1.029 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.7755, allocations: 11.94 kB / 1.029 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.7755, allocations: 4 kB / 1.029 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.7759, allocations: 99.83 kB / 1.029 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.7759, allocations: 11.92 kB / 1.029 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.7762, allocations: 67.66 kB / 1.029 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.7762, allocations: 23.95 kB / 1.029 GB, free: 8.199 MB / 0.7794 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 ($whenCondition5,$PRE.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001518/0.7764, allocations: 157.4 kB / 1.029 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.7764, allocations: 23.72 kB / 1.029 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.504e-05/0.7765, allocations: 37.86 kB / 1.029 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.7765, allocations: 4 kB / 1.029 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.7765, allocations: 4 kB / 1.029 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.7765, allocations: 7.984 kB / 1.029 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.7769, allocations: 357 kB / 1.03 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.7769, allocations: 4 kB / 1.03 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.7772, allocations: 75.89 kB / 1.03 GB, free: 7.488 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.7773, allocations: 4 kB / 1.03 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.7773, allocations: 11.98 kB / 1.03 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.7773, allocations: 4 kB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.7773, allocations: 3.938 kB / 1.03 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.7783, allocations: 0.6169 MB / 1.03 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.762e-05/0.7784, allocations: 104.7 kB / 1.03 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.838e-05/0.7785, allocations: 15.98 kB / 1.031 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.7787, allocations: 48.03 kB / 1.031 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.5e-05/0.7788, allocations: 43.94 kB / 1.031 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/0.7788, allocations: 19.98 kB / 1.031 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.288e-05/0.7789, allocations: 125.2 kB / 1.031 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7789, allocations: 3.938 kB / 1.031 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003164/0.7792, allocations: 87.92 kB / 1.031 GB, free: 6.355 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001726/0.7794, allocations: 123.2 kB / 1.031 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00069/0.7801, allocations: 385.1 kB / 1.031 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7801, allocations: 0 / 1.031 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003379/0.7805, allocations: 187.7 kB / 1.031 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.7807, allocations: 36.73 kB / 1.032 GB, free: 5.629 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.7818, allocations: 0.7103 MB / 1.032 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.7821, allocations: 0.7725 MB / 1.033 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001486/0.7822, allocations: 34.97 kB / 1.033 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.94e-05/0.7823, allocations: 31.44 kB / 1.033 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.7824, allocations: 4 kB / 1.033 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.006017/0.7884, allocations: 2.986 MB / 1.036 GB, free: 1.062 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches