Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001492/0.001492, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002173/0.002173, allocations: 195.4 kB / 16.14 MB, free: 6.688 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.49/1.49, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.09/3.09, allocations: 472.6 MB / 0.7447 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 62.91 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3893, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003798/0.3931, allocations: 2.02 MB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3944, allocations: 0.6428 MB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.747e-05/0.3945, allocations: 3.938 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.38e-05/0.3946, allocations: 11.86 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.3947, allocations: 35.7 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.3951, allocations: 135.8 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002995/0.3955, allocations: 307.1 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.3956, allocations: 44.38 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.3958, allocations: 115.7 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.396, allocations: 147.4 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.3961, allocations: 16 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.132e-05/0.3961, allocations: 20 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.929e-05/0.3962, allocations: 67.78 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.3963, allocations: 119.4 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.3966, allocations: 295.2 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3967, allocations: 0 / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.62e-07/0.3967, allocations: 0 / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.3967, allocations: 0 / 1.071 GB, free: 6.902 MB / 0.8262 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.00132/0.398, allocations: 0.6274 MB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3981, allocations: 8.031 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.653e-05/0.3981, allocations: 32.66 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000183/0.3983, allocations: 204.7 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/0.3986, allocations: 268.3 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.3986, allocations: 28.38 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.3992, allocations: 265.9 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.3992, allocations: 7.844 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.3992, allocations: 11.98 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3993, allocations: 8 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004403/0.3997, allocations: 179.8 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.4008, allocations: 0.7814 MB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.4013, allocations: 202.7 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002567/0.4016, allocations: 142.5 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.345e-05/0.4017, allocations: 7.984 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006072/0.4023, allocations: 303.7 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.265e-06/0.4023, allocations: 3.938 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.00117/0.4035, allocations: 487.2 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.4035, allocations: 118.8 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.4037, allocations: 171.5 kB / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.4038, allocations: 41.7 kB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.358e-05/0.4039, allocations: 113.3 kB / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.404, allocations: 150 kB / 1.075 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.4042, allocations: 106.3 kB / 1.076 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.4043, allocations: 342.8 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.4046, allocations: 141.2 kB / 1.076 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.405, allocations: 257.6 kB / 1.076 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.4056, allocations: 394.1 kB / 1.077 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4056, allocations: 4 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009155/0.4066, allocations: 489.2 kB / 1.077 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.4066, allocations: 11.94 kB / 1.077 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4066, allocations: 0 / 1.077 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.4066, allocations: 8 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004059/0.4071, allocations: 95.81 kB / 1.077 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.4071, allocations: 19.88 kB / 1.077 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.4074, allocations: 59.56 kB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.483e-05/0.4074, allocations: 20 kB / 1.077 GB, free: 480 kB / 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.0002371/0.4077, allocations: 164.5 kB / 1.077 GB, free: 308 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.4077, allocations: 27.75 kB / 1.077 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.508e-05/0.4078, allocations: 41.86 kB / 1.077 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.4078, allocations: 4 kB / 1.077 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.4078, allocations: 4.062 kB / 1.077 GB, free: 232 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.4078, allocations: 3.984 kB / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.4083, allocations: 353.2 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4083, allocations: 4 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004028/0.4087, allocations: 75.83 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.4087, allocations: 4 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.4087, allocations: 12 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.4087, allocations: 4 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4088, allocations: 4 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.4099, allocations: 0.5745 MB / 1.078 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.4101, allocations: 108.6 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.4101, allocations: 19.98 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.4104, allocations: 27.97 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.4105, allocations: 55.92 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.4105, allocations: 19.98 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001185/0.4107, allocations: 125.2 kB / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4107, allocations: 0 / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003329/0.411, allocations: 83.91 kB / 1.079 GB, free: 14.68 MB / 0.8419 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.0002191/0.4112, allocations: 129.7 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007413/0.412, allocations: 374.7 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.412, allocations: 0 / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003907/0.4124, allocations: 213.4 kB / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.4128, allocations: 41.45 kB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.4142, allocations: 0.6978 MB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.4147, allocations: 0.7647 MB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001674/0.4148, allocations: 34.97 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.415, allocations: 39.42 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of SimCode: time 4.3e-07/0.415, allocations: 0 / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of Templates: time 0.008509/0.4235, allocations: 3.409 MB / 1.084 GB, free: 8.953 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1)