Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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,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") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007136/0.007136, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001568/0.001568, allocations: 196.5 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 222.9 MB / 240.5 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.678/2.678, allocations: 461.9 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 65.16 kB / 0.8991 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3183, allocations: 157.4 MB / 1.053 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00339/0.3218, allocations: 1.159 MB / 1.054 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001788/0.3236, allocations: 1.115 MB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.3238, allocations: 4 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.452e-05/0.3239, allocations: 7.875 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.3241, allocations: 35.69 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.3246, allocations: 131.8 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.325, allocations: 311.1 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.3252, allocations: 48.25 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.3254, allocations: 115.7 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.3256, allocations: 139.4 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.485e-05/0.3257, allocations: 24 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.609e-05/0.3258, allocations: 16 kB / 1.056 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.601e-05/0.3258, allocations: 63.78 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.326, allocations: 123.4 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.3262, allocations: 219.8 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3262, allocations: 0 / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.815e-06/0.3262, allocations: 0 / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.3263, allocations: 3.938 kB / 1.056 GB, free: 4.723 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.001356/0.3276, allocations: 0.6276 MB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.3277, allocations: 11.97 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.3278, allocations: 36.56 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.328, allocations: 200.8 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002507/0.3283, allocations: 272.2 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-05/0.3283, allocations: 28.31 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.3289, allocations: 258.3 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.3289, allocations: 11.88 kB / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.3289, allocations: 4 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.329, allocations: 4 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.3294, allocations: 179.9 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3305, allocations: 0.7814 MB / 1.059 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.331, allocations: 199.7 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.3313, allocations: 134.5 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.13e-05/0.3314, allocations: 11.98 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005934/0.332, allocations: 311.9 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.405e-06/0.332, allocations: 0 / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001053/0.333, allocations: 487.1 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.3331, allocations: 118.8 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.3333, allocations: 176.3 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.653e-05/0.3333, allocations: 45.7 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.203e-05/0.3334, allocations: 117.3 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.3336, allocations: 150 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.3337, allocations: 102.3 kB / 1.06 GB, free: 192 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3339, allocations: 338.8 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.3342, allocations: 149.2 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000368/0.3346, allocations: 260.6 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006329/0.3352, allocations: 398 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3352, allocations: 0 / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008531/0.3361, allocations: 481.5 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.3361, allocations: 11.94 kB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3361, allocations: 80 / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3362, allocations: 15.94 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003933/0.3366, allocations: 91.83 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.3366, allocations: 15.97 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.3369, allocations: 59.72 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.337, allocations: 20 kB / 1.062 GB, free: 14.3 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 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000195/0.3372, allocations: 163.4 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.946e-05/0.3372, allocations: 35.64 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.811e-05/0.3373, allocations: 29.88 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3373, allocations: 4 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3373, allocations: 0 / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.3373, allocations: 7.984 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003827/0.3377, allocations: 349.1 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.3377, allocations: 7.984 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.3381, allocations: 71.91 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.3382, allocations: 3.938 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.3382, allocations: 19.98 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.3382, allocations: 7.938 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3382, allocations: 0 / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.3393, allocations: 0.5829 MB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.3394, allocations: 104.8 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.3394, allocations: 15.92 kB / 1.063 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.3396, allocations: 27.97 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3398, allocations: 39.94 kB / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.3398, allocations: 16 kB / 1.063 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000102/0.3399, allocations: 128.3 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.315e-06/0.3399, allocations: 4.094 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003261/0.3402, allocations: 83.94 kB / 1.064 GB, free: 12.51 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001805/0.3404, allocations: 115.2 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007434/0.3412, allocations: 374.7 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3412, allocations: 8 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.3416, allocations: 189.4 kB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.3419, allocations: 47.91 kB / 1.064 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.3431, allocations: 0.7115 MB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.3435, allocations: 0.7725 MB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.3436, allocations: 35.36 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/0.3437, allocations: 4 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of Templates: time 0.006841/0.3505, allocations: 3.947 MB / 1.07 GB, free: 6.273 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches