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.001161/0.001161, allocations: 99.19 kB / 16.02 MB, free: 72 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.001548/0.001548, allocations: 181.1 kB / 16.92 MB, free: 6.914 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.403/1.403, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.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.693/2.693, allocations: 437.8 MB / 0.7128 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.0003672, allocations: 16 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6814/0.6818, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002144/0.6839, allocations: 1.673 MB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.6851, allocations: 0.6429 MB / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.6852, allocations: 4 kB / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 4.191e-05/0.6852, allocations: 11.86 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.6854, allocations: 31.7 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.6858, allocations: 127.8 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003361/0.6862, allocations: 303.2 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.6863, allocations: 48.31 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.6866, allocations: 115.5 kB / 1.027 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.6868, allocations: 139.4 kB / 1.027 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.6869, allocations: 16 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.08e-05/0.6869, allocations: 12 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.24e-05/0.687, allocations: 59.8 kB / 1.027 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.6872, allocations: 145.1 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.6874, allocations: 209.4 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.6874, allocations: 8 kB / 1.027 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6874, allocations: 4 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.6874, allocations: 0 / 1.027 GB, free: 12.3 MB / 0.7794 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.001262/0.6887, allocations: 0.6004 MB / 1.028 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.6887, allocations: 12.03 kB / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.6889, allocations: 32.56 kB / 1.028 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/0.689, allocations: 204.8 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.6893, allocations: 260.3 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.6894, allocations: 28.38 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.6899, allocations: 273.8 kB / 1.029 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.69, allocations: 0 / 1.029 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.69, allocations: 11.98 kB / 1.029 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.69, allocations: 4 kB / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004809/0.6905, allocations: 191.8 kB / 1.029 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.6917, allocations: 0.7776 MB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.6923, allocations: 208.3 kB / 1.03 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.6926, allocations: 142.5 kB / 1.03 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.836e-05/0.6926, allocations: 15.98 kB / 1.03 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006334/0.6933, allocations: 323.7 kB / 1.03 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 3.757e-06/0.6933, allocations: 4 kB / 1.03 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001084/0.6944, allocations: 499.3 kB / 1.031 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.6945, allocations: 122.7 kB / 1.031 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.6947, allocations: 175.4 kB / 1.031 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.162e-05/0.6948, allocations: 41.7 kB / 1.031 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.6949, allocations: 121.3 kB / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.6951, allocations: 142 kB / 1.031 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.522e-05/0.6952, allocations: 61.67 kB / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.6953, allocations: 342.8 kB / 1.032 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.6957, allocations: 157.2 kB / 1.032 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.6961, allocations: 260.9 kB / 1.032 GB, free: 7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007256/0.6969, allocations: 406 kB / 1.032 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.6969, allocations: 4 kB / 1.032 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009951/0.6979, allocations: 0.4969 MB / 1.033 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.6979, allocations: 4 kB / 1.033 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.6979, allocations: 4.062 kB / 1.033 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.747e-05/0.698, allocations: 8 kB / 1.033 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.6984, allocations: 99.83 kB / 1.033 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.6984, allocations: 4 kB / 1.033 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.6988, allocations: 71.73 kB / 1.033 GB, free: 5.871 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-05/0.6988, allocations: 23.94 kB / 1.033 GB, free: 5.848 MB / 0.7794 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.0002565/0.6991, allocations: 167.9 kB / 1.033 GB, free: 5.672 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.391e-05/0.6992, allocations: 31.66 kB / 1.033 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.6993, allocations: 33.86 kB / 1.033 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.6993, allocations: 4 kB / 1.033 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.6993, allocations: 0 / 1.033 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.6993, allocations: 7.984 kB / 1.033 GB, free: 5.598 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004989/0.6999, allocations: 357.1 kB / 1.034 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.6999, allocations: 0 / 1.034 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004259/0.7003, allocations: 79.83 kB / 1.034 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.7003, allocations: 4 kB / 1.034 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.496e-05/0.7004, allocations: 15.98 kB / 1.034 GB, free: 5.102 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.7004, allocations: 4 kB / 1.034 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.7004, allocations: 0 / 1.034 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.7016, allocations: 0.6101 MB / 1.034 GB, free: 4.465 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.7017, allocations: 108.6 kB / 1.034 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.7018, allocations: 8 kB / 1.034 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.702, allocations: 51.95 kB / 1.034 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.7021, allocations: 31.95 kB / 1.035 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.7022, allocations: 23.92 kB / 1.035 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001186/0.7023, allocations: 129.2 kB / 1.035 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7023, allocations: 192 / 1.035 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003692/0.7027, allocations: 80 kB / 1.035 GB, free: 4.023 MB / 0.7794 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.0003054/0.703, allocations: 123.2 kB / 1.035 GB, free: 3.891 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009284/0.7039, allocations: 392.1 kB / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.704, allocations: 4 kB / 1.035 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003849/0.7043, allocations: 191.1 kB / 1.035 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.7047, allocations: 49.12 kB / 1.035 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.7061, allocations: 0.7704 MB / 1.036 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.7066, allocations: 0.7647 MB / 1.037 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.7067, allocations: 35.42 kB / 1.037 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of SimCode: time 1.082e-06/0.7067, allocations: 0 / 1.037 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of Templates: time 0.007149/0.7139, allocations: 3.907 MB / 1.041 GB, free: 13.75 MB / 0.795 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 -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) "" 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