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.001497/0.001497, allocations: 106.9 kB / 16.36 MB, free: 5.875 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.001263/0.001263, allocations: 195.5 kB / 17.29 MB, free: 5.516 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.503/2.503, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 69.38 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002655/0.328, allocations: 1.113 MB / 1.028 GB, free: 0.9219 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001732/0.3298, allocations: 1.112 MB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.33, allocations: 4 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.882e-05/0.3301, allocations: 19.73 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.3302, allocations: 43.52 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005646/0.3308, allocations: 155.7 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.3312, allocations: 319.2 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.3314, allocations: 52.23 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.3316, allocations: 135.5 kB / 1.03 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.3319, allocations: 147.4 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.946e-05/0.3319, allocations: 28 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.441e-05/0.332, allocations: 32 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.243e-05/0.3321, allocations: 79.78 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.3322, allocations: 131.4 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.3325, allocations: 314.9 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3325, allocations: 4 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.186e-06/0.3325, allocations: 4 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.341e-05/0.3326, allocations: 3.938 kB / 1.03 GB, free: 14.35 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.00123/0.3338, allocations: 0.6159 MB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.3338, allocations: 12.03 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.234e-05/0.3339, allocations: 32.56 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.3341, allocations: 201.4 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.3343, allocations: 260.3 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.708e-05/0.3344, allocations: 28.38 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004684/0.3348, allocations: 262.3 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.3349, allocations: 7.938 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.3349, allocations: 7.984 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3349, allocations: 8 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004054/0.3353, allocations: 175.8 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.3364, allocations: 0.7814 MB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.3369, allocations: 211.7 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.3371, allocations: 131.3 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.3372, allocations: 11.98 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005175/0.3377, allocations: 311.6 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/0.3377, allocations: 0 / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.0009766/0.3387, allocations: 483.3 kB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.309e-05/0.3388, allocations: 122.7 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.3389, allocations: 179.4 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.339, allocations: 41.7 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.682e-05/0.3391, allocations: 125.2 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.3392, allocations: 146 kB / 1.034 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.3394, allocations: 102.3 kB / 1.034 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3395, allocations: 342.8 kB / 1.035 GB, free: 9.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.3398, allocations: 149.2 kB / 1.035 GB, free: 9.328 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003392/0.3401, allocations: 248.8 kB / 1.035 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000604/0.3407, allocations: 402 kB / 1.036 GB, free: 8.621 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.3408, allocations: 0 / 1.036 GB, free: 8.621 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008524/0.3416, allocations: 489.2 kB / 1.036 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3416, allocations: 11.94 kB / 1.036 GB, free: 8.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3417, allocations: 8 kB / 1.036 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.3417, allocations: 7.984 kB / 1.036 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.3421, allocations: 99.83 kB / 1.036 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.3421, allocations: 4 kB / 1.036 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.3424, allocations: 51.66 kB / 1.036 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.3424, allocations: 20 kB / 1.036 GB, free: 7.938 MB / 0.8106 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.0001732/0.3426, allocations: 171.3 kB / 1.036 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.611e-05/0.3426, allocations: 35.56 kB / 1.036 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.543e-05/0.3427, allocations: 29.88 kB / 1.036 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3427, allocations: 7.938 kB / 1.036 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.3427, allocations: 0 / 1.036 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3427, allocations: 7.984 kB / 1.036 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.3431, allocations: 357.2 kB / 1.037 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3431, allocations: 96 / 1.037 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003908/0.3435, allocations: 75.89 kB / 1.037 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.866e-06/0.3435, allocations: 7.922 kB / 1.037 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.3436, allocations: 16 kB / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3436, allocations: 0 / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3436, allocations: 0 / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.3446, allocations: 0.5861 MB / 1.037 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.3447, allocations: 108.8 kB / 1.038 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.385e-05/0.3447, allocations: 7.938 kB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.3449, allocations: 31.97 kB / 1.038 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3451, allocations: 55.92 kB / 1.038 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.947e-05/0.3451, allocations: 16 kB / 1.038 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.544e-05/0.3452, allocations: 133.1 kB / 1.038 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3452, allocations: 0 / 1.038 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003236/0.3455, allocations: 80 kB / 1.038 GB, free: 6.137 MB / 0.8106 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.000162/0.3457, allocations: 115.3 kB / 1.038 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007244/0.3464, allocations: 388.2 kB / 1.038 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3464, allocations: 0 / 1.038 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003659/0.3468, allocations: 191.7 kB / 1.038 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.3472, allocations: 40.11 kB / 1.039 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.3484, allocations: 0.6263 MB / 1.039 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.3487, allocations: 0.7608 MB / 1.04 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001735/0.3489, allocations: 42.95 kB / 1.04 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.349, allocations: 35.44 kB / 1.04 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of SimCode: time 7.31e-07/0.349, allocations: 0 / 1.04 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of Templates: time 0.007332/0.3564, allocations: 3.888 MB / 1.044 GB, free: 20 kB / 0.8106 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 -s gbode -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