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.001689/0.001689, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 198 kB / 16.79 MB, free: 6.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.461/1.461, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 461.9 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 71.66 kB / 0.8991 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.306, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003674/0.3097, allocations: 2.022 MB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3109, allocations: 0.6543 MB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.311, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.145e-05/0.3111, allocations: 11.86 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.3113, allocations: 35.7 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.3117, allocations: 131.8 kB / 1.056 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.3121, allocations: 299.2 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.3122, allocations: 40.39 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.3125, allocations: 127.5 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.3127, allocations: 143.4 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.266e-05/0.3127, allocations: 20 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.523e-05/0.3128, allocations: 16 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.611e-05/0.3129, allocations: 67.77 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.313, allocations: 119.4 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.3132, allocations: 207.8 kB / 1.057 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3132, allocations: 4 kB / 1.057 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.81e-07/0.3133, allocations: 3.938 kB / 1.057 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.3133, allocations: 0 / 1.057 GB, free: 4.398 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.001316/0.3146, allocations: 0.6315 MB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3146, allocations: 11.97 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.889e-05/0.3147, allocations: 36.56 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.3149, allocations: 188.9 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002091/0.3151, allocations: 268.3 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/0.3152, allocations: 24.38 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.3157, allocations: 269.8 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3157, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.3158, allocations: 15.94 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3158, allocations: 7.984 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.3162, allocations: 179.8 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3174, allocations: 0.7776 MB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.3179, allocations: 207.7 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.3182, allocations: 130.5 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.507e-05/0.3182, allocations: 11.98 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000535/0.3188, allocations: 307.8 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 1.874e-06/0.3188, allocations: 0 / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001084/0.3199, allocations: 487 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.3199, allocations: 118.8 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.3201, allocations: 184.2 kB / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.167e-05/0.3202, allocations: 37.7 kB / 1.06 GB, free: 248 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.3203, allocations: 117.3 kB / 1.06 GB, free: 128 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.3204, allocations: 146 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.3206, allocations: 106.3 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3207, allocations: 342.8 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.321, allocations: 149.2 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.3214, allocations: 252.8 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006383/0.3221, allocations: 394 kB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3221, allocations: 8 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000897/0.323, allocations: 492.8 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.323, allocations: 8 kB / 1.062 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.323, allocations: 3.938 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/0.3231, allocations: 8 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.3235, allocations: 91.83 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.3235, allocations: 8 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.3238, allocations: 59.64 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.3239, allocations: 23.94 kB / 1.062 GB, free: 13.98 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.0001749/0.324, allocations: 159.4 kB / 1.063 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.3241, allocations: 31.56 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.377e-05/0.3242, allocations: 37.86 kB / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3242, allocations: 4 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3242, allocations: 4 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.3242, allocations: 4.078 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.3246, allocations: 361.2 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.3246, allocations: 4 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.325, allocations: 75.83 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.3251, allocations: 4 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.3251, allocations: 11.98 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.3251, allocations: 4 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3251, allocations: 0 / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.3262, allocations: 0.5784 MB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.347e-05/0.3263, allocations: 104.8 kB / 1.064 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.902e-05/0.3263, allocations: 19.94 kB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.3266, allocations: 39.95 kB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3267, allocations: 35.95 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.3267, allocations: 15.98 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.036e-05/0.3268, allocations: 124.3 kB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3268, allocations: 0 / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003454/0.3272, allocations: 83.98 kB / 1.064 GB, free: 12.19 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.0001854/0.3274, allocations: 119.2 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007978/0.3282, allocations: 385.2 kB / 1.065 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3282, allocations: 0 / 1.065 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.3286, allocations: 180.6 kB / 1.065 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.3289, allocations: 51.91 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.3301, allocations: 0.7228 MB / 1.065 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.3305, allocations: 0.7647 MB / 1.066 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.3306, allocations: 35.38 kB / 1.066 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.3306, allocations: 0 / 1.066 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of Templates: time 0.006803/0.3374, allocations: 3.949 MB / 1.07 GB, free: 5.961 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time