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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001693/0.001693, allocations: 109.3 kB / 15.7 MB, free: 132 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.002185/0.002185, allocations: 195.4 kB / 16.63 MB, free: 6.609 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.545/1.545, allocations: 222.9 MB / 240.3 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.613/2.613, allocations: 390.3 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00254/0.002541, allocations: 69.22 kB / 0.951 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3796, allocations: 140.4 MB / 1.088 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003444/0.3831, allocations: 1.967 MB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.3843, allocations: 0.6441 MB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.091e-05/0.3844, allocations: 0 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.712e-05/0.3845, allocations: 19.69 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.3846, allocations: 51.56 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004844/0.3851, allocations: 143.8 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003876/0.3855, allocations: 323.2 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.3857, allocations: 44.39 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.3859, allocations: 135.5 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.3861, allocations: 151.4 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.035e-05/0.3861, allocations: 32 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 4.643e-05/0.3862, allocations: 28 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.3863, allocations: 75.78 kB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.3864, allocations: 135.4 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.3868, allocations: 310.9 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3868, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.905e-06/0.3868, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.153e-05/0.3868, allocations: 0 / 1.092 GB, free: 13.3 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.001297/0.3881, allocations: 0.6314 MB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3882, allocations: 8.031 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.498e-05/0.3882, allocations: 28.66 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.3884, allocations: 200.8 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.3887, allocations: 264.3 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.239e-05/0.3887, allocations: 32.31 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.3892, allocations: 265.9 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.3893, allocations: 3.906 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.3893, allocations: 15.98 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.3893, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004154/0.3897, allocations: 179.8 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3909, allocations: 0.7737 MB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.3915, allocations: 211.7 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/0.3917, allocations: 131.6 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.664e-05/0.3918, allocations: 11.98 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005961/0.3924, allocations: 311.4 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 1.713e-06/0.3924, allocations: 0 / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001098/0.3935, allocations: 478.1 kB / 1.095 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3936, allocations: 130.7 kB / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001929/0.3938, allocations: 183.3 kB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.3939, allocations: 41.7 kB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.482e-05/0.394, allocations: 109.3 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.3941, allocations: 153.8 kB / 1.096 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.3943, allocations: 106.3 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002475/0.3946, allocations: 342.8 kB / 1.096 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.3949, allocations: 149.2 kB / 1.097 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.3952, allocations: 248.8 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000628/0.3959, allocations: 398 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3959, allocations: 0 / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008205/0.3967, allocations: 0.4891 MB / 1.098 GB, free: 7.062 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3968, allocations: 4 kB / 1.098 GB, free: 7.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3968, allocations: 4 kB / 1.098 GB, free: 7.055 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3968, allocations: 4 kB / 1.098 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003817/0.3972, allocations: 99.81 kB / 1.098 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.3972, allocations: 4 kB / 1.098 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.3975, allocations: 55.66 kB / 1.098 GB, free: 6.895 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.658e-05/0.3975, allocations: 28 kB / 1.098 GB, free: 6.867 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.0001652/0.3977, allocations: 163.5 kB / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.86e-05/0.3978, allocations: 31.56 kB / 1.098 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.461e-05/0.3978, allocations: 29.88 kB / 1.098 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3979, allocations: 8 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3979, allocations: 0 / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3979, allocations: 3.984 kB / 1.098 GB, free: 6.625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.3983, allocations: 353.2 kB / 1.098 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3983, allocations: 7.938 kB / 1.098 GB, free: 6.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.3987, allocations: 75.92 kB / 1.098 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.3987, allocations: 7.984 kB / 1.098 GB, free: 6.141 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.3987, allocations: 12 kB / 1.099 GB, free: 6.129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.3987, allocations: 4 kB / 1.099 GB, free: 6.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3987, allocations: 0 / 1.099 GB, free: 6.125 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.3999, allocations: 0.591 MB / 1.099 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.41e-05/0.4, allocations: 108.7 kB / 1.099 GB, free: 5.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.4, allocations: 8 kB / 1.099 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.4003, allocations: 31.97 kB / 1.099 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.4004, allocations: 55.92 kB / 1.099 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.4005, allocations: 16 kB / 1.099 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001106/0.4006, allocations: 128.1 kB / 1.099 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.4006, allocations: 0 / 1.099 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003481/0.401, allocations: 76 kB / 1.099 GB, free: 5.074 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.0002557/0.4012, allocations: 125.2 kB / 1.1 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000819/0.402, allocations: 392.5 kB / 1.1 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4021, allocations: 0 / 1.1 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003611/0.4024, allocations: 195.1 kB / 1.1 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.4028, allocations: 43.92 kB / 1.1 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.404, allocations: 0.6144 MB / 1.101 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.4044, allocations: 0.7608 MB / 1.102 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001463/0.4046, allocations: 38.95 kB / 1.102 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4047, allocations: 35.44 kB / 1.102 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/0.4047, allocations: 0 / 1.102 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of Templates: time 0.008156/0.4129, allocations: 3.911 MB / 1.105 GB, free: 14.96 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