/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 128 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 = 7437
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin515
RA = 185.627, Dec = 4.2389
tmin = 372816001, tmax = 373075201
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='537115', job_status='RUN', time_executed='2021-09-05 10:18:05.107525', time_epoch_executed='1630862285.11' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537115/ft1_4FGL_J1222.5+0414_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537115/ft1_4FGL_J1222.5+0414_daily_bin515.fits outfile=/scratch/kocevski/537115/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin515.fits ra=185.627 dec=4.2389 rad=12.0 tmin=372816001.0 tmax=373075201.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 4.43
user 4.18
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.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/537115/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin515.fits evtable="EVENTS" outfile="/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/537115/ltcube_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.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/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits
.....................!
real 11.78
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/537115/ltcube_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.fits outfile=/scratch/kocevski/537115/expmap_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.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/537115/ltcube_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.fits
.....................!
real 192.42
user 185.04
sys 4.42

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits scfile=/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits outfile=/scratch/kocevski/537115/cmap_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.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=185.627 yref=4.2389 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.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits scfile=/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits outfile=/scratch/kocevski/537115/cmap_HighResolution_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.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=185.627 yref=4.2389 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.89
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537115/Model_4FGL_J1222.5+0414_daily_bin515.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/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits.....................!
real 55.88
user 52.43
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits', '/scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits', expMap='/scratch/kocevski/537115/expmap_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.fits', expCube='/scratch/kocevski/537115/ltcube_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537115/Model_4FGL_J1222.5+0414_daily_bin515.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/537115/ft1_filtered_4FGL_J1222.5+0414_daily_bin515.fits
Spacecraft file(s): /scratch/kocevski/537115/ft2_4FGL_J1222.5+0414_daily_bin515.fits
Exposure map: /scratch/kocevski/537115/expmap_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.fits
Exposure cube: /scratch/kocevski/537115/ltcube_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537115/Model_4FGL_J1222.5+0414_daily_bin515.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9660       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4258       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2189       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7597       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    47.037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .47216       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.522       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9993       1.0000         .10000E-03   10000.    
    25 'norm      '    24.345       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.246       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71513       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6254.299     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3594 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9632        16.553        .26002E-06   -.51562E-05
   2  Prefactor     42.376        101.88        .11118E-05    .22469E-04
   3  Prefactor     .10000E-03    6.9963        .16996E-06** at limit **
   4  Prefactor     .10000E-03    7.8713        .88598E-06** at limit **
   5  Prefactor     11.275        11.510        .14209E-06   -.64596E-05
   6  Prefactor     12.120        14.350        .32878E-06   -.27113E-05
   7  Prefactor     .10000E-03    23.711        .80953E-08** at limit **
   8  Prefactor     85.256        50.436       -.10460E-05    .75451E-04
   9  Prefactor     .10000E-03    7.9938        .46283E-07** at limit **
  10  Prefactor     .12765        30.717        .31818E-05   -.45930E-04
  11  Prefactor     8.4246        9.6218        .82032E-07   -.25848E-04
  12  norm          3.2185        2.6893        .57269E-07   -.10633E-04
  13  norm          2.7718        4.0494       -.13155E-05   -.29647E-03
  14  Prefactor     .10000E-03    25.998       -.17726E-06** at limit **
  15  norm          47.024        43.363       -.18842E-07   -.49823E-04
  16  Prefactor     .10000E-03    50.173       -.12903E-07** at limit **
  17  norm          .47207        .46354        .82351E-07    .49465E-03
  18  Prefactor     19.316        12.679        .14947E-06    .93682E-05
  19  Prefactor     .10000E-03    66.602       -.92366E-07** at limit **
  20  Prefactor     .10000E-03    5.3277       -.54783E-07** at limit **
  21  norm          15.646        3.0222        .34411E-07   -.10769E-03
  22  Prefactor     .10000E-03    3.4077        .16440E-07** at limit **
  23  Prefactor     26.503        41.864        .51770E-06    .43820E-05
  24  Prefactor     5.9957        89.420        .36622E-06   -.52554E-06
  25  norm          24.338        27.250        .24072E-06    .30083E-04
  26  Prefactor     17.243        17.661        .29724E-06   -.14219E-05
  27  Normalizat    .71513        .22502       -.23341E-05   -.61814E-04
  28  Prefactor     1.1512        .17893        .28666E-06   -.17694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.96324
  Prefactor  = 42.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2753
  Prefactor  = 12.1198
  Prefactor  = 0.0001
  Prefactor  = 85.2557
  Prefactor  = 0.0001
  Prefactor  = 0.127645
  Prefactor  = 8.42456
  norm       = 3.21847
  norm       = 2.77181
  Prefactor  = 0.0001
  norm       = 47.0239
  Prefactor  = 0.0001
  norm       = 0.472072
  Prefactor  = 19.3158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6456
  Prefactor  = 0.0001
  Prefactor  = 26.5034
  Prefactor  = 5.99568
  norm       = 24.3383
  Prefactor  = 17.243
  Normalizat = 0.715132
  Prefactor  = 1.15118
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.299     FROM HESSE     STATUS=OK           533 CALLS     4127 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9632        16.548        .12693E-03   -1.5077    
   2  Prefactor     42.376        101.73        .61616E-04   -1.4405    
   3  Prefactor     .10000E-03    7.0558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.275        11.509        .11930E-03   -1.5036    
   6  Prefactor     12.120        14.351        .11505E-03   -1.5012    
   7  Prefactor     .10000E-03    23.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     85.256        50.577        .21761E-03   -1.3859    
   9  Prefactor     .10000E-03    8.0013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12765        16.111        .22243       -1.5637    
  11  Prefactor     8.4246        9.5942        .13810E-03   -1.5127    
  12  norm          3.2185        2.6851        .10769E-03   -1.5349    
  13  norm          2.7718        4.1106        .16263E-03   -1.5375    
  14  Prefactor     .10000E-03    26.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          47.024        43.231        .58464E-04   -1.4335    
  16  Prefactor     .10000E-03    50.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .47207        .44365        .49364E-03   -1.5571    
  18  Prefactor     19.316        12.658        .91123E-04   -1.4829    
  19  Prefactor     .10000E-03    67.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3545        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.646        3.0133        .56137E-04   -1.4917    
  22  Prefactor     .10000E-03    3.4170        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.503        41.808        .77788E-04   -1.4678    
  24  Prefactor     5.9957        87.450        .16393E-03   -1.5218    
  25  norm          24.338        27.268        .81185E-04   -1.4721    
  26  Prefactor     17.243        17.483        .96445E-04   -1.4877    
  27  Normalizat    .71513        .25471        .34835E-03   -1.0330    
  28  Prefactor     1.1512        .20744        .23901E-03   -.87847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64582e-10
