Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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,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") 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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.351/2.351, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001265/0.001265, allocations: 175 kB / 498.1 MB, free: 5.684 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.577/1.577, allocations: 223.2 MB / 0.7948 GB, free: 18.87 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.001034/0.001034, allocations: 99.2 kB / 0.9346 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003869, allocations: 12.44 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2973, allocations: 142.4 MB / 1.223 GB, free: 89.55 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2111/0.5085, allocations: 149.8 MB / 1.369 GB, free: 3.535 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.5088, allocations: 71.97 kB / 1.369 GB, free: 3.465 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02603/0.5348, allocations: 8.733 MB / 1.378 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.557e-06/0.5349, allocations: 0 / 1.378 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.535e-05/0.5349, allocations: 8 kB / 1.378 GB, free: 10.7 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.001487/0.5364, allocations: 0.6259 MB / 1.378 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.5365, allocations: 8.031 kB / 1.378 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.5366, allocations: 31.72 kB / 1.378 GB, free: 9.988 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.5368, allocations: 191.6 kB / 1.379 GB, free: 9.758 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003053/0.5372, allocations: 263.8 kB / 1.379 GB, free: 9.445 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.116e-05/0.5372, allocations: 27.91 kB / 1.379 GB, free: 9.418 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007034/0.5379, allocations: 277.8 kB / 1.379 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.538, allocations: 0 / 1.379 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/0.538, allocations: 12 kB / 1.379 GB, free: 9.117 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.5381, allocations: 4 kB / 1.379 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006076/0.5387, allocations: 187.8 kB / 1.379 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.5403, allocations: 0.809 MB / 1.38 GB, free: 8.059 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.541, allocations: 208.7 kB / 1.38 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.017e-05/0.541, allocations: 8.188 kB / 1.38 GB, free: 7.82 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007506/0.5418, allocations: 319.3 kB / 1.381 GB, free: 7.484 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.595e-06/0.5418, allocations: 0 / 1.381 GB, free: 7.484 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001388/0.5432, allocations: 489.8 kB / 1.381 GB, free: 7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.5433, allocations: 126.8 kB / 1.381 GB, free: 6.852 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.5435, allocations: 158.6 kB / 1.381 GB, free: 6.688 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.13e-05/0.5436, allocations: 37.7 kB / 1.381 GB, free: 6.645 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.632e-05/0.5437, allocations: 121.2 kB / 1.382 GB, free: 6.523 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.5438, allocations: 146 kB / 1.382 GB, free: 6.379 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.5439, allocations: 12 kB / 1.382 GB, free: 6.367 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.544, allocations: 342.8 kB / 1.382 GB, free: 6.023 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004205/0.5445, allocations: 157.2 kB / 1.382 GB, free: 5.867 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/0.545, allocations: 256.7 kB / 1.382 GB, free: 5.582 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.5454, allocations: 167.9 kB / 1.383 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.5455, allocations: 4 kB / 1.383 GB, free: 5.414 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001162/0.5466, allocations: 0.4891 MB / 1.383 GB, free: 4.918 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.5467, allocations: 4 kB / 1.383 GB, free: 4.914 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.5467, allocations: 7.938 kB / 1.383 GB, free: 4.906 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.5467, allocations: 7.984 kB / 1.383 GB, free: 4.898 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005566/0.5473, allocations: 107.9 kB / 1.383 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.5473, allocations: 4.703 kB / 1.383 GB, free: 4.789 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.5477, allocations: 67.66 kB / 1.383 GB, free: 4.723 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/0.5478, allocations: 20 kB / 1.383 GB, free: 4.703 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.0002347/0.548, allocations: 167.4 kB / 1.383 GB, free: 4.531 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/0.5481, allocations: 27.72 kB / 1.383 GB, free: 4.504 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.03e-05/0.5482, allocations: 29.88 kB / 1.384 GB, free: 4.473 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.5482, allocations: 4 kB / 1.384 GB, free: 4.469 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.5482, allocations: 0 / 1.384 GB, free: 4.469 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.5483, allocations: 7.984 kB / 1.384 GB, free: 4.461 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.5488, allocations: 357.2 kB / 1.384 GB, free: 4.062 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5488, allocations: 0 / 1.384 GB, free: 4.062 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.5494, allocations: 79.89 kB / 1.384 GB, free: 3.984 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.5494, allocations: 4 kB / 1.384 GB, free: 3.98 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.5494, allocations: 12 kB / 1.384 GB, free: 3.969 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.5495, allocations: 4 kB / 1.384 GB, free: 3.965 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.5495, allocations: 3.938 kB / 1.384 GB, free: 3.961 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.551, allocations: 0.6255 MB / 1.385 GB, free: 3.301 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.221e-05/0.5511, allocations: 104.8 kB / 1.385 GB, free: 3.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.051e-05/0.5511, allocations: 8 kB / 1.385 GB, free: 3.172 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.5515, allocations: 43.97 kB / 1.385 GB, free: 3.129 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.5516, allocations: 47.89 kB / 1.385 GB, free: 3.082 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.5517, allocations: 15.98 kB / 1.385 GB, free: 3.066 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001282/0.5518, allocations: 121.3 kB / 1.385 GB, free: 2.949 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5518, allocations: 3.938 kB / 1.385 GB, free: 2.945 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005046/0.5523, allocations: 87.84 kB / 1.385 GB, free: 2.859 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.0002426/0.5526, allocations: 127.8 kB / 1.385 GB, free: 2.727 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0009929/0.5536, allocations: 391.6 kB / 1.385 GB, free: 2.344 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5536, allocations: 0 / 1.385 GB, free: 2.344 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004971/0.5541, allocations: 188.8 kB / 1.386 GB, free: 2.16 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.5545, allocations: 41.3 kB / 1.386 GB, free: 2.121 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.556, allocations: 0.695 MB / 1.386 GB, free: 1.398 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.5564, allocations: 0.7725 MB / 1.387 GB, free: 0.6016 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002439/0.5566, allocations: 47.22 kB / 1.387 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.5568, allocations: 31.44 kB / 1.387 GB, free: 0.5234 MB / 0.8855 GB Notification: Performance of SimCode: time 3.11e-07/0.5568, allocations: 0 / 1.387 GB, free: 0.5234 MB / 0.8855 GB Notification: Performance of Templates: time 0.008604/0.5654, allocations: 2.996 MB / 1.39 GB, free: 13.55 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches