Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.313/2.313, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 181 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.648/1.648, allocations: 223.2 MB / 0.7948 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009146/0.0009145, allocations: 100.2 kB / 0.9346 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004119, allocations: 15.19 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.283, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1927/0.4757, allocations: 149.8 MB / 1.369 GB, free: 12.27 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.476, allocations: 67.97 kB / 1.369 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02351/0.4995, allocations: 8.735 MB / 1.378 GB, free: 3.453 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.214e-06/0.4995, allocations: 0 / 1.378 GB, free: 3.453 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.4996, allocations: 4 kB / 1.378 GB, free: 3.449 MB / 0.8698 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.001194/0.5008, allocations: 0.6297 MB / 1.378 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.5008, allocations: 8.031 kB / 1.378 GB, free: 2.762 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.859e-05/0.5009, allocations: 35.72 kB / 1.378 GB, free: 2.727 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.5011, allocations: 195.5 kB / 1.379 GB, free: 2.492 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.5013, allocations: 271.7 kB / 1.379 GB, free: 2.172 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.5014, allocations: 27.91 kB / 1.379 GB, free: 2.145 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.5019, allocations: 269.7 kB / 1.379 GB, free: 1.863 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.5019, allocations: 3.938 kB / 1.379 GB, free: 1.859 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.502, allocations: 8 kB / 1.379 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.502, allocations: 4 kB / 1.379 GB, free: 1.848 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.5024, allocations: 195.8 kB / 1.379 GB, free: 1.656 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.5036, allocations: 0.7936 MB / 1.38 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004606/0.5041, allocations: 208.3 kB / 1.38 GB, free: 0.5703 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.5042, allocations: 12.5 kB / 1.38 GB, free: 0.5586 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005223/0.5047, allocations: 323.4 kB / 1.381 GB, free: 228 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=48): time 2.234e-06/0.5047, allocations: 0 / 1.381 GB, free: 228 kB / 0.8698 GB Notification: Performance of matching and sorting (n=48): time 0.001024/0.5057, allocations: 493.9 kB / 1.381 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.5058, allocations: 126.7 kB / 1.381 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.5059, allocations: 162.6 kB / 1.381 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.506, allocations: 37.7 kB / 1.381 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.901e-05/0.5061, allocations: 117.2 kB / 1.382 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.5062, allocations: 153.9 kB / 1.382 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/0.5062, allocations: 12 kB / 1.382 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.5064, allocations: 346.8 kB / 1.382 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.5067, allocations: 149.2 kB / 1.382 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.507, allocations: 252.8 kB / 1.382 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.5073, allocations: 167.9 kB / 1.383 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5073, allocations: 4 kB / 1.383 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007845/0.5081, allocations: 0.493 MB / 1.383 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.5081, allocations: 4 kB / 1.383 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.5082, allocations: 4 kB / 1.383 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.5082, allocations: 4 kB / 1.383 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.5086, allocations: 103.8 kB / 1.383 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.5086, allocations: 7.938 kB / 1.383 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.5089, allocations: 67.66 kB / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.5089, allocations: 20 kB / 1.383 GB, free: 13.44 MB / 0.8855 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.0002179/0.5092, allocations: 167.4 kB / 1.383 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.573e-05/0.5092, allocations: 27.72 kB / 1.383 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.172e-05/0.5093, allocations: 29.88 kB / 1.384 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.5093, allocations: 4 kB / 1.384 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5093, allocations: 0 / 1.384 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.5093, allocations: 7.984 kB / 1.384 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.5097, allocations: 361.2 kB / 1.384 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5097, allocations: 8 kB / 1.384 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.5101, allocations: 79.89 kB / 1.384 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.5101, allocations: 4 kB / 1.384 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.5102, allocations: 8 kB / 1.384 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.5102, allocations: 7.938 kB / 1.384 GB, free: 12.69 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5102, allocations: 0 / 1.384 GB, free: 12.69 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009995/0.5112, allocations: 0.6169 MB / 1.385 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.5113, allocations: 108.8 kB / 1.385 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.5113, allocations: 12 kB / 1.385 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.5116, allocations: 39.97 kB / 1.385 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.5117, allocations: 43.89 kB / 1.385 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.048e-05/0.5117, allocations: 20 kB / 1.385 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.302e-05/0.5118, allocations: 125.2 kB / 1.385 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5118, allocations: 0 / 1.385 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003269/0.5121, allocations: 87.84 kB / 1.385 GB, free: 11.59 MB / 0.8855 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.0002151/0.5124, allocations: 127.9 kB / 1.385 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007174/0.5131, allocations: 400.8 kB / 1.385 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5131, allocations: 0 / 1.385 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.5134, allocations: 184.7 kB / 1.386 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.5137, allocations: 33.47 kB / 1.386 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.5148, allocations: 0.697 MB / 1.386 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.5152, allocations: 0.7764 MB / 1.387 GB, free: 9.332 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001942/0.5154, allocations: 43.22 kB / 1.387 GB, free: 9.289 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.5156, allocations: 27.44 kB / 1.387 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of SimCode: time 3.31e-07/0.5156, allocations: 0 / 1.387 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of Templates: time 0.00647/0.522, allocations: 3.006 MB / 1.39 GB, free: 6.285 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches