Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Reals.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.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001504/0.001504, allocations: 172.7 kB / 15.95 MB, free: 208 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.554/1.554, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.918/2.918, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003592, allocations: 11.38 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.364, allocations: 159.6 MB / 1.058 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.00195/0.366, allocations: 1.625 MB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009837/0.367, allocations: 0.6235 MB / 1.06 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.977e-05/0.3671, allocations: 4 kB / 1.06 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.643e-05/0.3671, allocations: 11.86 kB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.87e-05/0.3672, allocations: 31.7 kB / 1.06 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003519/0.3675, allocations: 119.8 kB / 1.06 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003008/0.3679, allocations: 283.1 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.368, allocations: 44.38 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.3682, allocations: 111.7 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.3684, allocations: 127.5 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.3684, allocations: 16 kB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.376e-05/0.3685, allocations: 16 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.881e-05/0.3685, allocations: 59.8 kB / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.452e-05/0.3686, allocations: 61.58 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.3688, allocations: 211.7 kB / 1.061 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3688, allocations: 0 / 1.061 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3688, allocations: 0 / 1.061 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.3689, allocations: 4 kB / 1.061 GB, free: 1.945 MB / 0.8106 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.001058/0.3699, allocations: 0.6127 MB / 1.062 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.37, allocations: 8.031 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.832e-05/0.37, allocations: 31.72 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.3702, allocations: 203.5 kB / 1.062 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.3704, allocations: 267.7 kB / 1.062 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.86e-05/0.3705, allocations: 28 kB / 1.062 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.3709, allocations: 269.7 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.371, allocations: 0 / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.371, allocations: 11.98 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.371, allocations: 4 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.3714, allocations: 187.8 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.3725, allocations: 0.7816 MB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004402/0.3729, allocations: 209 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.3732, allocations: 134.9 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.3732, allocations: 16.19 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005339/0.3738, allocations: 307.9 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 3.487e-06/0.3738, allocations: 7.938 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001021/0.3748, allocations: 0.491 MB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.3749, allocations: 130.7 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.3751, allocations: 171.4 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.3751, allocations: 41.7 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.988e-05/0.3752, allocations: 117.3 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.3753, allocations: 150 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.3754, allocations: 12 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3755, allocations: 338.8 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003155/0.3759, allocations: 157.2 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.3762, allocations: 252.8 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.3766, allocations: 167.9 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.3766, allocations: 4 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008374/0.3774, allocations: 496.9 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3775, allocations: 4 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3775, allocations: 4 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3775, allocations: 4 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.3779, allocations: 103.8 kB / 1.067 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.3779, allocations: 11.94 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.3782, allocations: 67.66 kB / 1.067 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.3782, allocations: 24 kB / 1.067 GB, free: 11.82 MB / 0.8262 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.0001822/0.3784, allocations: 163.3 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.3785, allocations: 35.61 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-05/0.3785, allocations: 29.97 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.3785, allocations: 11.92 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3786, allocations: 0 / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.3786, allocations: 12 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.3789, allocations: 353.2 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.379, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.3793, allocations: 75.89 kB / 1.068 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.3794, allocations: 4 kB / 1.068 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.3794, allocations: 15.98 kB / 1.068 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.3794, allocations: 4 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3794, allocations: 0 / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.3805, allocations: 0.6018 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.22e-05/0.3805, allocations: 100.8 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.3806, allocations: 15.98 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.3808, allocations: 39.97 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/0.3809, allocations: 39.95 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.3809, allocations: 19.98 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.907e-05/0.381, allocations: 125.3 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.381, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000311/0.3813, allocations: 91.88 kB / 1.069 GB, free: 10 MB / 0.8262 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.0001896/0.3815, allocations: 119.2 kB / 1.069 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006947/0.3822, allocations: 397.2 kB / 1.069 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3823, allocations: 0 / 1.069 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.3826, allocations: 192.6 kB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.3829, allocations: 40.16 kB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.384, allocations: 0.7086 MB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.3843, allocations: 0.7608 MB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001591/0.3845, allocations: 42.95 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.3846, allocations: 31.44 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.3846, allocations: 0 / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of Templates: time 0.006243/0.3909, allocations: 3.02 MB / 1.074 GB, free: 4.688 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches