Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movingMean_1.y|movingMean_2.y|movingMean_3.y|movingMean_4.y|sinInp50sDel.y|movingMean_6.y|movingMean_7.y|sinInp100sDel.y|movingMean_8.y|movingMean_9.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movingMean_1.y|movingMean_2.y|movingMean_3.y|movingMean_4.y|sinInp50sDel.y|movingMean_6.y|movingMean_7.y|sinInp100sDel.y|movingMean_8.y|movingMean_9.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.49/1.49, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 184.7 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.807/1.807, allocations: 205.4 MB / 0.5775 GB, free: 20.52 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009529/0.0009528, allocations: 94.28 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004038/0.0004033, allocations: 11 kB / 0.7963 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2869, allocations: 106.4 MB / 0.9001 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1897/0.4767, allocations: 132.5 MB / 1.029 GB, free: 11.63 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.477, allocations: 71.97 kB / 1.03 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02443/0.5015, allocations: 8.796 MB / 1.038 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.887e-06/0.5016, allocations: 0 / 1.038 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.822e-05/0.5016, allocations: 4 kB / 1.038 GB, free: 2.742 MB / 0.6823 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.001612/0.5032, allocations: 0.6262 MB / 1.039 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.5033, allocations: 8.031 kB / 1.039 GB, free: 2.055 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.5034, allocations: 35.62 kB / 1.039 GB, free: 2.02 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.5037, allocations: 191.6 kB / 1.039 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002679/0.504, allocations: 271.7 kB / 1.039 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.853e-05/0.5041, allocations: 24 kB / 1.039 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.5046, allocations: 269.7 kB / 1.04 GB, free: 1.168 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.5046, allocations: 4 kB / 1.04 GB, free: 1.164 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.5047, allocations: 11.98 kB / 1.04 GB, free: 1.152 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.5047, allocations: 4 kB / 1.04 GB, free: 1.148 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.5052, allocations: 183.8 kB / 1.04 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.5067, allocations: 0.8011 MB / 1.041 GB, free: 108 kB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.5073, allocations: 212.4 kB / 1.041 GB, free: 15.87 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.664e-05/0.5073, allocations: 16.16 kB / 1.041 GB, free: 15.86 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005924/0.5079, allocations: 311.6 kB / 1.041 GB, free: 15.53 MB / 0.698 GB Notification: Performance of pre-optimization done (n=48): time 2.645e-06/0.508, allocations: 0 / 1.041 GB, free: 15.53 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.001162/0.5091, allocations: 496.3 kB / 1.041 GB, free: 15.04 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.5093, allocations: 114.8 kB / 1.042 GB, free: 14.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.5095, allocations: 166.5 kB / 1.042 GB, free: 14.73 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.5095, allocations: 41.7 kB / 1.042 GB, free: 14.68 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.51e-05/0.5096, allocations: 121.3 kB / 1.042 GB, free: 14.56 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.5098, allocations: 145.9 kB / 1.042 GB, free: 14.42 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.5098, allocations: 12 kB / 1.042 GB, free: 14.41 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001896/0.51, allocations: 350.8 kB / 1.042 GB, free: 14.05 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.5104, allocations: 149.2 kB / 1.043 GB, free: 13.91 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004102/0.5108, allocations: 248.8 kB / 1.043 GB, free: 13.63 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.5112, allocations: 171.9 kB / 1.043 GB, free: 13.46 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.5112, allocations: 4 kB / 1.043 GB, free: 13.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009802/0.5122, allocations: 0.493 MB / 1.043 GB, free: 12.96 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.5122, allocations: 4 kB / 1.043 GB, free: 12.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.5122, allocations: 4 kB / 1.043 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/0.5123, allocations: 4.094 kB / 1.043 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004038/0.5127, allocations: 103.8 kB / 1.044 GB, free: 12.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.5127, allocations: 4 kB / 1.044 GB, free: 12.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.5131, allocations: 71.64 kB / 1.044 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/0.5131, allocations: 24.06 kB / 1.044 GB, free: 12.75 MB / 0.698 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.movingMean_1.mode,movingMean_1.mode,$whenCondition6,$PRE.movingMean_2.mode,movingMean_2.mode,$whenCondition7,$PRE.movingMean_3.mode,movingMean_3.mode,$whenCondition8,$PRE.movingMean_4.mode,movingMean_4.mode,$whenCondition9,$PRE.movingMean_5.mode,movingMean_5.mode,$whenCondition3,$PRE.movingMean_6.mode,movingMean_6.mode,$whenCondition4,$PRE.movingMean_7.mode,movingMean_7.mode,$whenCondition1,$PRE.movingMean_8.mode,movingMean_8.mode,$whenCondition2,$PRE.movingMean_9.mode,movingMean_9.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.000254/0.5134, allocations: 163.9 kB / 1.044 GB, free: 12.58 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.685e-05/0.5134, allocations: 31.72 kB / 1.044 GB, free: 12.55 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.582e-05/0.5135, allocations: 33.86 kB / 1.044 GB, free: 12.52 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.5135, allocations: 4 kB / 1.044 GB, free: 12.51 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.5136, allocations: 3.938 kB / 1.044 GB, free: 12.51 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.5136, allocations: 7.984 kB / 1.044 GB, free: 12.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004064/0.514, allocations: 357.1 kB / 1.044 GB, free: 12.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.514, allocations: 7.938 kB / 1.044 GB, free: 12.09 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000401/0.5144, allocations: 71.89 kB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.5144, allocations: 4 kB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.5145, allocations: 19.98 kB / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.5145, allocations: 4 kB / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5145, allocations: 0 / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.5156, allocations: 0.6253 MB / 1.045 GB, free: 11.34 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.846e-05/0.5157, allocations: 100.8 kB / 1.045 GB, free: 11.22 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.5158, allocations: 16.17 kB / 1.045 GB, free: 11.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.516, allocations: 43.97 kB / 1.045 GB, free: 11.16 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.5161, allocations: 39.89 kB / 1.045 GB, free: 11.12 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.5162, allocations: 19.98 kB / 1.045 GB, free: 11.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001041/0.5163, allocations: 128 kB / 1.045 GB, free: 10.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5163, allocations: 0 / 1.045 GB, free: 10.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003624/0.5167, allocations: 83.98 kB / 1.045 GB, free: 10.89 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.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.0002489/0.5169, allocations: 112.8 kB / 1.045 GB, free: 10.77 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007897/0.5177, allocations: 400.4 kB / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5177, allocations: 0 / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.5181, allocations: 184 kB / 1.046 GB, free: 10.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.5184, allocations: 39.34 kB / 1.046 GB, free: 10.17 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.5196, allocations: 0.7064 MB / 1.047 GB, free: 9.434 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.52, allocations: 0.7686 MB / 1.047 GB, free: 8.641 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001919/0.5202, allocations: 42.95 kB / 1.048 GB, free: 8.598 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.5203, allocations: 31.42 kB / 1.048 GB, free: 8.566 MB / 0.698 GB Notification: Performance of SimCode: time 3.11e-07/0.5203, allocations: 0 / 1.048 GB, free: 8.566 MB / 0.698 GB Notification: Performance of Templates: time 0.007049/0.5274, allocations: 3.034 MB / 1.051 GB, free: 5.562 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches