Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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,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") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 107.8 kB / 16.41 MB, free: 6.488 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.001851/0.001852, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.658/2.658, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 67.89 kB / 1.055 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.051, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002944/1.054, allocations: 1.116 MB / 1.21 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001944/1.056, allocations: 1.104 MB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/1.056, allocations: 0 / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 8.275e-05/1.057, allocations: 19.73 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002101/1.057, allocations: 43.58 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006363/1.057, allocations: 151.7 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004808/1.058, allocations: 327.1 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/1.058, allocations: 48.38 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/1.059, allocations: 135.6 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003134/1.059, allocations: 147.3 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.53e-05/1.059, allocations: 32 kB / 1.212 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.17e-05/1.059, allocations: 28 kB / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.852e-05/1.059, allocations: 75.8 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001759/1.059, allocations: 139.3 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004156/1.06, allocations: 302.8 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/1.06, allocations: 4 kB / 1.212 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.014e-06/1.06, allocations: 0 / 1.212 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.614e-05/1.06, allocations: 0 / 1.212 GB, free: 9.957 MB / 0.9356 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.001429/1.061, allocations: 0.6255 MB / 1.213 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.061, allocations: 8.031 kB / 1.213 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/1.061, allocations: 40.58 kB / 1.213 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/1.062, allocations: 200.7 kB / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/1.062, allocations: 264.3 kB / 1.213 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/1.062, allocations: 28.36 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000571/1.063, allocations: 258.3 kB / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/1.063, allocations: 7.844 kB / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/1.063, allocations: 11.98 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/1.063, allocations: 7.938 kB / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/1.063, allocations: 183.8 kB / 1.214 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/1.064, allocations: 0.7852 MB / 1.214 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/1.065, allocations: 199.7 kB / 1.215 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/1.065, allocations: 134.5 kB / 1.215 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.632e-05/1.065, allocations: 12 kB / 1.215 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000638/1.066, allocations: 299.8 kB / 1.215 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.295e-06/1.066, allocations: 3.938 kB / 1.215 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.001083/1.067, allocations: 485.7 kB / 1.215 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/1.067, allocations: 126.8 kB / 1.216 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/1.067, allocations: 175.5 kB / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/1.067, allocations: 41.7 kB / 1.216 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.34e-05/1.067, allocations: 113.3 kB / 1.216 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/1.068, allocations: 153.9 kB / 1.216 GB, free: 5.516 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/1.068, allocations: 102.3 kB / 1.216 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.068, allocations: 346.7 kB / 1.216 GB, free: 5.062 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003393/1.068, allocations: 153.2 kB / 1.217 GB, free: 4.914 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000377/1.069, allocations: 248.7 kB / 1.217 GB, free: 4.633 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006636/1.069, allocations: 394.1 kB / 1.217 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/1.069, allocations: 0 / 1.217 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009136/1.07, allocations: 489.5 kB / 1.218 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/1.07, allocations: 7.938 kB / 1.218 GB, free: 3.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/1.07, allocations: 7.984 kB / 1.218 GB, free: 3.711 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.284e-05/1.07, allocations: 8 kB / 1.218 GB, free: 3.703 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/1.071, allocations: 95.83 kB / 1.218 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/1.071, allocations: 7.938 kB / 1.218 GB, free: 3.602 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/1.071, allocations: 59.56 kB / 1.218 GB, free: 3.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.893e-05/1.071, allocations: 20 kB / 1.218 GB, free: 3.523 MB / 0.9356 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.0002134/1.071, allocations: 163.5 kB / 1.218 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/1.071, allocations: 27.66 kB / 1.218 GB, free: 3.328 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.008e-05/1.071, allocations: 29.88 kB / 1.218 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/1.071, allocations: 11.98 kB / 1.218 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.072, allocations: 4.062 kB / 1.218 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.072, allocations: 0 / 1.218 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004408/1.072, allocations: 353.2 kB / 1.218 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.072, allocations: 0 / 1.218 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/1.072, allocations: 75.89 kB / 1.219 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.527e-06/1.072, allocations: 11.88 kB / 1.219 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-05/1.072, allocations: 15.94 kB / 1.219 GB, free: 2.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/1.072, allocations: 4 kB / 1.219 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.072, allocations: 3.984 kB / 1.219 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/1.074, allocations: 0.5831 MB / 1.219 GB, free: 2.176 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.555e-05/1.074, allocations: 100.8 kB / 1.219 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.424e-05/1.074, allocations: 11.94 kB / 1.219 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/1.074, allocations: 31.97 kB / 1.219 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/1.074, allocations: 39.94 kB / 1.219 GB, free: 1.977 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/1.074, allocations: 20 kB / 1.219 GB, free: 1.957 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.947e-05/1.074, allocations: 125.2 kB / 1.219 GB, free: 1.836 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/1.074, allocations: 0 / 1.219 GB, free: 1.836 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00037/1.075, allocations: 83.84 kB / 1.22 GB, free: 1.754 MB / 0.9356 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.0002051/1.075, allocations: 120.1 kB / 1.22 GB, free: 1.629 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008141/1.076, allocations: 394.9 kB / 1.22 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/1.076, allocations: 0 / 1.22 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003747/1.076, allocations: 187.6 kB / 1.22 GB, free: 1.059 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/1.076, allocations: 39.91 kB / 1.22 GB, free: 1.02 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/1.078, allocations: 0.6395 MB / 1.221 GB, free: 348 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/1.078, allocations: 0.7726 MB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/1.078, allocations: 39.42 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of SimCode: time 1.914e-06/1.078, allocations: 0 / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of Templates: time 0.007705/1.086, allocations: 3.984 MB / 1.226 GB, free: 11.54 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches