Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001125, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.001029/0.001029, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.476/2.476, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 69.22 kB / 0.8707 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3103, allocations: 151.6 MB / 1.019 GB, free: 9.812 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003324/0.3137, allocations: 1.98 MB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.3147, allocations: 0.6481 MB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.846e-05/0.3148, allocations: 0 / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.345e-05/0.3149, allocations: 27.67 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.315, allocations: 39.58 kB / 1.021 GB, free: 7.098 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.3154, allocations: 143.8 kB / 1.022 GB, free: 6.957 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003195/0.3158, allocations: 327.1 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.3159, allocations: 48.33 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.3161, allocations: 131.6 kB / 1.022 GB, free: 6.457 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.3163, allocations: 151.4 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.005e-05/0.3164, allocations: 32 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 4.028e-05/0.3164, allocations: 31.94 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.3165, allocations: 75.78 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.3166, allocations: 135.4 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.3169, allocations: 306.9 kB / 1.023 GB, free: 5.738 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.317, allocations: 4 kB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.084e-06/0.317, allocations: 0 / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.317, allocations: 0 / 1.023 GB, free: 5.734 MB / 0.795 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.001177/0.3182, allocations: 0.6198 MB / 1.023 GB, free: 5.066 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3182, allocations: 12.91 kB / 1.023 GB, free: 5.055 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.32e-05/0.3183, allocations: 32.56 kB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.3184, allocations: 196.8 kB / 1.024 GB, free: 4.789 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.3187, allocations: 268.2 kB / 1.024 GB, free: 4.473 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.455e-05/0.3187, allocations: 32.36 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004463/0.3192, allocations: 257.9 kB / 1.024 GB, free: 4.18 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.3192, allocations: 3.984 kB / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.3192, allocations: 12 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3193, allocations: 4 kB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.3197, allocations: 179.8 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3207, allocations: 0.7736 MB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.3212, allocations: 207.7 kB / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.3214, allocations: 134.5 kB / 1.025 GB, free: 2.781 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.3215, allocations: 11.94 kB / 1.025 GB, free: 2.77 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005288/0.322, allocations: 319.6 kB / 1.026 GB, free: 2.434 MB / 0.795 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.322, allocations: 0 / 1.026 GB, free: 2.434 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.0009616/0.323, allocations: 484.2 kB / 1.026 GB, free: 1.957 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/0.3231, allocations: 118.8 kB / 1.026 GB, free: 1.816 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.3232, allocations: 187.9 kB / 1.026 GB, free: 1.621 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.3233, allocations: 37.7 kB / 1.027 GB, free: 1.578 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/0.3233, allocations: 109.3 kB / 1.027 GB, free: 1.469 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.3235, allocations: 153.9 kB / 1.027 GB, free: 1.316 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.3236, allocations: 102.3 kB / 1.027 GB, free: 1.211 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3237, allocations: 342.8 kB / 1.027 GB, free: 0.8672 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.324, allocations: 153.2 kB / 1.027 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.3244, allocations: 252.8 kB / 1.028 GB, free: 444 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000571/0.325, allocations: 398 kB / 1.028 GB, free: 8 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.325, allocations: 0 / 1.028 GB, free: 8 kB / 0.795 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007793/0.3258, allocations: 493.4 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3258, allocations: 8 kB / 1.028 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.3258, allocations: 4 kB / 1.028 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.3258, allocations: 4 kB / 1.028 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003596/0.3262, allocations: 95.83 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.3262, allocations: 12.08 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.3265, allocations: 55.66 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.3265, allocations: 23.98 kB / 1.029 GB, free: 15.32 MB / 0.8106 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.0001552/0.3267, allocations: 163.4 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.3267, allocations: 31.56 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.649e-05/0.3268, allocations: 33.86 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.3268, allocations: 8 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.3268, allocations: 0 / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3268, allocations: 0 / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003412/0.3272, allocations: 361.1 kB / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3272, allocations: 0 / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.3276, allocations: 83.83 kB / 1.029 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3276, allocations: 4 kB / 1.029 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.3277, allocations: 11.98 kB / 1.029 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3277, allocations: 4 kB / 1.029 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3277, allocations: 0 / 1.029 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009775/0.3287, allocations: 0.5861 MB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.738e-05/0.3287, allocations: 108.9 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.3288, allocations: 8 kB / 1.03 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.329, allocations: 39.89 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.3291, allocations: 51.94 kB / 1.03 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.3292, allocations: 15.98 kB / 1.03 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.342e-05/0.3293, allocations: 129.2 kB / 1.03 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3293, allocations: 0 / 1.03 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003039/0.3296, allocations: 76 kB / 1.03 GB, free: 13.52 MB / 0.8106 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.0001839/0.3298, allocations: 124.1 kB / 1.03 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007032/0.3305, allocations: 390.6 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3305, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.3309, allocations: 190 kB / 1.031 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.3312, allocations: 47.88 kB / 1.031 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.3323, allocations: 0.6154 MB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.3326, allocations: 0.7647 MB / 1.032 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000139/0.3328, allocations: 39.23 kB / 1.032 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.3329, allocations: 35.44 kB / 1.032 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3329, allocations: 0 / 1.032 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of Templates: time 0.007296/0.3402, allocations: 3.896 MB / 1.036 GB, free: 7.41 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches