Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001125/0.001125, allocations: 91.77 kB / 16.02 MB, free: 80 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.001706/0.001706, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.385/1.385, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.76/2.76, allocations: 462.6 MB / 0.737 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003874, allocations: 12.31 kB / 0.9034 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3099, allocations: 159.6 MB / 1.059 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002236/0.3122, allocations: 1.668 MB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.3134, allocations: 0.6504 MB / 1.062 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.3136, allocations: 0 / 1.062 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.063e-05/0.3137, allocations: 11.86 kB / 1.062 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.3139, allocations: 31.7 kB / 1.062 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.3144, allocations: 135.8 kB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003981/0.3148, allocations: 307.1 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.315, allocations: 40.39 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.3152, allocations: 119.6 kB / 1.062 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.3154, allocations: 135.4 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.437e-05/0.3155, allocations: 15.94 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.931e-05/0.3155, allocations: 16 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.813e-05/0.3156, allocations: 63.78 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.3157, allocations: 145.1 kB / 1.063 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.3159, allocations: 203.7 kB / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.316, allocations: 0 / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.316, allocations: 0 / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.176e-06/0.316, allocations: 0 / 1.063 GB, free: 1.387 MB / 0.8106 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.001203/0.3172, allocations: 0.6121 MB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3172, allocations: 11.97 kB / 1.063 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.3173, allocations: 28.66 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.3175, allocations: 200.8 kB / 1.064 GB, free: 464 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.3177, allocations: 268.3 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/0.3178, allocations: 24.38 kB / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005175/0.3183, allocations: 269.8 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.3183, allocations: 19.86 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.3184, allocations: 7.984 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3184, allocations: 8 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.3189, allocations: 185.4 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.32, allocations: 0.7776 MB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/0.3205, allocations: 215.7 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002685/0.3208, allocations: 138.5 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.3208, allocations: 4 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000567/0.3214, allocations: 331.8 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.445e-06/0.3214, allocations: 0 / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001094/0.3225, allocations: 498.4 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.3226, allocations: 118.8 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.3228, allocations: 184.2 kB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.3228, allocations: 37.7 kB / 1.067 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.812e-05/0.3229, allocations: 109.3 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.323, allocations: 150 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.3231, allocations: 61.67 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3233, allocations: 346.8 kB / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.3236, allocations: 153.2 kB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.324, allocations: 260.8 kB / 1.068 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000654/0.3246, allocations: 402 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3247, allocations: 0 / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008558/0.3255, allocations: 0.4975 MB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3255, allocations: 13.34 kB / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.3256, allocations: 4 kB / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3256, allocations: 4 kB / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.326, allocations: 95.83 kB / 1.069 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.326, allocations: 8 kB / 1.069 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3263, allocations: 75.64 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/0.3263, allocations: 20 kB / 1.069 GB, free: 10.92 MB / 0.8262 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.0001822/0.3265, allocations: 155.4 kB / 1.069 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.3266, allocations: 35.56 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.573e-05/0.3267, allocations: 37.86 kB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.3267, allocations: 8.094 kB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.3267, allocations: 0 / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3267, allocations: 7.969 kB / 1.069 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.327, allocations: 349.2 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3271, allocations: 0 / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003978/0.3275, allocations: 87.77 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.8e-06/0.3275, allocations: 4 kB / 1.069 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.3275, allocations: 11.98 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3275, allocations: 4.016 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.3275, allocations: 11.98 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.3286, allocations: 0.5941 MB / 1.07 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.965e-05/0.3286, allocations: 108.6 kB / 1.07 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.3287, allocations: 12 kB / 1.07 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.329, allocations: 47.95 kB / 1.07 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.891e-05/0.3291, allocations: 40.05 kB / 1.07 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.3291, allocations: 23.98 kB / 1.07 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.739e-05/0.3292, allocations: 124.3 kB / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3292, allocations: 0 / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003369/0.3295, allocations: 83.98 kB / 1.07 GB, free: 9.094 MB / 0.8262 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.0001785/0.3297, allocations: 118.8 kB / 1.07 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007681/0.3305, allocations: 395.6 kB / 1.071 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3305, allocations: 0 / 1.071 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.3309, allocations: 192.8 kB / 1.071 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.3313, allocations: 44.84 kB / 1.071 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.3324, allocations: 0.7618 MB / 1.072 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.3327, allocations: 0.7648 MB / 1.073 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.3329, allocations: 35.42 kB / 1.073 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.3329, allocations: 8 kB / 1.073 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of Templates: time 0.006062/0.3389, allocations: 3.911 MB / 1.076 GB, free: 2.84 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time