Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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_nonZeroStart,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_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,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_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001507, 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.001681/0.001681, allocations: 177.3 kB / 15.94 MB, free: 228 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.485/1.485, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.759/2.759, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000458/0.0004585, allocations: 12 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8624/0.8629, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002185/0.8652, allocations: 1.615 MB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.8662, allocations: 0.6277 MB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.033e-05/0.8663, allocations: 0 / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.601e-05/0.8663, allocations: 7.875 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.8665, allocations: 39.91 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.8669, allocations: 131.7 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.8671, allocations: 187.6 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.8673, allocations: 44.31 kB / 1.023 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.8674, allocations: 107.7 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.8676, allocations: 127.5 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.8676, allocations: 20 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 3.609e-05/0.8677, allocations: 16 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.817e-05/0.8678, allocations: 63.78 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.586e-05/0.8678, allocations: 65.58 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.868, allocations: 205.4 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.868, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8681, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.8681, allocations: 0 / 1.024 GB, free: 13.84 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.001157/0.8692, allocations: 0.6002 MB / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.8693, allocations: 19.98 kB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.366e-05/0.8694, allocations: 39.61 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.8695, allocations: 195.6 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.8698, allocations: 267.6 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.8698, allocations: 35.94 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.8703, allocations: 261.7 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.8703, allocations: 7.984 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.8704, allocations: 4 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.8704, allocations: 4 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004159/0.8708, allocations: 187.9 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.8719, allocations: 0.7816 MB / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.8724, allocations: 216.6 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.216e-05/0.8725, allocations: 20.16 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005405/0.873, allocations: 303.5 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 3.116e-06/0.873, allocations: 0 / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001068/0.8741, allocations: 0.4919 MB / 1.027 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.143e-05/0.8742, allocations: 114.8 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.8744, allocations: 175.4 kB / 1.028 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.535e-05/0.8744, allocations: 45.69 kB / 1.028 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.338e-05/0.8745, allocations: 117.3 kB / 1.028 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.8746, allocations: 150 kB / 1.028 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/0.8747, allocations: 8 kB / 1.028 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.8748, allocations: 346.8 kB / 1.028 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/0.8751, allocations: 149.2 kB / 1.028 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/0.8755, allocations: 260.6 kB / 1.029 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.8758, allocations: 175.9 kB / 1.029 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8758, allocations: 0 / 1.029 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008095/0.8766, allocations: 493.5 kB / 1.029 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.8767, allocations: 4 kB / 1.029 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.8767, allocations: 4 kB / 1.029 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.8767, allocations: 12 kB / 1.029 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003812/0.8771, allocations: 99.83 kB / 1.029 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.8771, allocations: 7.938 kB / 1.029 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.8774, allocations: 67.66 kB / 1.029 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.8774, allocations: 27.94 kB / 1.029 GB, free: 7.859 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.0001992/0.8777, allocations: 161.4 kB / 1.03 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.8777, allocations: 27.72 kB / 1.03 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.264e-05/0.8778, allocations: 33.86 kB / 1.03 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.8778, allocations: 4 kB / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.8778, allocations: 0 / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.8778, allocations: 8 kB / 1.03 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/0.8782, allocations: 365 kB / 1.03 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.8782, allocations: 0 / 1.03 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000381/0.8786, allocations: 71.89 kB / 1.03 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.8786, allocations: 4 kB / 1.03 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.8787, allocations: 15.98 kB / 1.03 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.8787, allocations: 8.062 kB / 1.03 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.8787, allocations: 3.938 kB / 1.03 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.8798, allocations: 0.6245 MB / 1.031 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/0.8799, allocations: 104.8 kB / 1.031 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.8799, allocations: 4 kB / 1.031 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.8801, allocations: 51.95 kB / 1.031 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.8803, allocations: 39.91 kB / 1.031 GB, free: 6.238 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.8803, allocations: 15.98 kB / 1.031 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.815e-05/0.8804, allocations: 129.2 kB / 1.031 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8804, allocations: 192 / 1.031 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003146/0.8807, allocations: 79.94 kB / 1.031 GB, free: 6.02 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.0002057/0.8809, allocations: 131.1 kB / 1.031 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007438/0.8817, allocations: 386.7 kB / 1.032 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8817, allocations: 0 / 1.032 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.8821, allocations: 195.7 kB / 1.032 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.8823, allocations: 33.48 kB / 1.032 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.8834, allocations: 0.6948 MB / 1.033 GB, free: 4.555 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.8838, allocations: 0.7686 MB / 1.033 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001495/0.8839, allocations: 42.95 kB / 1.033 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.884, allocations: 27.44 kB / 1.033 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of SimCode: time 6.72e-07/0.884, allocations: 0 / 1.033 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of Templates: time 0.006733/0.8908, allocations: 3.001 MB / 1.036 GB, free: 0.7188 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches