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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001723/0.001731, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002234/0.002234, allocations: 192.7 kB / 16.53 MB, free: 6.668 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.496/1.496, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.98/2.98, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.98 kB / 0.9121 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3727, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002958/0.3757, allocations: 1.111 MB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001695/0.3774, allocations: 1.108 MB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.3777, allocations: 0 / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 7.483e-05/0.3778, allocations: 23.67 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.378, allocations: 43.58 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005657/0.3786, allocations: 147.7 kB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.379, allocations: 319.2 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.3792, allocations: 60.23 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000282/0.3795, allocations: 127.6 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.3798, allocations: 155.3 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.3798, allocations: 28 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.3799, allocations: 32 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.233e-05/0.38, allocations: 79.78 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.3802, allocations: 131.4 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.3805, allocations: 311.2 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3805, allocations: 0 / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3805, allocations: 0 / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.465e-05/0.3806, allocations: 0 / 1.072 GB, free: 6.758 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.001402/0.382, allocations: 0.6312 MB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.382, allocations: 8.031 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.3821, allocations: 32.64 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.3823, allocations: 200.8 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/0.3826, allocations: 264.3 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.3827, allocations: 32.38 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005605/0.3833, allocations: 262.3 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.3833, allocations: 7.844 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.3833, allocations: 8 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3834, allocations: 4 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005075/0.3839, allocations: 179.8 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.3852, allocations: 0.7852 MB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005198/0.3857, allocations: 199.7 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.386, allocations: 131.1 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.95e-05/0.386, allocations: 15.97 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006126/0.3867, allocations: 304 kB / 1.075 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.365e-06/0.3867, allocations: 3.938 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001074/0.3878, allocations: 495.5 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.14e-05/0.3879, allocations: 114.8 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.388, allocations: 171.5 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.3881, allocations: 41.69 kB / 1.076 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.668e-05/0.3882, allocations: 121.3 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.3883, allocations: 149.9 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.3885, allocations: 110.3 kB / 1.076 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3887, allocations: 338.8 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003261/0.389, allocations: 145.2 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.3894, allocations: 260.8 kB / 1.077 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.3901, allocations: 398 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.3901, allocations: 0 / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008874/0.391, allocations: 489.2 kB / 1.077 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.391, allocations: 7.938 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.391, allocations: 4 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.391, allocations: 8 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.3914, allocations: 91.83 kB / 1.078 GB, free: 424 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.3914, allocations: 11.98 kB / 1.078 GB, free: 412 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002835/0.3917, allocations: 63.56 kB / 1.078 GB, free: 348 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.3918, allocations: 20 kB / 1.078 GB, free: 328 kB / 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.0001781/0.392, allocations: 163.5 kB / 1.078 GB, free: 156 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.405e-05/0.392, allocations: 31.64 kB / 1.078 GB, free: 124 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.69e-05/0.3921, allocations: 37.81 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.3921, allocations: 8 kB / 1.078 GB, free: 80 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.3921, allocations: 0 / 1.078 GB, free: 80 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3922, allocations: 3.984 kB / 1.078 GB, free: 76 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.3925, allocations: 349.2 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3925, allocations: 0 / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/0.3929, allocations: 75.89 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.779e-06/0.393, allocations: 7.938 kB / 1.078 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.393, allocations: 19.92 kB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.393, allocations: 4 kB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.393, allocations: 3.938 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.3941, allocations: 0.5745 MB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.85e-05/0.3941, allocations: 100.8 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.24e-05/0.3942, allocations: 19.98 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.3944, allocations: 35.97 kB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.3946, allocations: 59.97 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.3946, allocations: 19.98 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001019/0.3947, allocations: 125.2 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.583e-06/0.3947, allocations: 0 / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003672/0.3951, allocations: 83.84 kB / 1.079 GB, free: 14.52 MB / 0.8419 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.0002149/0.3953, allocations: 123.7 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008293/0.3962, allocations: 402.5 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3962, allocations: 0 / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004033/0.3966, allocations: 200.7 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.397, allocations: 41.64 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.3983, allocations: 0.6236 MB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.3986, allocations: 0.7608 MB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000168/0.3988, allocations: 46.89 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.3989, allocations: 35.44 kB / 1.081 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of SimCode: time 7.91e-07/0.399, allocations: 0 / 1.081 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of Templates: time 0.00909/0.4081, allocations: 3.991 MB / 1.085 GB, free: 8.277 MB / 0.8419 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