Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.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_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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.398/2.398, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001192/0.001192, allocations: 176 kB / 0.4902 GB, free: 2.258 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.571/1.571, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001125/0.001125, allocations: 102.8 kB / 0.9396 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004597/0.0004598, allocations: 14.12 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3274, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2125/0.54, allocations: 150.6 MB / 1.376 GB, free: 2.902 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.5403, allocations: 71.95 kB / 1.376 GB, free: 2.832 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02504/0.5654, allocations: 8.734 MB / 1.385 GB, free: 10.08 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5654, allocations: 4 kB / 1.385 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.902e-05/0.5654, allocations: 4 kB / 1.385 GB, free: 10.07 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.001507/0.5669, allocations: 0.6261 MB / 1.386 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.567, allocations: 16.44 kB / 1.386 GB, free: 9.379 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.5672, allocations: 27.72 kB / 1.386 GB, free: 9.352 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.5674, allocations: 195.6 kB / 1.386 GB, free: 9.117 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.5676, allocations: 271.8 kB / 1.386 GB, free: 8.797 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-05/0.5677, allocations: 28 kB / 1.386 GB, free: 8.77 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005495/0.5683, allocations: 269.7 kB / 1.386 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.5683, allocations: 3.906 kB / 1.386 GB, free: 8.492 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.5683, allocations: 8 kB / 1.386 GB, free: 8.484 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.5684, allocations: 4 kB / 1.386 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.5689, allocations: 191.8 kB / 1.386 GB, free: 8.293 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.5702, allocations: 0.8128 MB / 1.387 GB, free: 7.418 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005152/0.5708, allocations: 208.7 kB / 1.387 GB, free: 7.188 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.5708, allocations: 16.17 kB / 1.388 GB, free: 7.172 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000571/0.5714, allocations: 303.5 kB / 1.388 GB, free: 6.852 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 3.065e-06/0.5714, allocations: 0 / 1.388 GB, free: 6.852 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001107/0.5725, allocations: 498.1 kB / 1.388 GB, free: 6.359 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.5726, allocations: 118.8 kB / 1.388 GB, free: 6.219 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.5728, allocations: 158.5 kB / 1.389 GB, free: 6.055 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.5729, allocations: 45.69 kB / 1.389 GB, free: 6.004 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.295e-05/0.5729, allocations: 117.3 kB / 1.389 GB, free: 5.887 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.5731, allocations: 142 kB / 1.389 GB, free: 5.746 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/0.5731, allocations: 16 kB / 1.389 GB, free: 5.73 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5733, allocations: 350.7 kB / 1.389 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.5736, allocations: 145.2 kB / 1.389 GB, free: 5.238 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003886/0.574, allocations: 260.7 kB / 1.39 GB, free: 4.945 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003516/0.5744, allocations: 163.9 kB / 1.39 GB, free: 4.785 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.5744, allocations: 4 kB / 1.39 GB, free: 4.781 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008883/0.5753, allocations: 0.4893 MB / 1.39 GB, free: 4.285 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.5753, allocations: 4 kB / 1.39 GB, free: 4.281 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.5754, allocations: 4 kB / 1.39 GB, free: 4.277 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.5754, allocations: 8 kB / 1.39 GB, free: 4.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003968/0.5758, allocations: 103.8 kB / 1.39 GB, free: 4.168 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.5758, allocations: 4 kB / 1.39 GB, free: 4.164 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003319/0.5761, allocations: 67.66 kB / 1.39 GB, free: 4.098 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.5762, allocations: 27.98 kB / 1.39 GB, free: 4.07 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.0002148/0.5764, allocations: 159.4 kB / 1.391 GB, free: 3.906 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.5765, allocations: 27.62 kB / 1.391 GB, free: 3.879 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.037e-05/0.5766, allocations: 37.86 kB / 1.391 GB, free: 3.84 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.5766, allocations: 8.078 kB / 1.391 GB, free: 3.832 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.5766, allocations: 0 / 1.391 GB, free: 3.832 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.5766, allocations: 3.938 kB / 1.391 GB, free: 3.828 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003951/0.577, allocations: 361.2 kB / 1.391 GB, free: 3.426 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.577, allocations: 4.062 kB / 1.391 GB, free: 3.422 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/0.5774, allocations: 79.89 kB / 1.391 GB, free: 3.344 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.5775, allocations: 7.938 kB / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.5775, allocations: 11.98 kB / 1.391 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.5775, allocations: 4 kB / 1.391 GB, free: 3.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5775, allocations: 0 / 1.391 GB, free: 3.32 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.579, allocations: 0.6216 MB / 1.392 GB, free: 2.656 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.419e-05/0.5791, allocations: 104.8 kB / 1.392 GB, free: 2.535 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/0.5792, allocations: 8 kB / 1.392 GB, free: 2.527 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003861/0.5796, allocations: 47.95 kB / 1.392 GB, free: 2.48 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.5797, allocations: 39.91 kB / 1.392 GB, free: 2.441 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.638e-05/0.5798, allocations: 19.98 kB / 1.392 GB, free: 2.422 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001006/0.5799, allocations: 121.2 kB / 1.392 GB, free: 2.305 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.21e-07/0.5799, allocations: 0 / 1.392 GB, free: 2.305 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003714/0.5803, allocations: 80.09 kB / 1.392 GB, free: 2.227 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.0002756/0.5805, allocations: 136.7 kB / 1.392 GB, free: 2.086 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00078/0.5813, allocations: 384.2 kB / 1.393 GB, free: 1.715 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5814, allocations: 7.938 kB / 1.393 GB, free: 1.707 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.5817, allocations: 188.4 kB / 1.393 GB, free: 1.523 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.582, allocations: 34.8 kB / 1.393 GB, free: 1.492 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.5832, allocations: 0.6909 MB / 1.393 GB, free: 0.7734 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.5835, allocations: 0.7725 MB / 1.394 GB, free: 15.98 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001819/0.5837, allocations: 38.97 kB / 1.394 GB, free: 15.94 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.5838, allocations: 31.38 kB / 1.394 GB, free: 15.91 MB / 0.9011 GB Notification: Performance of SimCode: time 5.51e-07/0.5838, allocations: 0 / 1.394 GB, free: 15.91 MB / 0.9011 GB Notification: Performance of Templates: time 0.007055/0.5909, allocations: 3.014 MB / 1.397 GB, free: 12.93 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches