Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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,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") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001608, allocations: 106.6 kB / 16.27 MB, free: 6.414 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.001912/0.001912, allocations: 189.6 kB / 17.2 MB, free: 5.953 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.364/1.364, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.249/2.249, allocations: 390.3 MB / 0.6653 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 68.53 kB / 0.8132 GB, free: 33.07 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3226, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002677/0.3254, allocations: 1.115 MB / 0.9514 GB, free: 7.77 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001585/0.327, allocations: 1.1 MB / 0.9524 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.3271, allocations: 4 kB / 0.9525 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.906e-05/0.3273, allocations: 19.69 kB / 0.9525 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.3274, allocations: 43.52 kB / 0.9525 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005354/0.328, allocations: 151.7 kB / 0.9527 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.3284, allocations: 327.1 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.3286, allocations: 48.39 kB / 0.953 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.3288, allocations: 135.5 kB / 0.9531 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.3291, allocations: 143.5 kB / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.553e-05/0.3291, allocations: 31.98 kB / 0.9533 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.902e-05/0.3292, allocations: 28 kB / 0.9533 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.998e-05/0.3293, allocations: 79.73 kB / 0.9534 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3294, allocations: 139.3 kB / 0.9535 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.3297, allocations: 299.3 kB / 0.9538 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3297, allocations: 4 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3297, allocations: 3.938 kB / 0.9538 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.778e-05/0.3298, allocations: 0 / 0.9538 GB, free: 5.223 MB / 0.7325 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.001338/0.3311, allocations: 0.6273 MB / 0.9545 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3312, allocations: 12.03 kB / 0.9545 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.196e-05/0.3313, allocations: 36.66 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.3314, allocations: 196.8 kB / 0.9547 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.3316, allocations: 260.3 kB / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.228e-05/0.3317, allocations: 32.28 kB / 0.955 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.3322, allocations: 258.3 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.3323, allocations: 3.938 kB / 0.9552 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.3323, allocations: 15.92 kB / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.3323, allocations: 8 kB / 0.9552 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004406/0.3327, allocations: 171.8 kB / 0.9554 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.3339, allocations: 0.7814 MB / 0.9562 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004964/0.3344, allocations: 210 kB / 0.9564 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.3347, allocations: 134.5 kB / 0.9565 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.3347, allocations: 15.98 kB / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000539/0.3353, allocations: 307.6 kB / 0.9568 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 1.903e-06/0.3353, allocations: 0 / 0.9568 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.001023/0.3363, allocations: 477.4 kB / 0.9573 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.181e-05/0.3364, allocations: 122.8 kB / 0.9574 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.3366, allocations: 172.4 kB / 0.9575 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.3366, allocations: 45.64 kB / 0.9576 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.941e-05/0.3367, allocations: 121.2 kB / 0.9577 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.3368, allocations: 146 kB / 0.9578 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.337, allocations: 110.3 kB / 0.9579 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3371, allocations: 338.8 kB / 0.9583 GB, free: 352 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/0.3374, allocations: 149.2 kB / 0.9584 GB, free: 204 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.3378, allocations: 256.7 kB / 0.9587 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.3385, allocations: 398.1 kB / 0.959 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.3385, allocations: 0 / 0.959 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008432/0.3394, allocations: 489.5 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3394, allocations: 10.28 kB / 0.9595 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3394, allocations: 8 kB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.3394, allocations: 4 kB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003788/0.3398, allocations: 107.8 kB / 0.9596 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.3398, allocations: 4 kB / 0.9596 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.3401, allocations: 55.66 kB / 0.9597 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.3402, allocations: 20 kB / 0.9597 GB, free: 14.8 MB / 0.7481 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.0001661/0.3403, allocations: 169.8 kB / 0.9599 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.005e-05/0.3404, allocations: 27.66 kB / 0.9599 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.362e-05/0.3404, allocations: 29.88 kB / 0.9599 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3405, allocations: 4 kB / 0.9599 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.3405, allocations: 4 kB / 0.9599 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.3405, allocations: 3.984 kB / 0.9599 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.3408, allocations: 361.1 kB / 0.9603 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3409, allocations: 0 / 0.9603 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.3413, allocations: 71.89 kB / 0.9603 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.3413, allocations: 11.94 kB / 0.9604 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.3413, allocations: 12 kB / 0.9604 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3413, allocations: 0 / 0.9604 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.3413, allocations: 4.078 kB / 0.9604 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.3424, allocations: 0.5831 MB / 0.9609 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.3425, allocations: 104.8 kB / 0.961 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.3425, allocations: 11.94 kB / 0.9611 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.3428, allocations: 31.97 kB / 0.9611 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.3429, allocations: 39.94 kB / 0.9611 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.3429, allocations: 12 kB / 0.9611 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.809e-05/0.343, allocations: 136.3 kB / 0.9613 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.11e-07/0.343, allocations: 0 / 0.9613 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003345/0.3434, allocations: 76.09 kB / 0.9613 GB, free: 13.03 MB / 0.7481 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.0001724/0.3435, allocations: 119.1 kB / 0.9614 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007993/0.3443, allocations: 414.7 kB / 0.9618 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3444, allocations: 0 / 0.9618 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.3447, allocations: 183.9 kB / 0.962 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3451, allocations: 52.45 kB / 0.9621 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.3463, allocations: 0.6393 MB / 0.9627 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.3466, allocations: 0.7646 MB / 0.9634 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.3468, allocations: 39.42 kB / 0.9635 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of SimCode: time 3.61e-07/0.3468, allocations: 0 / 0.9635 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of Templates: time 0.006693/0.3535, allocations: 3.951 MB / 0.9673 GB, free: 6.832 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches