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.00154/0.00154, allocations: 103.6 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.001718/0.001718, allocations: 199.2 kB / 17.3 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.515/2.515, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.28 kB / 0.8774 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2946, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003008/0.2976, allocations: 1.986 MB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.2987, allocations: 0.6543 MB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.657e-05/0.2988, allocations: 0 / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.675e-05/0.2988, allocations: 23.67 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.2989, allocations: 35.59 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.2994, allocations: 151.7 kB / 1.03 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.2997, allocations: 327.1 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.2998, allocations: 44.39 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.3, allocations: 135.6 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.3002, allocations: 147.4 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.644e-05/0.3002, allocations: 28 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.01e-05/0.3003, allocations: 32 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.958e-05/0.3004, allocations: 75.8 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.3005, allocations: 139.3 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.3008, allocations: 306.9 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.716e-06/0.3008, allocations: 0 / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3008, allocations: 0 / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.3008, allocations: 4 kB / 1.031 GB, free: 13.98 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.001209/0.302, allocations: 0.6197 MB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3021, allocations: 19.97 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.3022, allocations: 32.66 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.3023, allocations: 197.4 kB / 1.032 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.3026, allocations: 272.2 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.865e-05/0.3026, allocations: 28.38 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.3031, allocations: 257.9 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.3032, allocations: 8 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.3032, allocations: 4 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.3032, allocations: 8 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.3036, allocations: 175.8 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.3048, allocations: 0.7775 MB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.3053, allocations: 203.7 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.3055, allocations: 134.5 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.3056, allocations: 7.984 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005331/0.3061, allocations: 319.6 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 1.863e-06/0.3061, allocations: 0 / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.0009911/0.3071, allocations: 491.2 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.3072, allocations: 118.8 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.3074, allocations: 179.3 kB / 1.034 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.3074, allocations: 41.7 kB / 1.034 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.004e-05/0.3075, allocations: 121.3 kB / 1.035 GB, free: 9.691 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.3076, allocations: 150 kB / 1.035 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3078, allocations: 102.3 kB / 1.035 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3079, allocations: 338.8 kB / 1.035 GB, free: 9.098 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.3082, allocations: 145.2 kB / 1.035 GB, free: 8.953 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.3086, allocations: 260.8 kB / 1.036 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005974/0.3092, allocations: 398 kB / 1.036 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3092, allocations: 0 / 1.036 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007932/0.31, allocations: 489.2 kB / 1.036 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.31, allocations: 8 kB / 1.036 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.31, allocations: 4 kB / 1.036 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.31, allocations: 4 kB / 1.036 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/0.3104, allocations: 95.83 kB / 1.036 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.3105, allocations: 11.94 kB / 1.036 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.3107, allocations: 63.7 kB / 1.037 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.3108, allocations: 20 kB / 1.037 GB, free: 7.551 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.0001892/0.311, allocations: 163.3 kB / 1.037 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.949e-05/0.311, allocations: 39.56 kB / 1.037 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.234e-05/0.3111, allocations: 37.8 kB / 1.037 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.3111, allocations: 4 kB / 1.037 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3111, allocations: 0 / 1.037 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.3112, allocations: 7.984 kB / 1.037 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003791/0.3115, allocations: 349.2 kB / 1.037 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3115, allocations: 0 / 1.037 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004151/0.312, allocations: 79.83 kB / 1.037 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.312, allocations: 96 / 1.037 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.391e-05/0.312, allocations: 15.98 kB / 1.037 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.312, allocations: 8 kB / 1.037 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.312, allocations: 3.984 kB / 1.037 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009927/0.313, allocations: 0.5745 MB / 1.038 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/0.3131, allocations: 108.7 kB / 1.038 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.3132, allocations: 12 kB / 1.038 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.3134, allocations: 31.95 kB / 1.038 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.3135, allocations: 55.94 kB / 1.038 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.3136, allocations: 19.98 kB / 1.038 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.862e-05/0.3137, allocations: 125.2 kB / 1.038 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.3137, allocations: 0 / 1.038 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003413/0.314, allocations: 84 kB / 1.038 GB, free: 5.762 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.0001775/0.3142, allocations: 117.9 kB / 1.038 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007392/0.3149, allocations: 390.6 kB / 1.039 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.315, allocations: 4 kB / 1.039 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.3153, allocations: 190.9 kB / 1.039 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.3157, allocations: 47 kB / 1.039 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.3168, allocations: 0.6157 MB / 1.04 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3171, allocations: 0.7647 MB / 1.04 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001353/0.3173, allocations: 34.97 kB / 1.04 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3174, allocations: 43.61 kB / 1.04 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.3174, allocations: 0 / 1.04 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.007329/0.3247, allocations: 3.891 MB / 1.044 GB, free: 15.63 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 -s gbode -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) Reference file matches