Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 81.95 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 166.6 kB / 24.87 MB, free: 8.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.031/1.031, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.929/1.929, allocations: 377.9 MB / 0.6247 GB, free: 8.418 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 0.8129 GB, free: 1.402 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.614e-05/2.85e-05, allocations: 6.25 kB / 0.8129 GB, free: 1.395 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002694/0.002723, allocations: 1.968 MB / 0.8148 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.003808, allocations: 0.7136 MB / 0.8155 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.003906, allocations: 4 kB / 0.8155 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.466e-05/0.00395, allocations: 19.69 kB / 0.8155 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.004059, allocations: 48.84 kB / 0.8156 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.00446, allocations: 179.6 kB / 0.8157 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.00473, allocations: 336.6 kB / 0.816 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.004854, allocations: 32.92 kB / 0.8161 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.005086, allocations: 203.5 kB / 0.8163 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.005226, allocations: 124.3 kB / 0.8164 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.005264, allocations: 32 kB / 0.8164 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.799e-05/0.005322, allocations: 32.53 kB / 0.8165 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.754e-05/0.005369, allocations: 77.08 kB / 0.8165 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.403e-05/0.005433, allocations: 95.78 kB / 0.8166 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.005655, allocations: 239.2 kB / 0.8168 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.005657, allocations: 0 / 0.8168 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.272e-06/0.005658, allocations: 0.5312 kB / 0.8168 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.005663, allocations: 1.375 kB / 0.8168 GB, free: 13.32 MB / 0.7761 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.0007394/0.006402, allocations: 0.667 MB / 0.8175 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.00644, allocations: 15.97 kB / 0.8175 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.00667, allocations: 77.55 kB / 0.8176 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.006892, allocations: 198.4 kB / 0.8178 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.007105, allocations: 495.7 kB / 0.8182 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.007143, allocations: 28.38 kB / 0.8183 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.007402, allocations: 220.3 kB / 0.8185 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.00742, allocations: 6.828 kB / 0.8185 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.007439, allocations: 12.12 kB / 0.8185 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.007446, allocations: 4 kB / 0.8185 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.007557, allocations: 75.86 kB / 0.8186 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006348/0.008192, allocations: 0.748 MB / 0.8193 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.008421, allocations: 164 kB / 0.8195 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.49e-05/0.008496, allocations: 80.91 kB / 0.8195 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.008527, allocations: 15.92 kB / 0.8196 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.008756, allocations: 250.3 kB / 0.8198 GB, free: 10 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.008759, allocations: 0 / 0.8198 GB, free: 10 MB / 0.7761 GB Notification: Performance of matching and sorting (n=48): time 0.0004311/0.00919, allocations: 346.3 kB / 0.8201 GB, free: 9.664 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.009243, allocations: 115.2 kB / 0.8202 GB, free: 9.527 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.009364, allocations: 247.6 kB / 0.8205 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.009392, allocations: 41.7 kB / 0.8205 GB, free: 9.223 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.009457, allocations: 164 kB / 0.8207 GB, free: 9.059 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.573e-05/0.009542, allocations: 159.5 kB / 0.8208 GB, free: 8.902 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.908e-05/0.009642, allocations: 115.9 kB / 0.8209 GB, free: 8.781 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.009766, allocations: 0.5162 MB / 0.8214 GB, free: 8.254 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.91e-05/0.009845, allocations: 62.11 kB / 0.8215 GB, free: 8.195 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.009988, allocations: 210.6 kB / 0.8217 GB, free: 7.938 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.01022, allocations: 292 kB / 0.822 GB, free: 7.602 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.01022, allocations: 0.8438 kB / 0.822 GB, free: 7.602 MB / 0.7761 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0004988/0.01072, allocations: 369.4 kB / 0.8223 GB, free: 7.234 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.01074, allocations: 9.281 kB / 0.8223 GB, free: 7.227 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.01075, allocations: 4 kB / 0.8223 GB, free: 7.223 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.01076, allocations: 4 kB / 0.8223 GB, free: 7.219 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.01096, allocations: 92.67 kB / 0.8224 GB, free: 7.129 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.01097, allocations: 12 kB / 0.8224 GB, free: 7.117 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.0111, allocations: 60.92 kB / 0.8225 GB, free: 7.059 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.01112, allocations: 20 kB / 0.8225 GB, free: 7.039 MB / 0.7761 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.0001286/0.01125, allocations: 203.7 kB / 0.8227 GB, free: 6.828 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.0113, allocations: 40.8 kB / 0.8228 GB, free: 6.789 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.01134, allocations: 29.97 kB / 0.8228 GB, free: 6.766 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.01135, allocations: 5.125 kB / 0.8228 GB, free: 6.762 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.01135, allocations: 7.922 kB / 0.8228 GB, free: 6.754 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.01136, allocations: 7.938 kB / 0.8228 GB, free: 6.746 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.01155, allocations: 206 kB / 0.823 GB, free: 6.52 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.01156, allocations: 7.938 kB / 0.823 GB, free: 6.512 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.01176, allocations: 71.89 kB / 0.8231 GB, free: 6.441 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.01177, allocations: 5.094 kB / 0.8231 GB, free: 6.438 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.01179, allocations: 8 kB / 0.8231 GB, free: 6.43 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.01179, allocations: 7.984 kB / 0.8231 GB, free: 6.422 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.01179, allocations: 1.062 kB / 0.8231 GB, free: 6.422 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004766/0.01227, allocations: 426.8 kB / 0.8235 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.483e-05/0.0123, allocations: 32.23 kB / 0.8235 GB, free: 5.945 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.01233, allocations: 13.31 kB / 0.8235 GB, free: 5.934 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.01243, allocations: 27.97 kB / 0.8236 GB, free: 5.906 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.908e-05/0.01253, allocations: 64.78 kB / 0.8236 GB, free: 5.844 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.01255, allocations: 15.98 kB / 0.8237 GB, free: 5.828 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.982e-05/0.01262, allocations: 160.4 kB / 0.8238 GB, free: 5.672 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.2e-07/0.01262, allocations: 0 / 0.8238 GB, free: 5.672 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002173/0.01284, allocations: 79.98 kB / 0.8239 GB, free: 5.594 MB / 0.7761 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.0001552/0.01299, allocations: 116.8 kB / 0.824 GB, free: 5.469 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002997/0.01329, allocations: 252.7 kB / 0.8242 GB, free: 5.219 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.0133, allocations: 4 kB / 0.8242 GB, free: 5.215 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.01343, allocations: 123.4 kB / 0.8244 GB, free: 5.094 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.01368, allocations: 49.69 kB / 0.8244 GB, free: 5.047 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009011/0.01458, allocations: 0.5869 MB / 0.825 GB, free: 4.422 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.068e-05/0.01464, allocations: 97.61 kB / 0.8251 GB, free: 4.305 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.01475, allocations: 39.48 kB / 0.8251 GB, free: 4.273 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.01492, allocations: 138.2 kB / 0.8252 GB, free: 4.137 MB / 0.7761 GB Notification: Performance of SimCode: time 1.112e-06/0.01492, allocations: 0 / 0.8252 GB, free: 4.137 MB / 0.7761 GB Notification: Performance of Templates: time 0.006671/0.02159, allocations: 4.483 MB / 0.8296 GB, free: 15.73 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.268988749012351]