Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008929/0.0008932, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.001006/0.001006, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 223.3 MB / 240 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.759/2.759, allocations: 437.7 MB / 0.7117 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004097/0.00041, allocations: 16 kB / 0.8722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7469/0.7474, allocations: 153.8 MB / 1.022 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001421/0.7489, allocations: 0.763 MB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001382/0.7503, allocations: 1.096 MB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.865e-05/0.7504, allocations: 4 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.526e-05/0.7504, allocations: 11.86 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.7505, allocations: 31.72 kB / 1.024 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.7509, allocations: 123.8 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.7512, allocations: 291.1 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.7514, allocations: 48.3 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.7516, allocations: 107.7 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.7518, allocations: 135.5 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.7518, allocations: 20 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 3.447e-05/0.7519, allocations: 15.94 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.7519, allocations: 55.8 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.813e-05/0.752, allocations: 69.58 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.7523, allocations: 225.3 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.7523, allocations: 0 / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.024e-06/0.7523, allocations: 0 / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.7523, allocations: 0 / 1.025 GB, free: 13.07 MB / 0.7794 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.00113/0.7534, allocations: 0.6002 MB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.7535, allocations: 16.52 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.956e-05/0.7536, allocations: 31.72 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.7538, allocations: 195.6 kB / 1.026 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002421/0.754, allocations: 263.8 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.24e-05/0.7541, allocations: 39.84 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.7546, allocations: 261.7 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.7546, allocations: 8 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.7546, allocations: 4 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.7547, allocations: 8 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.7551, allocations: 183.8 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.7562, allocations: 0.7855 MB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004746/0.7567, allocations: 216.2 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/0.7569, allocations: 138.9 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.757, allocations: 4.188 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005548/0.7575, allocations: 323.4 kB / 1.028 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 1.993e-06/0.7576, allocations: 0 / 1.028 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001009/0.7586, allocations: 495 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.7587, allocations: 118.7 kB / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.7588, allocations: 183.3 kB / 1.029 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.7589, allocations: 37.7 kB / 1.029 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.272e-05/0.759, allocations: 125.3 kB / 1.029 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.7591, allocations: 150 kB / 1.029 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.513e-05/0.7591, allocations: 12 kB / 1.029 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.7592, allocations: 338.8 kB / 1.03 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.7595, allocations: 149.2 kB / 1.03 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/0.7599, allocations: 256.8 kB / 1.03 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.7602, allocations: 171.9 kB / 1.03 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.7602, allocations: 0 / 1.03 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008068/0.761, allocations: 0.4891 MB / 1.031 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.7611, allocations: 11.98 kB / 1.031 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.7611, allocations: 7.938 kB / 1.031 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.7611, allocations: 4 kB / 1.031 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.7615, allocations: 95.83 kB / 1.031 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.7615, allocations: 8 kB / 1.031 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.7618, allocations: 71.61 kB / 1.031 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.7618, allocations: 20 kB / 1.031 GB, free: 6.953 MB / 0.7794 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 ($whenCondition5,$PRE.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001936/0.762, allocations: 164 kB / 1.031 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.326e-05/0.7621, allocations: 27.72 kB / 1.031 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.598e-05/0.7622, allocations: 33.86 kB / 1.031 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.7622, allocations: 8 kB / 1.031 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.7622, allocations: 0 / 1.031 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.7622, allocations: 0 / 1.031 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.7626, allocations: 369 kB / 1.031 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7626, allocations: 0 / 1.031 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003908/0.763, allocations: 79.89 kB / 1.032 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.763, allocations: 4 kB / 1.032 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.763, allocations: 12 kB / 1.032 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.7631, allocations: 3.984 kB / 1.032 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.7631, allocations: 4 kB / 1.032 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.7641, allocations: 0.6025 MB / 1.032 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.7642, allocations: 100.8 kB / 1.032 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.7642, allocations: 8 kB / 1.032 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.7645, allocations: 51.95 kB / 1.032 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.7646, allocations: 35.95 kB / 1.032 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.7646, allocations: 15.98 kB / 1.032 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.345e-05/0.7647, allocations: 125.2 kB / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7647, allocations: 0 / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000322/0.7651, allocations: 79.94 kB / 1.033 GB, free: 5.152 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001791/0.7653, allocations: 132.1 kB / 1.033 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007291/0.766, allocations: 403.6 kB / 1.033 GB, free: 4.625 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.766, allocations: 0 / 1.033 GB, free: 4.625 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.7664, allocations: 183.8 kB / 1.033 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.7667, allocations: 55.64 kB / 1.033 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.7679, allocations: 0.7066 MB / 1.034 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.7683, allocations: 0.7686 MB / 1.035 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001634/0.7685, allocations: 30.97 kB / 1.035 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.7686, allocations: 39.36 kB / 1.035 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.7686, allocations: 0 / 1.035 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of Templates: time 0.006813/0.7755, allocations: 3 MB / 1.038 GB, free: 15.82 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches