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.007494/0.007501, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.001506/0.001506, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.494/1.494, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.752/2.752, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 66.19 kB / 0.9509 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.365, allocations: 140.4 MB / 1.088 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.0048/0.3698, allocations: 1.955 MB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.3714, allocations: 0.648 MB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.3717, allocations: 0 / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.3719, allocations: 23.73 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.3722, allocations: 43.52 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006871/0.3729, allocations: 151.7 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005221/0.3734, allocations: 323.1 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.3737, allocations: 52.36 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003604/0.374, allocations: 135.5 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.3743, allocations: 147.4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.3745, allocations: 32 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.153e-05/0.3745, allocations: 32 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.956e-05/0.3746, allocations: 79.78 kB / 1.092 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.3748, allocations: 131.4 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.3753, allocations: 310.9 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3753, allocations: 0 / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3753, allocations: 0 / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.002e-05/0.3753, allocations: 0 / 1.092 GB, free: 13.37 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.001526/0.3769, allocations: 0.6197 MB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.3769, allocations: 11.97 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.3771, allocations: 32.64 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.3773, allocations: 204.8 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.3776, allocations: 264.3 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.3776, allocations: 32.36 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005745/0.3782, allocations: 261.8 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.3783, allocations: 7.891 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.3783, allocations: 8 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.3783, allocations: 4 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004316/0.3788, allocations: 189.7 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3801, allocations: 0.7698 MB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000496/0.3806, allocations: 199.7 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.3808, allocations: 130.5 kB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.014e-05/0.3809, allocations: 19.98 kB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000571/0.3815, allocations: 307.4 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.084e-06/0.3815, allocations: 0 / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001028/0.3825, allocations: 482.1 kB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.974e-05/0.3826, allocations: 118.8 kB / 1.095 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.3828, allocations: 183.2 kB / 1.096 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.3829, allocations: 41.7 kB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.63e-05/0.383, allocations: 117.3 kB / 1.096 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.3831, allocations: 153.9 kB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.3833, allocations: 110.3 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3834, allocations: 342.7 kB / 1.096 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.3838, allocations: 149.2 kB / 1.097 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.3842, allocations: 252.8 kB / 1.097 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006455/0.3848, allocations: 402 kB / 1.097 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.3848, allocations: 4 kB / 1.097 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009462/0.3858, allocations: 496.8 kB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.3858, allocations: 5.406 kB / 1.098 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3859, allocations: 4 kB / 1.098 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/0.3859, allocations: 4 kB / 1.098 GB, free: 7.125 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003809/0.3863, allocations: 99.83 kB / 1.098 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.3863, allocations: 4 kB / 1.098 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.3866, allocations: 59.66 kB / 1.098 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.3867, allocations: 23.98 kB / 1.098 GB, free: 6.941 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.0001886/0.3869, allocations: 155.5 kB / 1.098 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.004e-05/0.3869, allocations: 31.56 kB / 1.098 GB, free: 6.746 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.035e-05/0.387, allocations: 33.86 kB / 1.098 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.387, allocations: 4 kB / 1.098 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3871, allocations: 8 kB / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.3871, allocations: 0 / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004431/0.3875, allocations: 357.2 kB / 1.098 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-05/0.3876, allocations: 0 / 1.098 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004061/0.388, allocations: 79.77 kB / 1.098 GB, free: 6.223 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.388, allocations: 4 kB / 1.098 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.388, allocations: 12 kB / 1.098 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.388, allocations: 3.984 kB / 1.098 GB, free: 6.203 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.388, allocations: 4 kB / 1.098 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.3892, allocations: 0.5797 MB / 1.099 GB, free: 5.598 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3893, allocations: 108.8 kB / 1.099 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/0.3894, allocations: 11.94 kB / 1.099 GB, free: 5.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3896, allocations: 35.95 kB / 1.099 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.3898, allocations: 51.94 kB / 1.099 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/0.3899, allocations: 16 kB / 1.099 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001263/0.39, allocations: 124.1 kB / 1.099 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.39, allocations: 0 / 1.099 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003935/0.3904, allocations: 80 kB / 1.099 GB, free: 5.16 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.0003015/0.3907, allocations: 131.1 kB / 1.1 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009059/0.3916, allocations: 380.6 kB / 1.1 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3916, allocations: 3.938 kB / 1.1 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004146/0.3921, allocations: 187.8 kB / 1.1 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.3924, allocations: 53.5 kB / 1.1 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.3938, allocations: 0.6182 MB / 1.101 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.3943, allocations: 0.7647 MB / 1.102 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001625/0.3945, allocations: 39.23 kB / 1.102 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.3946, allocations: 35.44 kB / 1.102 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/0.3946, allocations: 0 / 1.102 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of Templates: time 0.008625/0.4032, allocations: 3.952 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