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.001461/0.001461, allocations: 91.92 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.001731/0.001731, 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.493/1.493, allocations: 223.3 MB / 240 MB, free: 5.426 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.575/2.575, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.000383, allocations: 12 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8807/0.8811, allocations: 142.4 MB / 0.9545 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002039/0.8832, allocations: 1.615 MB / 0.956 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009402/0.8842, allocations: 0.6228 MB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.029e-05/0.8843, allocations: 1.312 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.596e-05/0.8843, allocations: 11.86 kB / 0.9567 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.8844, allocations: 32.78 kB / 0.9567 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.8848, allocations: 121.8 kB / 0.9568 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002658/0.8851, allocations: 291.4 kB / 0.9571 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.8852, allocations: 46.55 kB / 0.9571 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.8854, allocations: 110.3 kB / 0.9572 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.8856, allocations: 133.8 kB / 0.9574 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.8856, allocations: 15 kB / 0.9574 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.694e-05/0.8857, allocations: 14.84 kB / 0.9574 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.035e-05/0.8857, allocations: 55.83 kB / 0.9574 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.857e-05/0.8858, allocations: 71.73 kB / 0.9575 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.886, allocations: 209.5 kB / 0.9577 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.886, allocations: 0 / 0.9577 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.886, allocations: 0 / 0.9577 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.886, allocations: 0 / 0.9577 GB, free: 5.258 MB / 0.7169 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.001034/0.887, allocations: 0.6089 MB / 0.9583 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.8871, allocations: 8.969 kB / 0.9583 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.359e-05/0.8872, allocations: 32.64 kB / 0.9584 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.8873, allocations: 198.5 kB / 0.9585 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.8874, allocations: 269.7 kB / 0.9588 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.8875, allocations: 34.94 kB / 0.9588 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.888, allocations: 264.1 kB / 0.9591 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.888, allocations: 9.375 kB / 0.9591 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.888, allocations: 6.75 kB / 0.9591 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.8881, allocations: 9.5 kB / 0.9591 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.8885, allocations: 188.3 kB / 0.9593 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009051/0.8894, allocations: 0.7884 MB / 0.9601 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004432/0.8898, allocations: 210.5 kB / 0.9603 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/0.8901, allocations: 136.8 kB / 0.9604 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.8901, allocations: 10.08 kB / 0.9604 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005282/0.8907, allocations: 321.4 kB / 0.9607 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 2.024e-06/0.8907, allocations: 1 kB / 0.9607 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001061/0.8918, allocations: 495.8 kB / 0.9612 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.8918, allocations: 114.8 kB / 0.9613 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.892, allocations: 179.7 kB / 0.9615 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.892, allocations: 37.27 kB / 0.9615 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.636e-05/0.8921, allocations: 120.7 kB / 0.9616 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.8922, allocations: 149 kB / 0.9618 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.8922, allocations: 18.69 kB / 0.9618 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.863e-05/0.8923, allocations: 337 kB / 0.9621 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.8926, allocations: 148.2 kB / 0.9622 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.8929, allocations: 262.3 kB / 0.9625 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.8933, allocations: 172.3 kB / 0.9626 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8933, allocations: 4.984 kB / 0.9627 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007889/0.8941, allocations: 496.9 kB / 0.9631 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.8941, allocations: 10.69 kB / 0.9631 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.8941, allocations: 2.531 kB / 0.9631 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.8941, allocations: 5.562 kB / 0.9631 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003721/0.8945, allocations: 99.95 kB / 0.9632 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.8945, allocations: 3.938 kB / 0.9632 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.8948, allocations: 68.31 kB / 0.9633 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.8949, allocations: 27.14 kB / 0.9633 GB, free: 0.9766 MB / 0.7169 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.0001398/0.895, allocations: 159.4 kB / 0.9635 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/0.8951, allocations: 29.45 kB / 0.9635 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.747e-05/0.8951, allocations: 34.17 kB / 0.9635 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.8951, allocations: 9.031 kB / 0.9636 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.8952, allocations: 1.281 kB / 0.9636 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.8952, allocations: 1.312 kB / 0.9636 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.8955, allocations: 359.7 kB / 0.9639 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8955, allocations: 1.281 kB / 0.9639 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.8959, allocations: 86.94 kB / 0.964 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.8959, allocations: 1.906 kB / 0.964 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.8959, allocations: 12.98 kB / 0.964 GB, free: 420 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.896, allocations: 2.125 kB / 0.964 GB, free: 420 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.896, allocations: 6.484 kB / 0.964 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.897, allocations: 0.599 MB / 0.9646 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.799e-05/0.8971, allocations: 101.7 kB / 0.9647 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.173e-05/0.8971, allocations: 15.92 kB / 0.9647 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.8974, allocations: 46.55 kB / 0.9647 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.8975, allocations: 36.17 kB / 0.9648 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.8976, allocations: 19.3 kB / 0.9648 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001033/0.8977, allocations: 119.5 kB / 0.9649 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.8977, allocations: 0.9688 kB / 0.9649 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003655/0.898, allocations: 79.12 kB / 0.965 GB, free: 15.79 MB / 0.7325 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.0002478/0.8983, allocations: 130.1 kB / 0.9651 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000917/0.8992, allocations: 405.9 kB / 0.9655 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.257e-06/0.8992, allocations: 1.344 kB / 0.9655 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.8997, allocations: 185.1 kB / 0.9657 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.9001, allocations: 34.52 kB / 0.9657 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.9014, allocations: 0.7052 MB / 0.9664 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.9018, allocations: 0.7661 MB / 0.9671 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001841/0.902, allocations: 35.84 kB / 0.9672 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.9021, allocations: 32.92 kB / 0.9672 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.9022, allocations: 0 / 0.9672 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of Templates: time 0.006789/0.9089, allocations: 3.012 MB / 0.9702 GB, free: 12.69 MB / 0.7325 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