Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.303/2.303, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001089/0.001089, allocations: 187.9 kB / 0.4902 GB, free: 2.223 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.68/1.68, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.0009306/0.0009305, allocations: 105.1 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004017/0.0004019, allocations: 10.47 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2894, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1937/0.4832, allocations: 150.6 MB / 1.376 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.4835, allocations: 71.95 kB / 1.376 GB, free: 2.891 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0245/0.508, allocations: 8.737 MB / 1.385 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.683e-06/0.508, allocations: 4 kB / 1.385 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.315e-05/0.5081, allocations: 4 kB / 1.385 GB, free: 10.12 MB / 0.8855 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.001189/0.5093, allocations: 0.6261 MB / 1.386 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.5093, allocations: 16.5 kB / 1.386 GB, free: 9.434 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.526e-05/0.5094, allocations: 31.7 kB / 1.386 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.5096, allocations: 183.6 kB / 1.386 GB, free: 9.18 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/0.5098, allocations: 263.8 kB / 1.386 GB, free: 8.867 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/0.5099, allocations: 35.92 kB / 1.386 GB, free: 8.832 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.5104, allocations: 261.7 kB / 1.386 GB, free: 8.562 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.5104, allocations: 3.906 kB / 1.386 GB, free: 8.559 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.5105, allocations: 15.98 kB / 1.386 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.5105, allocations: 4 kB / 1.386 GB, free: 8.539 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004144/0.5109, allocations: 191.8 kB / 1.387 GB, free: 8.352 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.5121, allocations: 0.805 MB / 1.387 GB, free: 7.484 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.5126, allocations: 208.5 kB / 1.387 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.5126, allocations: 16.17 kB / 1.388 GB, free: 7.238 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000515/0.5131, allocations: 299.7 kB / 1.388 GB, free: 6.922 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 1.864e-06/0.5131, allocations: 0 / 1.388 GB, free: 6.922 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001017/0.5142, allocations: 498.1 kB / 1.388 GB, free: 6.43 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.5143, allocations: 122.8 kB / 1.388 GB, free: 6.285 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.5144, allocations: 162.5 kB / 1.389 GB, free: 6.117 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.5145, allocations: 41.7 kB / 1.389 GB, free: 6.07 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/0.5145, allocations: 117.3 kB / 1.389 GB, free: 5.953 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.5147, allocations: 150 kB / 1.389 GB, free: 5.805 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.517e-05/0.5147, allocations: 8 kB / 1.389 GB, free: 5.797 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5148, allocations: 350.7 kB / 1.389 GB, free: 5.445 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.5151, allocations: 157.2 kB / 1.389 GB, free: 5.293 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.5155, allocations: 252.8 kB / 1.39 GB, free: 5.008 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.5158, allocations: 167.9 kB / 1.39 GB, free: 4.844 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5158, allocations: 0 / 1.39 GB, free: 4.844 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008356/0.5167, allocations: 0.4898 MB / 1.39 GB, free: 4.348 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.5167, allocations: 4 kB / 1.39 GB, free: 4.344 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.5167, allocations: 7.984 kB / 1.39 GB, free: 4.336 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.5167, allocations: 8 kB / 1.39 GB, free: 4.328 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/0.5171, allocations: 99.83 kB / 1.39 GB, free: 4.23 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.5171, allocations: 7.984 kB / 1.39 GB, free: 4.223 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.5174, allocations: 71.66 kB / 1.39 GB, free: 4.152 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.172e-05/0.5175, allocations: 16 kB / 1.39 GB, free: 4.137 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.0001571/0.5176, allocations: 171.4 kB / 1.391 GB, free: 3.961 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.5177, allocations: 31.61 kB / 1.391 GB, free: 3.93 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.863e-05/0.5178, allocations: 29.94 kB / 1.391 GB, free: 3.898 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/0.5178, allocations: 8 kB / 1.391 GB, free: 3.891 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5178, allocations: 4 kB / 1.391 GB, free: 3.887 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.5178, allocations: 3.984 kB / 1.391 GB, free: 3.883 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003426/0.5182, allocations: 353.1 kB / 1.391 GB, free: 3.488 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.5182, allocations: 4 kB / 1.391 GB, free: 3.484 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004135/0.5186, allocations: 79.89 kB / 1.391 GB, free: 3.406 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.5186, allocations: 3.938 kB / 1.391 GB, free: 3.402 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.5186, allocations: 15.98 kB / 1.391 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5186, allocations: 4 kB / 1.391 GB, free: 3.383 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5187, allocations: 0 / 1.391 GB, free: 3.383 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.5197, allocations: 0.6217 MB / 1.392 GB, free: 2.719 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.457e-05/0.5198, allocations: 100.9 kB / 1.392 GB, free: 2.602 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.5198, allocations: 15.92 kB / 1.392 GB, free: 2.586 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.5201, allocations: 43.97 kB / 1.392 GB, free: 2.543 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.5202, allocations: 47.89 kB / 1.392 GB, free: 2.496 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.5202, allocations: 8 kB / 1.392 GB, free: 2.488 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.227e-05/0.5203, allocations: 121.2 kB / 1.392 GB, free: 2.371 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5203, allocations: 0 / 1.392 GB, free: 2.371 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003102/0.5206, allocations: 83.98 kB / 1.392 GB, free: 2.289 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.0002001/0.5209, allocations: 128.8 kB / 1.392 GB, free: 2.156 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000703/0.5216, allocations: 386.6 kB / 1.393 GB, free: 1.781 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5216, allocations: 3.938 kB / 1.393 GB, free: 1.777 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.5219, allocations: 189.3 kB / 1.393 GB, free: 1.594 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.5222, allocations: 41.14 kB / 1.393 GB, free: 1.555 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.5233, allocations: 0.6952 MB / 1.393 GB, free: 0.832 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.5236, allocations: 0.7725 MB / 1.394 GB, free: 36 kB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00016/0.5238, allocations: 35.16 kB / 1.394 GB, free: 0 / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.5239, allocations: 35.42 kB / 1.394 GB, free: 15.96 MB / 0.9011 GB Notification: Performance of SimCode: time 4.11e-07/0.5239, allocations: 0 / 1.394 GB, free: 15.96 MB / 0.9011 GB Notification: Performance of Templates: time 0.006099/0.53, allocations: 3.011 MB / 1.397 GB, free: 12.98 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches