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.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,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.001016/0.001017, allocations: 91.61 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.001407/0.001407, 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.481/1.481, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.946/2.946, allocations: 462.6 MB / 0.736 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003867, allocations: 11 kB / 0.9022 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4069, allocations: 159.6 MB / 1.058 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001361/0.4084, allocations: 0.7654 MB / 1.059 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.4103, allocations: 1.092 MB / 1.06 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.4105, allocations: 3.938 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.925e-05/0.4106, allocations: 15.81 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.4107, allocations: 35.7 kB / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.4113, allocations: 115.8 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.4117, allocations: 295.1 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.4119, allocations: 44.23 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002764/0.4122, allocations: 107.7 kB / 1.06 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002627/0.4125, allocations: 127.5 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.821e-05/0.4125, allocations: 16 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.03e-05/0.4126, allocations: 12 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.051e-05/0.4127, allocations: 67.78 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.636e-05/0.4128, allocations: 73.52 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.413, allocations: 215.7 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.413, allocations: 0 / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4131, allocations: 0 / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.566e-05/0.4131, allocations: 0 / 1.061 GB, free: 2.352 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.001348/0.4144, allocations: 0.608 MB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.4145, allocations: 12.03 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.4146, allocations: 31.62 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.4148, allocations: 195.6 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/0.415, allocations: 263.7 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.4151, allocations: 32 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005341/0.4156, allocations: 257.7 kB / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.4157, allocations: 4 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.4157, allocations: 12 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.4157, allocations: 8 kB / 1.062 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.4162, allocations: 179.9 kB / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.4176, allocations: 0.7933 MB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006087/0.4183, allocations: 204.3 kB / 1.063 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.4186, allocations: 138.9 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.108e-05/0.4186, allocations: 12.16 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007273/0.4194, allocations: 319.7 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 3.316e-06/0.4194, allocations: 0 / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001083/0.4205, allocations: 0.4912 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.868e-05/0.4206, allocations: 118.7 kB / 1.064 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.4208, allocations: 176.3 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.4208, allocations: 37.7 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/0.4209, allocations: 133.2 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.4211, allocations: 149.9 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.671e-05/0.4211, allocations: 8 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4212, allocations: 342.8 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003295/0.4216, allocations: 153.2 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.422, allocations: 260.8 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.4223, allocations: 171.9 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.4223, allocations: 0 / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000848/0.4232, allocations: 0.4932 MB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.4232, allocations: 8 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.4232, allocations: 4 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.4233, allocations: 4 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.4236, allocations: 95.83 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.4237, allocations: 11.95 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.424, allocations: 67.66 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.424, allocations: 23.98 kB / 1.067 GB, free: 12.22 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 ($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.0001865/0.4242, allocations: 159.4 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.685e-05/0.4243, allocations: 27.62 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.859e-05/0.4243, allocations: 37.86 kB / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.4244, allocations: 8 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.4244, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4244, allocations: 3.953 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.4248, allocations: 357.2 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.4248, allocations: 0 / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.4252, allocations: 79.89 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/0.4252, allocations: 4 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.4253, allocations: 15.92 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4253, allocations: 4 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4253, allocations: 4 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.4264, allocations: 0.5953 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-05/0.4265, allocations: 100.8 kB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.992e-05/0.4265, allocations: 8 kB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.4268, allocations: 51.95 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.4269, allocations: 40.05 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/0.4269, allocations: 19.98 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.273e-05/0.427, allocations: 124.3 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.427, allocations: 0 / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003518/0.4274, allocations: 79.95 kB / 1.068 GB, free: 10.42 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 (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.0002104/0.4276, allocations: 123.2 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007644/0.4284, allocations: 392.1 kB / 1.069 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4284, allocations: 192 / 1.069 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.4287, allocations: 187.7 kB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.4291, allocations: 48.11 kB / 1.069 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.4303, allocations: 0.7007 MB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.4306, allocations: 0.7686 MB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001705/0.4308, allocations: 43.17 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4309, allocations: 31.42 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.4309, allocations: 4 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.007062/0.438, allocations: 3.013 MB / 1.073 GB, free: 5.098 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