Minuit parameter uncertainties:
  1  16.5558
  2  102.153
  3  1.07842e-05
  4  1.43859e-05
  5  11.5115
  6  14.3548
  7  7.93307e-06
  8  50.6021
  9  7.52264e-06
  10  2.86776
  11  9.59594
  12  2.68516
  13  4.111
  14  4.87183e-05
  15  43.2599
  16  3.68915e-05
  17  0.443656
  18  12.6601
  19  0.000114292
  20  7.29392e-06
  21  3.01334
  22  2.76131e-06
  23  41.8543
  24  45.8767
  25  27.2817
  26  17.4883
  27  0.25513
  28  0.207583
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.772e+00  4.111e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.151e+00  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  7.151e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537115/likelihoodResults_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.txt

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) = 6254.23741544
delta logL = 0.0619735109385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6254.23598229
delta logL = 0.0634066632756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8463       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3127       1.0000          .0000       5.0000    
     3 'Normalizat'    .72624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6254.236     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8463        4.2994        .60251E-02    .87238E-03
   2  alpha         2.3131        .90521        .41298       -.30174E-04
   3  Normalizat    .72607        .20764        .78144E-01    .27381E-04
   4  Prefactor     1.1437        .17706        .54204E-01    .59203E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84628
  alpha      = 2.3131
  Normalizat = 0.726073
  Prefactor  = 1.14367
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.236     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8463        3.6534        .16104E-03   -1.5371    
   2  alpha         2.3131        .93578        .23863E-01   -.74829E-01
   3  Normalizat    .72607        .24163        .34597E-03   -1.0287    
   4  Prefactor     1.1437        .20529        .23965E-03   -.88083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1125e-09
Minuit parameter uncertainties:
  1  3.65365
  2  0.959273
  3  0.241986
  4  0.205435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537115': 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) = 6254.2359816
delta logL = 0.0634073520914

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.846e+00  3.654e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.313e+00  9.593e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.144e+00  2.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  7.261e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 185.627 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/537115/cmap_HighResolution_372816001_373075201_4FGL_J1222.5+0414_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-05 10:31:53.422720', job_id='537115', GAL2='1.14', fit_tolerance='1e-08', EG2='0.73', EG='0.72', time_epoch_completed='1630863113.42', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.34e-02', ts2='0.89', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='515' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 537115: <4FGL_J1222.5+0414_daily_bin515> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin515> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:15:47 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:15:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:15:48 2021
Terminated at Sun Sep  5 10:31:54 2021
Results reported at Sun Sep  5 10:31:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin515 185.627 4.2389 372816001 373075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

