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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001168/0.001168, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009898/0.009898, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.5/1.5, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.875/2.875, allocations: 462.7 MB / 0.7364 GB, free: 244 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005333/0.0005333, allocations: 15.28 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4316, allocations: 159.6 MB / 1.059 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001749/0.4335, allocations: 0.8154 MB / 1.059 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00203/0.4355, allocations: 1.111 MB / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.645e-05/0.4356, allocations: 0 / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.136e-05/0.4357, allocations: 7.875 kB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.4359, allocations: 43.69 kB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005067/0.4364, allocations: 123.8 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.4367, allocations: 307.1 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.4369, allocations: 52.23 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.4371, allocations: 107.6 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.4374, allocations: 135.4 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/0.4374, allocations: 19.94 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.116e-05/0.4374, allocations: 12 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.562e-05/0.4375, allocations: 63.78 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.4377, allocations: 145.1 kB / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002685/0.438, allocations: 295.2 kB / 1.062 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.438, allocations: 0 / 1.062 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.024e-06/0.438, allocations: 4 kB / 1.062 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.438, allocations: 0 / 1.062 GB, free: 2.199 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.001194/0.4392, allocations: 0.6042 MB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.4392, allocations: 12.03 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.525e-05/0.4393, allocations: 36.55 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.4395, allocations: 196.8 kB / 1.063 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.4397, allocations: 264.3 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.4398, allocations: 32.36 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.4403, allocations: 262.3 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.4404, allocations: 7.922 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.4404, allocations: 12 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.4404, allocations: 8 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.4409, allocations: 179.9 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.4421, allocations: 0.7776 MB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.4427, allocations: 217.3 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.443, allocations: 142.5 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.443, allocations: 11.91 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005913/0.4436, allocations: 315.6 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.4436, allocations: 4.219 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.00107/0.4447, allocations: 0.4945 MB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.4448, allocations: 118.8 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.445, allocations: 179.4 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/0.4451, allocations: 41.64 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/0.4452, allocations: 121.3 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.4453, allocations: 146 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.4454, allocations: 61.69 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.4456, allocations: 342.8 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.4459, allocations: 157.2 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/0.4463, allocations: 260.8 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006937/0.447, allocations: 414 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.447, allocations: 4 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008621/0.4479, allocations: 0.4931 MB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.4479, allocations: 7.938 kB / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4479, allocations: 4 kB / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.4479, allocations: 4 kB / 1.068 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.4483, allocations: 103.8 kB / 1.068 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.4484, allocations: 4 kB / 1.068 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.4486, allocations: 67.64 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.4487, allocations: 20 kB / 1.068 GB, free: 11.73 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.0001988/0.4489, allocations: 164.1 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.449, allocations: 35.56 kB / 1.068 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.031e-05/0.449, allocations: 33.86 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.4491, allocations: 4 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4491, allocations: 3.938 kB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.4491, allocations: 7.984 kB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004007/0.4495, allocations: 349.2 kB / 1.068 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.4495, allocations: 0 / 1.068 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.4499, allocations: 79.89 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.924e-06/0.4499, allocations: 7.938 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.966e-05/0.45, allocations: 11.98 kB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/0.45, allocations: 7.938 kB / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.45, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.4511, allocations: 0.598 MB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.625e-05/0.4512, allocations: 104.8 kB / 1.069 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.4512, allocations: 19.92 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.4515, allocations: 43.97 kB / 1.069 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.4516, allocations: 59.95 kB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.4516, allocations: 16 kB / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001063/0.4518, allocations: 129.2 kB / 1.069 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4518, allocations: 0 / 1.069 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000317/0.4521, allocations: 76 kB / 1.069 GB, free: 9.895 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.0002399/0.4523, allocations: 116 kB / 1.07 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007775/0.4531, allocations: 399.3 kB / 1.07 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4531, allocations: 0 / 1.07 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004041/0.4535, allocations: 219.6 kB / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.4539, allocations: 41.23 kB / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.4552, allocations: 0.7336 MB / 1.071 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.4555, allocations: 0.7686 MB / 1.072 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001606/0.4557, allocations: 39.23 kB / 1.072 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.4558, allocations: 35.42 kB / 1.072 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.4558, allocations: 0 / 1.072 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of Templates: time 0.007191/0.463, allocations: 3.37 MB / 1.075 GB, free: 4.164 MB / 0.8262 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 -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/jenkins/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