Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001209/0.001209, allocations: 107.1 kB / 15.99 MB, free: 5.91 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.001294/0.001294, allocations: 193.6 kB / 16.91 MB, free: 5.754 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.346/1.346, allocations: 222.9 MB / 240.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.609/2.609, allocations: 469.8 MB / 0.7427 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 68.31 kB / 0.9087 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2847, allocations: 159.1 MB / 1.064 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003412/0.2881, allocations: 2.028 MB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.2894, allocations: 0.6506 MB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.2895, allocations: 4 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 6.548e-05/0.2896, allocations: 15.86 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.2898, allocations: 27.72 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004586/0.2903, allocations: 131.8 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003523/0.2906, allocations: 319.2 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.2908, allocations: 48.38 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.291, allocations: 131.6 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.2913, allocations: 159.3 kB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.77e-05/0.2913, allocations: 32 kB / 1.068 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.909e-05/0.2914, allocations: 32 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.121e-05/0.2915, allocations: 75.8 kB / 1.068 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.2916, allocations: 135.4 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.2919, allocations: 215.8 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2919, allocations: 0 / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2919, allocations: 0 / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.2919, allocations: 0 / 1.068 GB, free: 11.08 MB / 0.8419 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.001194/0.2931, allocations: 0.6236 MB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2931, allocations: 8.031 kB / 1.069 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.779e-05/0.2932, allocations: 36.59 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.2934, allocations: 200.8 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.2936, allocations: 272.3 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.2937, allocations: 24.38 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.2942, allocations: 265.8 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.2942, allocations: 3.906 kB / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/0.2942, allocations: 8 kB / 1.069 GB, free: 9.492 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2942, allocations: 4 kB / 1.069 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000416/0.2947, allocations: 185.6 kB / 1.07 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.2958, allocations: 0.7775 MB / 1.07 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.2962, allocations: 199.7 kB / 1.071 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002553/0.2965, allocations: 142.4 kB / 1.071 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.229e-05/0.2966, allocations: 11.97 kB / 1.071 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005605/0.2971, allocations: 311.7 kB / 1.071 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 2.053e-06/0.2971, allocations: 0 / 1.071 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.001018/0.2982, allocations: 483.8 kB / 1.071 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/0.2983, allocations: 110.8 kB / 1.072 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.2984, allocations: 175.5 kB / 1.072 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.2985, allocations: 41.69 kB / 1.072 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.001e-05/0.2986, allocations: 121.3 kB / 1.072 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.2987, allocations: 142 kB / 1.072 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.2989, allocations: 106.3 kB / 1.072 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.299, allocations: 342.8 kB / 1.072 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003066/0.2993, allocations: 145.2 kB / 1.073 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.2997, allocations: 256.7 kB / 1.073 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006267/0.3004, allocations: 402 kB / 1.073 GB, free: 5.348 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3004, allocations: 4 kB / 1.073 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008491/0.3012, allocations: 489.4 kB / 1.074 GB, free: 4.859 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3013, allocations: 8 kB / 1.074 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3013, allocations: 0 / 1.074 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.3013, allocations: 8 kB / 1.074 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000377/0.3017, allocations: 99.77 kB / 1.074 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.3017, allocations: 11.98 kB / 1.074 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.302, allocations: 59.56 kB / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.302, allocations: 20.08 kB / 1.074 GB, free: 4.656 MB / 0.8419 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.0001724/0.3022, allocations: 163.5 kB / 1.074 GB, free: 4.484 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.49e-05/0.3023, allocations: 35.64 kB / 1.074 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.87e-05/0.3023, allocations: 33.88 kB / 1.074 GB, free: 4.418 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3023, allocations: 4 kB / 1.074 GB, free: 4.414 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3024, allocations: 0 / 1.074 GB, free: 4.414 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3024, allocations: 3.984 kB / 1.074 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000383/0.3028, allocations: 349.2 kB / 1.074 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3028, allocations: 4 kB / 1.074 GB, free: 4.016 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004168/0.3032, allocations: 75.83 kB / 1.075 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.3032, allocations: 4 kB / 1.075 GB, free: 3.938 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.3032, allocations: 11.98 kB / 1.075 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.3033, allocations: 11.98 kB / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3033, allocations: 0 / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.3043, allocations: 0.5862 MB / 1.075 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.984e-05/0.3044, allocations: 108.7 kB / 1.075 GB, free: 3.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.3045, allocations: 15.98 kB / 1.075 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.3047, allocations: 28.16 kB / 1.075 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3048, allocations: 35.95 kB / 1.075 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.684e-05/0.3048, allocations: 23.92 kB / 1.075 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.601e-05/0.305, allocations: 125.2 kB / 1.075 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.305, allocations: 0 / 1.075 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003201/0.3053, allocations: 83.91 kB / 1.076 GB, free: 2.875 MB / 0.8419 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.0001739/0.3055, allocations: 130.5 kB / 1.076 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007681/0.3062, allocations: 398.6 kB / 1.076 GB, free: 2.352 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3063, allocations: 4 kB / 1.076 GB, free: 2.348 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.3066, allocations: 184.8 kB / 1.076 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.3069, allocations: 49.22 kB / 1.076 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.3081, allocations: 0.7098 MB / 1.077 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3084, allocations: 0.7725 MB / 1.078 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.3086, allocations: 39.42 kB / 1.078 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.3086, allocations: 0 / 1.078 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of Templates: time 0.4227/0.7313, allocations: 3.946 MB / 1.082 GB, free: 21.24 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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