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.432/1.432, allocations: 249.5 MB / 257 MB, free: 6.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009996/0.0009997, allocations: 175.5 kB / 316.3 MB, free: 3.234 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.634/1.634, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0008357/0.0008357, allocations: 83.52 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.192e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2405, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7841/1.025, allocations: 132.7 MB / 1.015 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/1.025, allocations: 73.03 kB / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02282/1.048, allocations: 8.701 MB / 1.023 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.393e-06/1.048, allocations: 0 / 1.023 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.051e-05/1.048, allocations: 4 kB / 1.023 GB, free: 13.98 MB / 0.6511 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.001078/1.049, allocations: 0.5961 MB / 1.024 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/1.049, allocations: 8.031 kB / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.987e-05/1.049, allocations: 31.72 kB / 1.024 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/1.049, allocations: 210.2 kB / 1.024 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/1.05, allocations: 247.8 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.147e-05/1.05, allocations: 27.34 kB / 1.024 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002689/1.05, allocations: 126.1 kB / 1.025 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/1.05, allocations: 221.1 kB / 1.025 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/1.05, allocations: 7.938 kB / 1.025 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/1.05, allocations: 3.984 kB / 1.025 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/1.05, allocations: 4 kB / 1.025 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/1.051, allocations: 0.7563 MB / 1.026 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/1.052, allocations: 172.9 kB / 1.026 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/1.052, allocations: 115.4 kB / 1.026 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/1.052, allocations: 4.938 kB / 1.026 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004153/1.052, allocations: 283 kB / 1.026 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 1.934e-06/1.052, allocations: 0 / 1.026 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.0005356/1.053, allocations: 304.4 kB / 1.026 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/1.053, allocations: 114.8 kB / 1.027 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/1.053, allocations: 146.1 kB / 1.027 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/1.053, allocations: 25.7 kB / 1.027 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/1.053, allocations: 125.4 kB / 1.027 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000119/1.054, allocations: 146.2 kB / 1.027 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/1.054, allocations: 0 / 1.027 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001604/1.054, allocations: 340.8 kB / 1.027 GB, free: 10.18 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/1.054, allocations: 124.4 kB / 1.027 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/1.054, allocations: 211.8 kB / 1.028 GB, free: 9.922 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/1.054, allocations: 142.1 kB / 1.028 GB, free: 9.824 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/1.054, allocations: 0 / 1.028 GB, free: 9.824 MB / 0.6511 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005633/1.055, allocations: 396.9 kB / 1.028 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/1.055, allocations: 10.19 kB / 1.028 GB, free: 9.508 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/1.055, allocations: 3.938 kB / 1.028 GB, free: 9.504 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/1.055, allocations: 8 kB / 1.028 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003714/1.055, allocations: 95.36 kB / 1.028 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/1.055, allocations: 4 kB / 1.028 GB, free: 9.402 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/1.056, allocations: 67.58 kB / 1.028 GB, free: 9.336 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/1.056, allocations: 27.19 kB / 1.028 GB, free: 9.316 MB / 0.6511 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 () * 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.0001245/1.056, allocations: 123.1 kB / 1.028 GB, free: 9.191 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.553e-05/1.056, allocations: 30.66 kB / 1.028 GB, free: 9.164 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.449e-05/1.056, allocations: 27.52 kB / 1.028 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/1.056, allocations: 4 kB / 1.028 GB, free: 9.148 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.056, allocations: 4.062 kB / 1.028 GB, free: 9.145 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.954e-06/1.056, allocations: 4 kB / 1.028 GB, free: 9.141 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003185/1.056, allocations: 306.8 kB / 1.029 GB, free: 8.848 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/1.056, allocations: 0 / 1.029 GB, free: 8.848 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/1.057, allocations: 79.14 kB / 1.029 GB, free: 8.773 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/1.057, allocations: 7.953 kB / 1.029 GB, free: 8.766 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/1.057, allocations: 11.5 kB / 1.029 GB, free: 8.758 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/1.057, allocations: 0 / 1.029 GB, free: 8.758 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/1.057, allocations: 4 kB / 1.029 GB, free: 8.754 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007284/1.058, allocations: 0.5237 MB / 1.029 GB, free: 8.328 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.116e-05/1.058, allocations: 112.5 kB / 1.029 GB, free: 8.203 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.587e-05/1.058, allocations: 7.938 kB / 1.029 GB, free: 8.195 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/1.058, allocations: 35.95 kB / 1.03 GB, free: 8.16 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/1.058, allocations: 39.45 kB / 1.03 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/1.058, allocations: 19.05 kB / 1.03 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.695e-05/1.058, allocations: 122 kB / 1.03 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.61e-07/1.058, allocations: 0 / 1.03 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003044/1.058, allocations: 64 kB / 1.03 GB, free: 7.945 MB / 0.6511 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 () * 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.0002118/1.059, allocations: 114.6 kB / 1.03 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004948/1.059, allocations: 315.9 kB / 1.03 GB, free: 7.609 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/1.059, allocations: 4 kB / 1.03 GB, free: 7.605 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002469/1.059, allocations: 156.5 kB / 1.03 GB, free: 7.496 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/1.06, allocations: 36.27 kB / 1.03 GB, free: 7.465 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008884/1.061, allocations: 484.1 kB / 1.031 GB, free: 7.008 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/1.061, allocations: 0.7763 MB / 1.032 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001585/1.061, allocations: 43.44 kB / 1.032 GB, free: 6.168 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.712e-05/1.061, allocations: 34.69 kB / 1.032 GB, free: 6.137 MB / 0.6511 GB Notification: Performance of SimCode: time 3.51e-07/1.061, allocations: 4 kB / 1.032 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of Templates: time 0.005971/1.067, allocations: 2.842 MB / 1.034 GB, free: 3.332 MB / 0.6511 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