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.001203/0.001203, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001211/0.001211, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.342/1.342, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.636/2.636, allocations: 469.4 MB / 0.7426 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 72.78 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3456, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003742/0.3494, allocations: 1.982 MB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3506, allocations: 0.6428 MB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001732/0.3508, allocations: 4 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 7.61e-05/0.3509, allocations: 19.69 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.3512, allocations: 39.58 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.3518, allocations: 159.7 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.3521, allocations: 319.1 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.3523, allocations: 48.38 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.3524, allocations: 135.6 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.3526, allocations: 147.3 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.998e-05/0.3527, allocations: 35.94 kB / 1.068 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.3528, allocations: 28 kB / 1.068 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.851e-05/0.3528, allocations: 79.78 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.353, allocations: 135.4 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.3532, allocations: 295.3 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3532, allocations: 0 / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3533, allocations: 4 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.3533, allocations: 0 / 1.068 GB, free: 10.96 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.00117/0.3544, allocations: 0.6236 MB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3545, allocations: 16.62 kB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.591e-05/0.3546, allocations: 32.66 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3547, allocations: 200.8 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.3549, allocations: 264.3 kB / 1.069 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.887e-05/0.355, allocations: 28.38 kB / 1.069 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004554/0.3555, allocations: 261.8 kB / 1.07 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3555, allocations: 7.906 kB / 1.07 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.3555, allocations: 8 kB / 1.07 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3555, allocations: 8 kB / 1.07 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004025/0.3559, allocations: 175.8 kB / 1.07 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.357, allocations: 0.7814 MB / 1.071 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004583/0.3574, allocations: 207.7 kB / 1.071 GB, free: 8.121 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.3577, allocations: 126.5 kB / 1.071 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.454e-05/0.3577, allocations: 19.97 kB / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005288/0.3583, allocations: 307.8 kB / 1.071 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 1.954e-06/0.3583, allocations: 0 / 1.071 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.0009761/0.3593, allocations: 482 kB / 1.072 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.3593, allocations: 114.8 kB / 1.072 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.3595, allocations: 175.5 kB / 1.072 GB, free: 6.852 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.924e-05/0.3595, allocations: 41.7 kB / 1.072 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.3596, allocations: 121.3 kB / 1.072 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.3597, allocations: 149.9 kB / 1.072 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.3599, allocations: 106.3 kB / 1.072 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.36, allocations: 334.8 kB / 1.073 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.3603, allocations: 149.2 kB / 1.073 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.3606, allocations: 256.8 kB / 1.073 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/0.3612, allocations: 406 kB / 1.073 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3612, allocations: 0 / 1.073 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008542/0.3621, allocations: 493.5 kB / 1.074 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3621, allocations: 15.94 kB / 1.074 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3622, allocations: 4 kB / 1.074 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3622, allocations: 4 kB / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.3626, allocations: 99.83 kB / 1.074 GB, free: 4.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.3626, allocations: 4 kB / 1.074 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.3629, allocations: 59.55 kB / 1.074 GB, free: 4.547 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.3629, allocations: 20 kB / 1.074 GB, free: 4.527 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.000196/0.3631, allocations: 171.3 kB / 1.074 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-05/0.3632, allocations: 27.66 kB / 1.074 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.176e-05/0.3632, allocations: 33.86 kB / 1.074 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3633, allocations: 4 kB / 1.074 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3633, allocations: 4 kB / 1.074 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3633, allocations: 3.984 kB / 1.074 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000402/0.3637, allocations: 349.2 kB / 1.075 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3637, allocations: 0 / 1.075 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003815/0.3641, allocations: 79.83 kB / 1.075 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3641, allocations: 0 / 1.075 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.391e-05/0.3641, allocations: 23.92 kB / 1.075 GB, free: 3.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.3642, allocations: 0 / 1.075 GB, free: 3.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3642, allocations: 4 kB / 1.075 GB, free: 3.781 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009979/0.3652, allocations: 0.5816 MB / 1.075 GB, free: 3.184 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.059e-05/0.3652, allocations: 104.7 kB / 1.075 GB, free: 3.062 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.3653, allocations: 8 kB / 1.075 GB, free: 3.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.3655, allocations: 35.95 kB / 1.075 GB, free: 3.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.3656, allocations: 39.98 kB / 1.075 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.3657, allocations: 15.98 kB / 1.075 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.491e-05/0.3658, allocations: 137.1 kB / 1.076 GB, free: 2.832 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3658, allocations: 0 / 1.076 GB, free: 2.832 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003217/0.3661, allocations: 75.91 kB / 1.076 GB, free: 2.758 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.0001872/0.3663, allocations: 126.5 kB / 1.076 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007825/0.3671, allocations: 406.5 kB / 1.076 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3671, allocations: 0 / 1.076 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.3674, allocations: 176.9 kB / 1.076 GB, free: 2.059 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.3678, allocations: 58.41 kB / 1.076 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.369, allocations: 0.6354 MB / 1.077 GB, free: 1.324 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.3693, allocations: 0.7647 MB / 1.078 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3694, allocations: 39.42 kB / 1.078 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.3694, allocations: 0 / 1.078 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of Templates: time 0.5102/0.8796, allocations: 3.95 MB / 1.082 GB, free: 21.43 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