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 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_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.001648/0.001648, allocations: 111.6 kB / 15.99 MB, free: 6.348 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.001902/0.001902, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.333/1.333, allocations: 222.9 MB / 240.6 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.663/2.663, allocations: 469.4 MB / 0.7423 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 65.83 kB / 0.9083 GB, free: 14.49 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.358, allocations: 159.1 MB / 1.064 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003882/0.362, allocations: 2.03 MB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3633, allocations: 0.6351 MB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.3635, allocations: 8 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 8.661e-05/0.3636, allocations: 15.8 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.3638, allocations: 31.7 kB / 1.066 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.3644, allocations: 127.9 kB / 1.067 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.3648, allocations: 323.1 kB / 1.067 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.3651, allocations: 52.31 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.3653, allocations: 131.7 kB / 1.067 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002726/0.3656, allocations: 155.3 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.657e-05/0.3657, allocations: 36 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.392e-05/0.3658, allocations: 28 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.816e-05/0.3659, allocations: 71.8 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.3661, allocations: 139.3 kB / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.3663, allocations: 211.8 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3664, allocations: 0 / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.365e-06/0.3664, allocations: 0 / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.485e-05/0.3664, allocations: 0 / 1.068 GB, free: 11.38 MB / 0.8419 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.001426/0.3678, allocations: 0.6296 MB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.3679, allocations: 12.61 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.368, allocations: 32.66 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3681, allocations: 200.8 kB / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002388/0.3684, allocations: 264.3 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.051e-05/0.3685, allocations: 28.36 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.3691, allocations: 269.7 kB / 1.069 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.106e-05/0.3692, allocations: 7.891 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.3692, allocations: 12 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.3692, allocations: 4 kB / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.3697, allocations: 179.8 kB / 1.069 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3711, allocations: 0.7776 MB / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005127/0.3717, allocations: 203.7 kB / 1.07 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.3719, allocations: 134.5 kB / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-05/0.372, allocations: 7.984 kB / 1.07 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006009/0.3726, allocations: 311.7 kB / 1.071 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 2.805e-06/0.3726, allocations: 0 / 1.071 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.001084/0.3737, allocations: 482.2 kB / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.3738, allocations: 122.7 kB / 1.071 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.374, allocations: 175.5 kB / 1.071 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.374, allocations: 41.7 kB / 1.071 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.628e-05/0.3741, allocations: 113.3 kB / 1.071 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.3743, allocations: 149.9 kB / 1.072 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.3744, allocations: 102.3 kB / 1.072 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3746, allocations: 342.8 kB / 1.072 GB, free: 6.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.3749, allocations: 153.2 kB / 1.072 GB, free: 6.352 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.3753, allocations: 252.7 kB / 1.072 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.3759, allocations: 398 kB / 1.073 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.376, allocations: 4 kB / 1.073 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008992/0.3769, allocations: 497.3 kB / 1.073 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3769, allocations: 8 kB / 1.073 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3769, allocations: 0 / 1.073 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.3769, allocations: 12.09 kB / 1.073 GB, free: 5.125 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.3773, allocations: 95.81 kB / 1.073 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.727e-05/0.3774, allocations: 8 kB / 1.073 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3777, allocations: 55.56 kB / 1.073 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.3777, allocations: 23.98 kB / 1.073 GB, free: 4.945 MB / 0.8419 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.0001962/0.3779, allocations: 166.9 kB / 1.074 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.98e-05/0.378, allocations: 27.66 kB / 1.074 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.812e-05/0.3781, allocations: 37.86 kB / 1.074 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3781, allocations: 7.938 kB / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3781, allocations: 0 / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3781, allocations: 0 / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000406/0.3785, allocations: 357.2 kB / 1.074 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.3786, allocations: 7.938 kB / 1.074 GB, free: 4.297 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.379, allocations: 75.83 kB / 1.074 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.379, allocations: 4 kB / 1.074 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.379, allocations: 15.98 kB / 1.074 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.3791, allocations: 4 kB / 1.074 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3791, allocations: 0 / 1.074 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3802, allocations: 0.5861 MB / 1.075 GB, free: 3.594 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.961e-05/0.3803, allocations: 104.8 kB / 1.075 GB, free: 3.473 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/0.3803, allocations: 12 kB / 1.075 GB, free: 3.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.3806, allocations: 35.95 kB / 1.075 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.3807, allocations: 35.95 kB / 1.075 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.3808, allocations: 16 kB / 1.075 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.316e-05/0.3809, allocations: 129.1 kB / 1.075 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3809, allocations: 4 kB / 1.075 GB, free: 3.246 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003674/0.3812, allocations: 83.91 kB / 1.075 GB, free: 3.164 MB / 0.8419 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.0001824/0.3814, allocations: 111.3 kB / 1.075 GB, free: 3.047 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008266/0.3823, allocations: 402.5 kB / 1.076 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3823, allocations: 4 kB / 1.076 GB, free: 2.648 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.3826, allocations: 183.7 kB / 1.076 GB, free: 2.469 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.383, allocations: 45.03 kB / 1.076 GB, free: 2.426 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.3843, allocations: 0.7175 MB / 1.077 GB, free: 1.664 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.3846, allocations: 0.7686 MB / 1.077 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3848, allocations: 35.44 kB / 1.077 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3848, allocations: 0 / 1.077 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of Templates: time 0.4753/0.8601, allocations: 3.95 MB / 1.081 GB, free: 22.02 MB / 0.8419 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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