Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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,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") 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_10_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.001015/0.001015, allocations: 92.16 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.001276/0.001276, allocations: 182.5 kB / 16.92 MB, free: 6.922 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.394/1.394, allocations: 223.3 MB / 241 MB, free: 5.328 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.661/2.661, allocations: 437.8 MB / 0.7128 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 12.28 kB / 0.8735 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6512/0.6516, allocations: 153.8 MB / 1.024 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001275/0.653, allocations: 0.8015 MB / 1.025 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.6545, allocations: 1.1 MB / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.6547, allocations: 8 kB / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 4.55e-05/0.6547, allocations: 11.86 kB / 1.026 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.6549, allocations: 31.7 kB / 1.026 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.6553, allocations: 131.8 kB / 1.026 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003347/0.6557, allocations: 307.1 kB / 1.026 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.6558, allocations: 48.31 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.6561, allocations: 115.6 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.6563, allocations: 135.4 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.881e-05/0.6564, allocations: 20 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 3.765e-05/0.6564, allocations: 16 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.6565, allocations: 59.8 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.6566, allocations: 145.1 kB / 1.027 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.6568, allocations: 221.3 kB / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.6569, allocations: 0 / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.542e-06/0.6569, allocations: 0 / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.6569, allocations: 0 / 1.027 GB, free: 12.81 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.0012/0.6581, allocations: 0.6004 MB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.6581, allocations: 15.92 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.537e-05/0.6582, allocations: 32.66 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.6584, allocations: 204.8 kB / 1.028 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.6586, allocations: 264.3 kB / 1.028 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-05/0.6587, allocations: 32.28 kB / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.6592, allocations: 270.3 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.6593, allocations: 11.88 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.6593, allocations: 4 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.6593, allocations: 4 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004447/0.6598, allocations: 191.8 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.661, allocations: 0.7815 MB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004901/0.6615, allocations: 215.7 kB / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.6618, allocations: 130.5 kB / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.6618, allocations: 15.97 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005388/0.6624, allocations: 323.8 kB / 1.03 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 2.113e-06/0.6624, allocations: 0 / 1.03 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001085/0.6635, allocations: 0.4915 MB / 1.03 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.6636, allocations: 114.8 kB / 1.03 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.6637, allocations: 171.5 kB / 1.031 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.6638, allocations: 41.69 kB / 1.031 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.6639, allocations: 129.2 kB / 1.031 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.664, allocations: 146 kB / 1.031 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.6641, allocations: 61.69 kB / 1.031 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.6642, allocations: 342.8 kB / 1.031 GB, free: 7.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.6646, allocations: 149.2 kB / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.6649, allocations: 260.7 kB / 1.032 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006495/0.6656, allocations: 410.1 kB / 1.032 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.6656, allocations: 0 / 1.032 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008658/0.6665, allocations: 0.4891 MB / 1.032 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.6665, allocations: 11.94 kB / 1.032 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6665, allocations: 4 kB / 1.032 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.6666, allocations: 11.98 kB / 1.032 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.6669, allocations: 99.89 kB / 1.033 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.667, allocations: 8 kB / 1.033 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.6673, allocations: 71.66 kB / 1.033 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.6673, allocations: 23.94 kB / 1.033 GB, free: 6.332 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.000164/0.6675, allocations: 163.3 kB / 1.033 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.6675, allocations: 27.66 kB / 1.033 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.936e-05/0.6676, allocations: 33.81 kB / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.6676, allocations: 8 kB / 1.033 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6676, allocations: 0 / 1.033 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.6677, allocations: 7.984 kB / 1.033 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.668, allocations: 361.1 kB / 1.033 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.668, allocations: 0 / 1.033 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004041/0.6684, allocations: 79.89 kB / 1.033 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.6685, allocations: 3.938 kB / 1.033 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.6685, allocations: 16 kB / 1.033 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.6685, allocations: 0 / 1.033 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.6685, allocations: 7.938 kB / 1.033 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.6696, allocations: 0.6018 MB / 1.034 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.6697, allocations: 104.8 kB / 1.034 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.6697, allocations: 15.94 kB / 1.034 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.67, allocations: 43.97 kB / 1.034 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.6701, allocations: 39.94 kB / 1.034 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.6701, allocations: 16.12 kB / 1.034 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.969e-05/0.6702, allocations: 137.1 kB / 1.034 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6702, allocations: 0 / 1.034 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003308/0.6706, allocations: 79.94 kB / 1.034 GB, free: 4.512 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.0001683/0.6707, allocations: 133.3 kB / 1.034 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007476/0.6715, allocations: 384.7 kB / 1.035 GB, free: 4 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6715, allocations: 0 / 1.035 GB, free: 4 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003618/0.6719, allocations: 187.8 kB / 1.035 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.6722, allocations: 43.91 kB / 1.035 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.6734, allocations: 0.7597 MB / 1.036 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.6737, allocations: 0.7647 MB / 1.037 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.6738, allocations: 35.44 kB / 1.037 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6738, allocations: 192 / 1.037 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of Templates: time 0.006616/0.6804, allocations: 3.909 MB / 1.04 GB, free: 14.26 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches