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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007298/0.007298, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.00164/0.00164, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.836/2.836, allocations: 472.6 MB / 0.7453 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 71.89 kB / 1.07 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.08/1.081, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003355/1.084, allocations: 1.97 MB / 1.228 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001088/1.086, allocations: 0.6593 MB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.492e-05/1.086, allocations: 0 / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 6.362e-05/1.086, allocations: 23.67 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001516/1.086, allocations: 43.58 kB / 1.228 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/1.086, allocations: 155.7 kB / 1.228 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003473/1.087, allocations: 319.2 kB / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/1.087, allocations: 48.33 kB / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/1.087, allocations: 135.6 kB / 1.229 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/1.087, allocations: 147.4 kB / 1.229 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/1.087, allocations: 28 kB / 1.229 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.659e-05/1.088, allocations: 32 kB / 1.229 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.37e-05/1.088, allocations: 79.8 kB / 1.229 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/1.088, allocations: 135.3 kB / 1.229 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003487/1.088, allocations: 311.2 kB / 1.23 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/1.088, allocations: 4 kB / 1.23 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.392e-06/1.088, allocations: 0 / 1.23 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.764e-06/1.088, allocations: 0 / 1.23 GB, free: 9.418 MB / 0.9512 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.001191/1.089, allocations: 0.6273 MB / 1.23 GB, free: 8.742 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/1.089, allocations: 16.02 kB / 1.23 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/1.089, allocations: 28.8 kB / 1.23 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/1.09, allocations: 209.3 kB / 1.231 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/1.09, allocations: 268.3 kB / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/1.09, allocations: 32.36 kB / 1.231 GB, free: 8.105 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/1.09, allocations: 261.8 kB / 1.231 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/1.09, allocations: 7.938 kB / 1.231 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/1.09, allocations: 7.984 kB / 1.231 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/1.09, allocations: 8 kB / 1.231 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/1.091, allocations: 179.8 kB / 1.231 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/1.092, allocations: 0.7699 MB / 1.232 GB, free: 6.805 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/1.093, allocations: 207.7 kB / 1.232 GB, free: 6.574 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/1.093, allocations: 130.5 kB / 1.232 GB, free: 6.438 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/1.093, allocations: 8 kB / 1.232 GB, free: 6.43 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/1.094, allocations: 315.6 kB / 1.233 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=48): time 2.124e-06/1.094, allocations: 0 / 1.233 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.001191/1.095, allocations: 489.5 kB / 1.233 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/1.095, allocations: 126.7 kB / 1.233 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/1.095, allocations: 171.5 kB / 1.233 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/1.095, allocations: 41.7 kB / 1.233 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/1.095, allocations: 117.3 kB / 1.234 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/1.095, allocations: 158.7 kB / 1.234 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/1.096, allocations: 102.3 kB / 1.234 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000175/1.096, allocations: 346.8 kB / 1.234 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/1.096, allocations: 145.2 kB / 1.234 GB, free: 4.375 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/1.096, allocations: 256.8 kB / 1.234 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000613/1.097, allocations: 390 kB / 1.235 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/1.097, allocations: 4 kB / 1.235 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008787/1.098, allocations: 492.9 kB / 1.235 GB, free: 3.176 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/1.098, allocations: 9.094 kB / 1.235 GB, free: 3.168 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/1.098, allocations: 4.062 kB / 1.235 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/1.098, allocations: 8 kB / 1.235 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/1.098, allocations: 95.83 kB / 1.235 GB, free: 3.062 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/1.098, allocations: 4.703 kB / 1.235 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/1.099, allocations: 59.75 kB / 1.236 GB, free: 3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/1.099, allocations: 23.98 kB / 1.236 GB, free: 2.977 MB / 0.9512 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.0002319/1.099, allocations: 163.9 kB / 1.236 GB, free: 2.809 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.268e-05/1.099, allocations: 31.75 kB / 1.236 GB, free: 2.777 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.911e-05/1.099, allocations: 33.86 kB / 1.236 GB, free: 2.742 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/1.099, allocations: 4.094 kB / 1.236 GB, free: 2.738 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/1.099, allocations: 4 kB / 1.236 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-05/1.099, allocations: 7.984 kB / 1.236 GB, free: 2.727 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/1.1, allocations: 353.2 kB / 1.236 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/1.1, allocations: 0 / 1.236 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004093/1.1, allocations: 83.77 kB / 1.236 GB, free: 2.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/1.1, allocations: 0 / 1.236 GB, free: 2.25 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/1.1, allocations: 19.98 kB / 1.236 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.1, allocations: 0 / 1.236 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.1, allocations: 0 / 1.236 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/1.101, allocations: 0.5786 MB / 1.237 GB, free: 1.625 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.218e-05/1.101, allocations: 112.8 kB / 1.237 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/1.101, allocations: 8 kB / 1.237 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/1.102, allocations: 35.95 kB / 1.237 GB, free: 1.453 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/1.102, allocations: 55.94 kB / 1.237 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/1.102, allocations: 19.98 kB / 1.237 GB, free: 1.379 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001034/1.102, allocations: 125.2 kB / 1.237 GB, free: 1.258 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/1.102, allocations: 0 / 1.237 GB, free: 1.258 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003131/1.102, allocations: 79.94 kB / 1.237 GB, free: 1.18 MB / 0.9512 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.0002138/1.102, allocations: 123.3 kB / 1.237 GB, free: 1.051 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007538/1.103, allocations: 395.6 kB / 1.238 GB, free: 0.6641 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.103, allocations: 0 / 1.238 GB, free: 0.6641 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003642/1.104, allocations: 183.8 kB / 1.238 GB, free: 496 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/1.104, allocations: 52.47 kB / 1.238 GB, free: 444 kB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/1.105, allocations: 0.6187 MB / 1.239 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/1.105, allocations: 0.7647 MB / 1.239 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001466/1.106, allocations: 38.97 kB / 1.239 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/1.106, allocations: 35.44 kB / 1.239 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of SimCode: time 8.51e-07/1.106, allocations: 0 / 1.239 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of Templates: time 0.007904/1.114, allocations: 3.958 MB / 1.243 GB, free: 10.98 MB / 0.9669 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches