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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001308/0.001308, allocations: 113.4 kB / 16.37 MB, free: 5.953 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.001387/0.001387, allocations: 190.2 kB / 17.3 MB, free: 5.578 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.458/1.458, allocations: 222.9 MB / 241 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.638/2.638, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 72.41 kB / 0.8774 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3566, allocations: 153 MB / 1.027 GB, free: 2.008 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.004293/0.3609, allocations: 1.981 MB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.3626, allocations: 0.6543 MB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.3628, allocations: 0 / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.83e-05/0.3629, allocations: 15.75 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.3632, allocations: 47.58 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.3639, allocations: 147.7 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000518/0.3644, allocations: 331 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.3647, allocations: 44.39 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.365, allocations: 127.7 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.3653, allocations: 159.3 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.765e-05/0.3654, allocations: 32 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.224e-05/0.3654, allocations: 28 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.637e-05/0.3655, allocations: 75.8 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.3657, allocations: 131.4 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.366, allocations: 318.9 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.3661, allocations: 3.938 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.484e-06/0.3661, allocations: 0 / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.417e-05/0.3661, allocations: 0 / 1.031 GB, free: 13.93 MB / 0.8106 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.001339/0.3674, allocations: 0.6236 MB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3675, allocations: 8.031 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.826e-05/0.3676, allocations: 28.66 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.3678, allocations: 201.4 kB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/0.368, allocations: 260.3 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.3681, allocations: 32.38 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004935/0.3686, allocations: 265.6 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3686, allocations: 0 / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.3687, allocations: 15.98 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3687, allocations: 4 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.3691, allocations: 171.9 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.3703, allocations: 0.7736 MB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/0.3707, allocations: 211.7 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/0.371, allocations: 130.5 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.371, allocations: 8.375 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.3716, allocations: 311.4 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 3.547e-06/0.3716, allocations: 0 / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.000971/0.3725, allocations: 495.6 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/0.3726, allocations: 118.8 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.3728, allocations: 183.3 kB / 1.034 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.3728, allocations: 37.7 kB / 1.034 GB, free: 9.777 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.3729, allocations: 113.3 kB / 1.035 GB, free: 9.664 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.373, allocations: 150 kB / 1.035 GB, free: 9.516 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.3732, allocations: 106.3 kB / 1.035 GB, free: 9.406 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3733, allocations: 342.8 kB / 1.035 GB, free: 9.062 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.3736, allocations: 149.2 kB / 1.035 GB, free: 8.914 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/0.374, allocations: 256.8 kB / 1.036 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005817/0.3746, allocations: 394 kB / 1.036 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3746, allocations: 0 / 1.036 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007961/0.3754, allocations: 0.493 MB / 1.036 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3754, allocations: 4 kB / 1.036 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3754, allocations: 4.062 kB / 1.036 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.3755, allocations: 8 kB / 1.036 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/0.3758, allocations: 99.81 kB / 1.036 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.3758, allocations: 4 kB / 1.036 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.3761, allocations: 63.59 kB / 1.037 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.3762, allocations: 20 kB / 1.037 GB, free: 7.508 MB / 0.8106 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.0001653/0.3763, allocations: 167.3 kB / 1.037 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.3764, allocations: 31.56 kB / 1.037 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-05/0.3764, allocations: 29.88 kB / 1.037 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3765, allocations: 7.938 kB / 1.037 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.3765, allocations: 4 kB / 1.037 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3765, allocations: 7.984 kB / 1.037 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.3768, allocations: 353.2 kB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3768, allocations: 3.938 kB / 1.037 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.3772, allocations: 71.89 kB / 1.037 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3772, allocations: 4 kB / 1.037 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.3773, allocations: 12 kB / 1.037 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.3773, allocations: 3.938 kB / 1.037 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3773, allocations: 4 kB / 1.037 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009989/0.3783, allocations: 0.5784 MB / 1.038 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.3784, allocations: 108.7 kB / 1.038 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/0.3784, allocations: 8 kB / 1.038 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.3786, allocations: 35.97 kB / 1.038 GB, free: 6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.3788, allocations: 55.95 kB / 1.038 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.3788, allocations: 16 kB / 1.038 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.117e-05/0.3789, allocations: 129.1 kB / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3789, allocations: 0 / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003082/0.3792, allocations: 80 kB / 1.038 GB, free: 5.727 MB / 0.8106 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.0001965/0.3794, allocations: 123.1 kB / 1.038 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007006/0.3801, allocations: 387.6 kB / 1.039 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3801, allocations: 0 / 1.039 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.3805, allocations: 187.7 kB / 1.039 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.3808, allocations: 60.33 kB / 1.039 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.382, allocations: 0.6065 MB / 1.04 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.3823, allocations: 0.7686 MB / 1.04 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001487/0.3824, allocations: 43.22 kB / 1.04 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3826, allocations: 39.38 kB / 1.04 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3826, allocations: 0 / 1.04 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of Templates: time 0.007279/0.3899, allocations: 3.887 MB / 1.044 GB, free: 15.59 MB / 0.8262 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 -s cvode -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) Reference file matches