Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.MovingAverage_nonZeroStart,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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007754/0.007754, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001259/0.001259, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.661/1.661, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.585/2.585, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 65.62 kB / 0.9509 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.4052, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003689/0.409, allocations: 1.975 MB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.4103, allocations: 0.648 MB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.4104, allocations: 4 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.772e-05/0.4105, allocations: 23.67 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.4106, allocations: 39.58 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.4111, allocations: 147.7 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.4114, allocations: 331.1 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.4116, allocations: 48.38 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.4119, allocations: 131.6 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.4121, allocations: 155.3 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.293e-05/0.4122, allocations: 28 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 4.241e-05/0.4122, allocations: 32 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.115e-05/0.4123, allocations: 75.8 kB / 1.092 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.4124, allocations: 139.3 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.4128, allocations: 302.8 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4128, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4128, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.4128, allocations: 4 kB / 1.092 GB, free: 13.39 MB / 0.8575 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.001324/0.4141, allocations: 0.6273 MB / 1.093 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.4142, allocations: 15.97 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.136e-05/0.4143, allocations: 36.73 kB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.4145, allocations: 196.9 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/0.4149, allocations: 264.3 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.817e-05/0.4149, allocations: 32.36 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005742/0.4155, allocations: 261.9 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.4156, allocations: 7.938 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.4156, allocations: 8 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.4156, allocations: 4 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004126/0.416, allocations: 179.8 kB / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.4171, allocations: 0.7737 MB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004938/0.4176, allocations: 207.7 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.4179, allocations: 134.5 kB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.418, allocations: 8 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006008/0.4186, allocations: 319.4 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 3.577e-06/0.4186, allocations: 3.984 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001082/0.4197, allocations: 478.2 kB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.4198, allocations: 122.7 kB / 1.095 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.42, allocations: 179.4 kB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.42, allocations: 41.7 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.941e-05/0.4201, allocations: 117.3 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.4203, allocations: 162.7 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.4204, allocations: 106.3 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002251/0.4206, allocations: 342.8 kB / 1.096 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.4209, allocations: 145.2 kB / 1.097 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.4213, allocations: 260.7 kB / 1.097 GB, free: 8.059 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006219/0.4219, allocations: 386.1 kB / 1.097 GB, free: 7.645 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4219, allocations: 0 / 1.097 GB, free: 7.645 MB / 0.8575 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008438/0.4228, allocations: 493 kB / 1.098 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.4228, allocations: 7.984 kB / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4228, allocations: 4 kB / 1.098 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.4229, allocations: 8 kB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004406/0.4233, allocations: 95.83 kB / 1.098 GB, free: 7.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.4233, allocations: 7.938 kB / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.4236, allocations: 63.7 kB / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-05/0.4236, allocations: 16 kB / 1.098 GB, free: 6.957 MB / 0.8575 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.0001927/0.4238, allocations: 167.4 kB / 1.098 GB, free: 6.781 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.108e-05/0.4239, allocations: 31.8 kB / 1.098 GB, free: 6.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.462e-05/0.424, allocations: 33.86 kB / 1.098 GB, free: 6.715 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.424, allocations: 4 kB / 1.098 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.424, allocations: 4 kB / 1.098 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.424, allocations: 0 / 1.098 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/0.4244, allocations: 349.3 kB / 1.098 GB, free: 6.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4244, allocations: 0 / 1.098 GB, free: 6.316 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003914/0.4248, allocations: 83.77 kB / 1.098 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4248, allocations: 4 kB / 1.098 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.4249, allocations: 12 kB / 1.098 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4249, allocations: 4.75 kB / 1.098 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4249, allocations: 8 kB / 1.098 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.426, allocations: 0.5952 MB / 1.099 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.183e-05/0.4261, allocations: 104.8 kB / 1.099 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.4262, allocations: 12 kB / 1.099 GB, free: 5.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.4264, allocations: 31.95 kB / 1.099 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.4266, allocations: 51.94 kB / 1.099 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.4266, allocations: 12 kB / 1.099 GB, free: 5.363 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001088/0.4267, allocations: 128.1 kB / 1.099 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4267, allocations: 4 kB / 1.099 GB, free: 5.234 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003484/0.4271, allocations: 80.14 kB / 1.099 GB, free: 5.156 MB / 0.8575 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.0002748/0.4274, allocations: 129.3 kB / 1.1 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008071/0.4282, allocations: 391.4 kB / 1.1 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4282, allocations: 7.938 kB / 1.1 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003771/0.4286, allocations: 191 kB / 1.1 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.4289, allocations: 40.86 kB / 1.1 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.4304, allocations: 0.607 MB / 1.101 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.4309, allocations: 0.7686 MB / 1.102 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000157/0.4311, allocations: 38.95 kB / 1.102 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.4312, allocations: 35.44 kB / 1.102 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.4312, allocations: 0 / 1.102 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of Templates: time 0.009853/0.4411, allocations: 3.947 MB / 1.105 GB, free: 14.99 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches