/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 73260
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0824.7+5552_monthly_bin128
RA = 126.198, Dec = 55.8816
tmin = 568771201, tmax = 571363201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='321627', job_status='RUN', time_executed='2021-10-19 15:50:57.780288', time_epoch_executed='1634683857.78' WHERE source_name='4FGL J0824.7+5552' and cadence='monthly' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321627

Creating custom pfile directory:
/scratch/kocevski/321627/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=568771201.0 && nMetStart<571363201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=568771201.0 && nMetStart<571363201.0' /Data/Flight/Level1/LPA

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321627/ft1_4FGL_J0824.7+5552_monthly_bin128.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=568771201.0 && nMetStart<571363201.0' /Data/Flight/Level1/LPA

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321627/ft1_4FGL_J0824.7+5552_monthly_bin128.fits outfile=/scratch/kocevski/321627/ft1_filteredMKT_4FGL_J0824.7+5552_monthly_bin128.fits ra=126.198 dec=55.8816 rad=12.0 tmin=568771201.0 tmax=571363201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 29.36
user 28.63
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/321627/ft1_filteredMKT_4FGL_J0824.7+5552_monthly_bin128.fits evtable="EVENTS" outfile="/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.84
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/321627/ltcube_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits
.....................!
real 117.62
user 116.96
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/321627/ltcube_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits outfile=/scratch/kocevski/321627/expmap_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/321627/ltcube_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits
.....................!
real 191.83
user 186.63
sys 4.78

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 225 point sources and 0 extended sources

Setting source of interest to:
4FGL J0824.7+5552 @ 126.198 55.8816

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits scfile=/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits outfile=/scratch/kocevski/321627/cmap_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=126.198 yref=55.8816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.80
user 0.64
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits scfile=/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits outfile=/scratch/kocevski/321627/cmap_HighResolution_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=126.198 yref=55.8816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.82
user 0.66
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/321627/Model_4FGL_J0824.7+5552_monthly_bin128.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits.....................!
real 649.79
user 645.70
sys 1.75

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits', '/scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits', expMap='/scratch/kocevski/321627/expmap_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits', expCube='/scratch/kocevski/321627/ltcube_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/321627/Model_4FGL_J0824.7+5552_monthly_bin128.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.7+5552'

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  3.167e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.612e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  5.953e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/321627/ft1_filtered_4FGL_J0824.7+5552_monthly_bin128.fits
Spacecraft file(s): /scratch/kocevski/321627/ft2_4FGL_J0824.7+5552_monthly_bin128.fits
Exposure map: /scratch/kocevski/321627/expmap_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits
Exposure cube: /scratch/kocevski/321627/ltcube_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/321627/Model_4FGL_J0824.7+5552_monthly_bin128.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 75326.5354678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 75325.4090283

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1104       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .56114E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6367       1.0000         .10000E-03   10000.    
     7 'norm      '    .68956E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2406       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62991       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .65102       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8737       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21464E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3111       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.3460       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3398       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4121       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.5841       1.0000         .10000E-03   10000.    
    29 'norm      '    4.9579       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .86701       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .51148E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    19.219       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .94856       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   75325.41     FROM MIGRAD    STATUS=CONVERGED   1103 CALLS     4900 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0239        2.2652        .25407E-06   -.34866E-04
   2  Prefactor     4.1106        3.9152        .68559E-07    .18783E-04
   3  Prefactor     .94290E-02    1.2244        .21164E-06   -.25400E-04
   4  Prefactor     1.8381        6.1623       -.25868E-05   -.99758E-04
   5  Prefactor     63.786        10.571       -.81994E-06    .19971E-03
   6  Prefactor     2.6362        14.575        .15080E-05    .15436E-06
   7  norm          .69077E-01    .98571E-01    .60897E-07    .87512E-03
   8  Prefactor     1.2421        3.2523       -.23598E-05   -.57359E-04
   9  norm          1.3000        .66770        .13597E-06    .92699E-03
  10  Prefactor     .62987        2.4481       -.79534E-06   -.16742E-03
  11  norm          .10000E-03    .98562E-01   -.34766E-07** at limit **
  12  Prefactor     .10000E-03    25.545        .13805E-05** at limit **
  13  Prefactor     .10000E-03    1.7188        .31116E-08** at limit **
  14  norm          .65096        .70807       -.29265E-07   -.24013E-03
  15  norm          1.8736        .47893        .42869E-08    .21523E-03
  16  Prefactor     3.2847        .51118       -.56532E-08    .59623E-03
  17  Prefactor     .10000E-03    .85105        .74222E-07** at limit **
  18  Prefactor     3.8447        .77714        .15440E-06   -.23975E-02
  19  Prefactor     .10000E-03    .91329        .12035E-06** at limit **
  20  Prefactor     1.3110        1.1064       -.28619E-07    .80023E-05
  21  Prefactor     .10000E-03    5.1287       -.75124E-06** at limit **
  22  norm          6.3459        1.8441        .28989E-07   -.72825E-03
  23  norm          1.3395        1.4467       -.56689E-07   -.32696E-03
  24  Prefactor     .10000E-03    1.0864       -.31682E-08** at limit **
  25  Prefactor     .10000E-03    .60481       -.28181E-09** at limit **
  26  Prefactor     1.4119        .76150       -.43337E-07   -.30781E-03
  27  Prefactor     .10000E-03    3.5919        .63124E-08** at limit **
  28  Prefactor     4.5821        13.080        .24018E-05    .29812E-05
  29  norm          4.9578        .39439       -.15147E-07    .37526E-03
  30  Prefactor     .10000E-03    .47588       -.30866E-07** at limit **
  31  Prefactor     .86700        .97542       -.54742E-07   -.46267E-03
  32  Prefactor     .10000E-03    .76624        .39344E-07** at limit **
  33  Prefactor     .10000E-03    1.1221       -.13163E-06** at limit **
  34  norm          .10000E-03    .56785       -.27224E-06** at limit **
  35  Prefactor     19.222        11.803        .15542E-05    .23104E-03
  36  Normalizat    .94858        .57529E-01    .48148E-07    .33317E-03
  37  Prefactor     1.0376        .42833E-01    .19756E-06    .24648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02387
  Prefactor  = 4.11055
  Prefactor  = 0.00942896
  Prefactor  = 1.83813
  Prefactor  = 63.7859
  Prefactor  = 2.63618
  norm       = 0.0690773
  Prefactor  = 1.24212
  norm       = 1.29995
  Prefactor  = 0.629866
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.650962
  norm       = 1.87361
  Prefactor  = 3.28475
  Prefactor  = 0.0001
  Prefactor  = 3.84475
  Prefactor  = 0.000100002
  Prefactor  = 1.31101
  Prefactor  = 0.0001
  norm       = 6.34586
  norm       = 1.33952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41194
  Prefactor  = 0.0001
  Prefactor  = 4.58206
  norm       = 4.95778
  Prefactor  = 0.0001
  Prefactor  = 0.866997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2216
  Normalizat = 0.948579
  Prefactor  = 1.03762
 **********
 **   18 **HESSE 
 **********

 FCN=   75325.41     FROM HESSE     STATUS=OK           887 CALLS     5787 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0239        2.2617        .23344E-03   -1.5360    
   2  Prefactor     4.1106        3.9129        .19884E-03   -1.5302    
   3  Prefactor     .94290E-02    1.5378        .91723E-01   -1.5689    
   4  Prefactor     1.8381        6.1527        .30840E-03   -1.5437    
   5  Prefactor     63.786        10.421        .50244E-04   -1.4109    
   6  Prefactor     2.6362        14.548        .25111E-03   -1.5383    
   7  norm          .69077E-01    .10839        .98703E-03   -1.5655    
   8  Prefactor     1.2421        3.2321        .40259E-03   -1.5485    
   9  norm          1.3000        .65837        .15177E-03   -1.5480    
  10  Prefactor     .62987        2.4347        .47161E-03   -1.5549    
  11  norm          .10000E-03    .83156        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65096        .68267        .22333E-03   -1.5547    
  15  norm          1.8736        .47182        .90963E-04   -1.5434    
  16  Prefactor     3.2847        .50592        .73070E-04   -1.5345    
  17  Prefactor     .10000E-03    .86629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8447        1.7300        .10290E-02   -1.5316    
  19  Prefactor     .10000E-03    5.3442        .50935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3110        1.1060        .38502E-04   -1.5479    
  21  Prefactor     .10000E-03    5.3089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.3459        1.8857        .79668E-03   -1.5204    
  23  norm          1.3395        1.4380        .32976E-03   -1.5476    
  24  Prefactor     .10000E-03    1.1027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .61149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4119        .75519        .16799E-03   -1.5470    
  27  Prefactor     .10000E-03    3.6321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.5821        13.034        .18801E-03   -1.5280    
  29  norm          4.9578        .39447        .46487E-04   -1.5263    
  30  Prefactor     .10000E-03    1.2283        .36498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .86700        .97398        .27618E-03   -1.5522    
  32  Prefactor     .10000E-03    .77625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.1547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    .58446        .77615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     19.222        11.978        .91360E-04   -1.4831    
  36  Normalizat    .94858        .64976E-01    .28637E-03   -.94774    
  37  Prefactor     1.0376        .48343E-01    .21547E-03   -.91486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72255e-09
Minuit parameter uncertainties:
  1  2.26179
  2  3.91319
  3  0.239559
  4  6.15484
  5  10.4212
  6  12.3901
  7  0.108389
  8  3.2326
  9  0.658372
  10  2.4351
  11  1.36521e-05
  12  2.61216e-05
  13  6.87754e-07
  14  0.682673
  15  0.471819
  16  0.505916
  17  1.82781e-06
  18  1.73001
  19  0.00018695
  20  1.10604
  21  2.03787e-06
  22  1.8857
  23  1.43807
  24  1.69479e-06
  25  6.19978e-07
  26  0.755199
  27  1.09963e-05
  28  13.0424
  29  0.394471
  30  8.22949e-06
  31  0.973998
  32  4.57614e-07
  33  3.39453e-06
  34  2.04221e-05
  35  11.9795
  36  0.0649816
  37  0.0483448
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 75325.4089327

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  3.845e+00  1.730e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.612e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  5.953e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  1.038e+00  4.834e-02  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  9.486e-01  6.498e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.64
Ra Dec: 126.198 55.882
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.52e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 6.54e-06 +/- 2.94e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 75325.4078564
delta logL = 0.00107629501144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 75325.4078
delta logL = 0.00113267781853

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8346       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6326       1.0000          .0000       10.000    
     3 'Normalizat'    .94792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   75325.41     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      292 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8341        1.7555        .10305E-02    .41248E-02
   2  Index         2.6324        .44550        .10142E-01    .38616E-04
   3  Normalizat    .94790        .62485E-01    .28647E-03   -.57148E-05
   4  Prefactor     1.0379        .47858E-01    .21545E-03   -.17730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83408
  Index      = 2.63235
  Normalizat = 0.947901
  Prefactor  = 1.03791
 **********
 **   18 **HESSE 
 **********

 FCN=   75325.41     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8341        1.7196        .20610E-03   -1.5316    
   2  Index         2.6324        .43582        .40567E-03   -.49329    
   3  Normalizat    .94790        .62543E-01    .11459E-04   -.94797    
   4  Prefactor     1.0379        .47870E-01    .86179E-05   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49673e-12
Minuit parameter uncertainties:
  1  1.71959
  2  0.436531
  3  0.0625478
  4  0.0478723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321627': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 75325.4077983
delta logL = 0.00113439462439

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  3.834e+00  1.720e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.632e+00  4.365e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  5.953e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  1.038e+00  4.787e-02  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  9.479e-01  6.255e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.61
Ra Dec: 126.198 55.882
Photon Index (Free Index): 2.63 +/- 0.44
Photon Flux (Free Index): 2.57e-08 +/- 1.60e-08
Energy Flux (Free Index): 6.55e-06 +/- 2.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/321627/cmap_HighResolution_568771201_571363201_4FGL_J0824.7+5552_monthly_bin128.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/321627

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.52e-08', energy_flux2='6.55e-06', photon_flux_error='1.13e-08', dlogl='1.13e-03', energy_flux='6.54e-06', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-10-19 18:27:41.839854', photon_index_error2='0.44', photon_index2='2.63', ts='10.64', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.92e-06', EG='0.95', time_epoch_completed='1634693261.84', return_code='0', job_id='321627', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='2.94e-06', photon_flux_error2='1.60e-08', ts2='10.61', photon_index='2.61' WHERE bin_id='128' AND source_name='4FGL J0824.7+5552' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 18:27:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 321627: <4FGL_J0824.7+5552_monthly_bin128> in cluster <slac> Done

Job <4FGL_J0824.7+5552_monthly_bin128> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Oct 19 15:35:14 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 15:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 15:50:39 2021
Terminated at Tue Oct 19 18:27:42 2021
Results reported at Tue Oct 19 18:27:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.7+5552_monthly_bin128 126.198 55.8816 568771201 571363201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.7+5552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9322.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             429.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9423 sec.
    Turnaround time :                            10348 sec.

The output (if any) is above this job summary.

