Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 110.7 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.00104/0.00104, allocations: 187 kB / 17.34 MB, free: 5.762 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.287/2.287, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 71.89 kB / 0.9516 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8434/0.8448, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002849/0.8477, allocations: 1.973 MB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.8488, allocations: 0.6483 MB / 1.091 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.852e-05/0.8489, allocations: 2.125 kB / 1.091 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.207e-05/0.8489, allocations: 18.56 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.849, allocations: 40.52 kB / 1.091 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.8495, allocations: 157.9 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.8499, allocations: 325.7 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.85, allocations: 45.64 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.8502, allocations: 129.6 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.8505, allocations: 151.6 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.8505, allocations: 29.53 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.851e-05/0.8506, allocations: 29.97 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.8507, allocations: 80.11 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.8508, allocations: 132.1 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000397/0.8512, allocations: 313.2 kB / 1.093 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8513, allocations: 0.6875 kB / 1.093 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.263e-06/0.8513, allocations: 0 / 1.093 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.485e-06/0.8513, allocations: 4 kB / 1.093 GB, free: 2.969 MB / 0.8575 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.001139/0.8524, allocations: 0.6185 MB / 1.093 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.8525, allocations: 8.781 kB / 1.093 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.218e-05/0.8526, allocations: 30.39 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.8527, allocations: 202 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.8528, allocations: 266.5 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.8529, allocations: 28.75 kB / 1.094 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.8534, allocations: 271.3 kB / 1.094 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.8535, allocations: 10.39 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.8535, allocations: 7.547 kB / 1.094 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.8535, allocations: 4.344 kB / 1.094 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.854, allocations: 173.5 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.855, allocations: 0.775 MB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.8555, allocations: 210.6 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002655/0.8558, allocations: 129.2 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.599e-05/0.8558, allocations: 8.047 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005937/0.8564, allocations: 323.1 kB / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.034e-06/0.8564, allocations: 224 / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001121/0.8576, allocations: 481.3 kB / 1.096 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.8576, allocations: 116.2 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.8578, allocations: 178.4 kB / 1.096 GB, free: 412 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.8578, allocations: 37.88 kB / 1.096 GB, free: 372 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.547e-05/0.8579, allocations: 120.6 kB / 1.096 GB, free: 260 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.858, allocations: 147.1 kB / 1.097 GB, free: 144 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.8582, allocations: 111.8 kB / 1.097 GB, free: 80 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8583, allocations: 340 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003394/0.8586, allocations: 144.5 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.8591, allocations: 254.4 kB / 1.097 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006816/0.8597, allocations: 401.5 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.8598, allocations: 1.406 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008932/0.8607, allocations: 490.2 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.8607, allocations: 9.141 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.8607, allocations: 7.094 kB / 1.098 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.8607, allocations: 5.281 kB / 1.098 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/0.8611, allocations: 95.14 kB / 1.098 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.8612, allocations: 7.484 kB / 1.098 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.8614, allocations: 56.91 kB / 1.098 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.8615, allocations: 20.25 kB / 1.098 GB, free: 15.05 MB / 0.8731 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.0001643/0.8617, allocations: 162.5 kB / 1.099 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.8617, allocations: 33.88 kB / 1.099 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.095e-05/0.8618, allocations: 31.77 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.8618, allocations: 5.531 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.8618, allocations: 4.812 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.8618, allocations: 3.516 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.8622, allocations: 347.9 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.8623, allocations: 1.125 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004069/0.8627, allocations: 82 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.8627, allocations: 6.281 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/0.8627, allocations: 20.47 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.8627, allocations: 6.125 kB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8627, allocations: 1.719 kB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.8639, allocations: 0.5781 MB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-05/0.864, allocations: 110.1 kB / 1.1 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.864, allocations: 12.75 kB / 1.1 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.8643, allocations: 29.8 kB / 1.1 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.8644, allocations: 40.42 kB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.8644, allocations: 17.67 kB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001109/0.8646, allocations: 130.8 kB / 1.1 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8646, allocations: 0 / 1.1 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003368/0.8649, allocations: 80.25 kB / 1.1 GB, free: 14.03 MB / 0.8731 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.0001949/0.8651, allocations: 119.1 kB / 1.1 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008785/0.866, allocations: 395.2 kB / 1.101 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.866, allocations: 0 / 1.101 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004096/0.8664, allocations: 177.8 kB / 1.101 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.8668, allocations: 45.89 kB / 1.101 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.8681, allocations: 0.6383 MB / 1.101 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.8684, allocations: 0.7634 MB / 1.102 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.8686, allocations: 38.8 kB / 1.102 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of SimCode: time 2.084e-06/0.8686, allocations: 0 / 1.102 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of Templates: time 0.008503/0.8771, allocations: 3.989 MB / 1.106 GB, free: 12.26 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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