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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009217/0.0009217, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009695/0.0009696, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003499, allocations: 12 kB / 0.8146 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6354/0.6358, allocations: 142.3 MB / 0.9535 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.001742/0.6376, allocations: 1.605 MB / 0.9551 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007413/0.6383, allocations: 0.6242 MB / 0.9557 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.369e-05/0.6384, allocations: 5.375 kB / 0.9557 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.6384, allocations: 7.875 kB / 0.9557 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.6386, allocations: 43.31 kB / 0.9558 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.6389, allocations: 110.8 kB / 0.9559 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.6391, allocations: 195.2 kB / 0.9561 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.6392, allocations: 39.83 kB / 0.9561 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.6393, allocations: 107.9 kB / 0.9562 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.6395, allocations: 130.1 kB / 0.9563 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.6396, allocations: 15.06 kB / 0.9563 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.917e-05/0.6396, allocations: 18.84 kB / 0.9564 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.014e-05/0.6397, allocations: 64 kB / 0.9564 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.703e-05/0.6397, allocations: 62.67 kB / 0.9565 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.6399, allocations: 212.5 kB / 0.9567 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.6399, allocations: 1.094 kB / 0.9567 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.193e-06/0.6399, allocations: 0 / 0.9567 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.6399, allocations: 0 / 0.9567 GB, free: 5.609 MB / 0.7169 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.001052/0.641, allocations: 0.6049 MB / 0.9573 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.641, allocations: 9.031 kB / 0.9573 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.89e-05/0.6411, allocations: 41.47 kB / 0.9573 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.6412, allocations: 194.2 kB / 0.9575 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.6414, allocations: 265.1 kB / 0.9578 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.6414, allocations: 34.3 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.6419, allocations: 259 kB / 0.958 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.6419, allocations: 10.11 kB / 0.958 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.642, allocations: 9.75 kB / 0.9581 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.642, allocations: 5.688 kB / 0.9581 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.6424, allocations: 192.3 kB / 0.9582 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009885/0.6434, allocations: 0.7846 MB / 0.959 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.6439, allocations: 217.2 kB / 0.9592 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.6439, allocations: 15.05 kB / 0.9592 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005015/0.6444, allocations: 315.6 kB / 0.9595 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.6444, allocations: 0 / 0.9595 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009977/0.6454, allocations: 0.4884 MB / 0.96 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.6455, allocations: 115.7 kB / 0.9601 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.6456, allocations: 170.6 kB / 0.9603 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.6457, allocations: 42.23 kB / 0.9603 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.042e-05/0.6457, allocations: 124.4 kB / 0.9604 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/0.6458, allocations: 148.5 kB / 0.9606 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/0.6459, allocations: 11 kB / 0.9606 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.001e-05/0.6459, allocations: 336.9 kB / 0.9609 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002935/0.6462, allocations: 156.6 kB / 0.9611 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.6466, allocations: 256.2 kB / 0.9613 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.6469, allocations: 171.9 kB / 0.9615 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6469, allocations: 5.188 kB / 0.9615 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008802/0.6478, allocations: 497.2 kB / 0.962 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.6478, allocations: 6.188 kB / 0.962 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.6478, allocations: 6.344 kB / 0.962 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.6479, allocations: 13.97 kB / 0.962 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.6482, allocations: 97.23 kB / 0.9621 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.6483, allocations: 5.062 kB / 0.9621 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.6486, allocations: 72.81 kB / 0.9621 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.6486, allocations: 24.02 kB / 0.9622 GB, free: 1.402 MB / 0.7169 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.0001624/0.6488, allocations: 156.7 kB / 0.9623 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.6488, allocations: 27.67 kB / 0.9623 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.404e-05/0.6489, allocations: 34.36 kB / 0.9624 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.6489, allocations: 5.719 kB / 0.9624 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.6489, allocations: 1.125 kB / 0.9624 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.6489, allocations: 5.125 kB / 0.9624 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.6492, allocations: 352.6 kB / 0.9627 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6492, allocations: 1.281 kB / 0.9627 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.6497, allocations: 77.89 kB / 0.9628 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.6497, allocations: 6.516 kB / 0.9628 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.6497, allocations: 16.8 kB / 0.9628 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.6497, allocations: 1.969 kB / 0.9628 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.6497, allocations: 4.969 kB / 0.9628 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.6508, allocations: 0.6192 MB / 0.9634 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-05/0.6508, allocations: 104.1 kB / 0.9635 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.12e-05/0.6509, allocations: 8.125 kB / 0.9635 GB, free: 372 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.6512, allocations: 54.58 kB / 0.9636 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.346e-05/0.6513, allocations: 41.08 kB / 0.9636 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.6513, allocations: 15.02 kB / 0.9636 GB, free: 316 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.682e-05/0.6514, allocations: 124.4 kB / 0.9638 GB, free: 216 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6514, allocations: 3.938 kB / 0.9638 GB, free: 212 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003428/0.6517, allocations: 79.03 kB / 0.9638 GB, free: 196 kB / 0.7169 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.0001532/0.6519, allocations: 126.2 kB / 0.964 GB, free: 88 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007513/0.6526, allocations: 387.4 kB / 0.9643 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6527, allocations: 5.375 kB / 0.9643 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003851/0.653, allocations: 186.1 kB / 0.9645 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.6533, allocations: 37.05 kB / 0.9646 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.6545, allocations: 0.698 MB / 0.9652 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.6548, allocations: 0.7749 MB / 0.966 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001694/0.655, allocations: 44.91 kB / 0.966 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.6551, allocations: 32.88 kB / 0.9661 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.6551, allocations: 0 / 0.9661 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of Templates: time 0.006249/0.6613, allocations: 3.004 MB / 0.969 GB, free: 13.1 MB / 0.7325 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