Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001406/0.001406, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.00147/0.00147, allocations: 192.3 kB / 16.25 MB, free: 6.633 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.428/1.428, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.818/2.818, allocations: 469.8 MB / 0.742 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 72.02 kB / 0.9081 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3139, allocations: 159.2 MB / 1.063 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002409/0.3164, allocations: 1.148 MB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.318, allocations: 1.115 MB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.021e-05/0.3181, allocations: 4 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.962e-05/0.3181, allocations: 11.86 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.3182, allocations: 31.7 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.3187, allocations: 131.9 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.3191, allocations: 319.1 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.3193, allocations: 48.38 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.3195, allocations: 127.6 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.3197, allocations: 155.3 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.3197, allocations: 32 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.369e-05/0.3198, allocations: 28 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.342e-05/0.3199, allocations: 75.78 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.32, allocations: 139.4 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.3203, allocations: 307.2 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3204, allocations: 4 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3204, allocations: 0 / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.3204, allocations: 0 / 1.067 GB, free: 10.9 MB / 0.8262 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.001295/0.3217, allocations: 0.6314 MB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.3217, allocations: 8.031 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.423e-05/0.3218, allocations: 32.66 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.322, allocations: 196.8 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002428/0.3222, allocations: 264.3 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.3223, allocations: 40.3 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.3228, allocations: 258.3 kB / 1.068 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.3229, allocations: 11.88 kB / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.3229, allocations: 8 kB / 1.068 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.3229, allocations: 4 kB / 1.068 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.3233, allocations: 175.8 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.3245, allocations: 0.7775 MB / 1.069 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.325, allocations: 203.7 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.3253, allocations: 134.5 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.797e-05/0.3253, allocations: 7.984 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005945/0.3259, allocations: 315.6 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/0.3259, allocations: 0 / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.00102/0.3269, allocations: 494.6 kB / 1.07 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.497e-05/0.327, allocations: 118.7 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.3272, allocations: 175.4 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.3273, allocations: 37.7 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.703e-05/0.3273, allocations: 117.3 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3275, allocations: 153.9 kB / 1.071 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.3277, allocations: 98.34 kB / 1.071 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3278, allocations: 350.8 kB / 1.071 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003131/0.3282, allocations: 149.2 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.3285, allocations: 252.8 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006707/0.3292, allocations: 394 kB / 1.072 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3292, allocations: 0 / 1.072 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008468/0.3301, allocations: 496.8 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3301, allocations: 11.94 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3301, allocations: 0 / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.3302, allocations: 8 kB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.3305, allocations: 91.83 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.3306, allocations: 8 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.3308, allocations: 55.66 kB / 1.073 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.3309, allocations: 27.98 kB / 1.073 GB, free: 4.465 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.0001788/0.3311, allocations: 159.4 kB / 1.073 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.3311, allocations: 39.56 kB / 1.073 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.137e-05/0.3312, allocations: 33.86 kB / 1.073 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3312, allocations: 4 kB / 1.073 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.3312, allocations: 0 / 1.073 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3312, allocations: 11.94 kB / 1.073 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003912/0.3316, allocations: 353.2 kB / 1.073 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3317, allocations: 4 kB / 1.073 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.3321, allocations: 79.83 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3321, allocations: 3.938 kB / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.3321, allocations: 11.98 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3321, allocations: 4 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3321, allocations: 0 / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.3332, allocations: 0.5823 MB / 1.074 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.3333, allocations: 100.8 kB / 1.074 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.3334, allocations: 11.94 kB / 1.074 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.3336, allocations: 39.95 kB / 1.074 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.3338, allocations: 51.94 kB / 1.074 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.3338, allocations: 20.08 kB / 1.074 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001031/0.3339, allocations: 125.2 kB / 1.074 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3339, allocations: 0 / 1.074 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003313/0.3343, allocations: 80 kB / 1.075 GB, free: 2.668 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.0002084/0.3345, allocations: 127.8 kB / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008852/0.3354, allocations: 406.4 kB / 1.075 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3354, allocations: 0 / 1.075 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.3358, allocations: 195.8 kB / 1.075 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.3361, allocations: 56.31 kB / 1.075 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.3375, allocations: 0.6981 MB / 1.076 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.3379, allocations: 0.7686 MB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001566/0.3381, allocations: 30.97 kB / 1.077 GB, free: 356 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.3382, allocations: 43.42 kB / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of SimCode: time 3.456e-06/0.3382, allocations: 0 / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of Templates: time 0.007841/0.346, allocations: 3.593 MB / 1.08 GB, free: 12.74 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches