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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin582
RA = 185.627, Dec = 4.2389
tmin = 390182401, tmax = 390441601
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='537216', job_status='RUN', time_executed='2021-09-05 10:19:13.275730', time_epoch_executed='1630862353.28' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537216

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537216/ft1_4FGL_J1222.5+0414_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537216/ft1_4FGL_J1222.5+0414_daily_bin582.fits outfile=/scratch/kocevski/537216/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin582.fits ra=185.627 dec=4.2389 rad=12.0 tmin=390182401.0 tmax=390441601.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.06
user 3.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.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/537216/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin582.fits evtable="EVENTS" outfile="/scratch/kocevski/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.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/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/537216/ltcube_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.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/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits
.....................!
real 14.09
user 13.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/537216/ltcube_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.fits outfile=/scratch/kocevski/537216/expmap_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.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/537216/ltcube_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.fits
.....................!
real 189.79
user 184.99
sys 4.41

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/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.fits scfile=/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits outfile=/scratch/kocevski/537216/cmap_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.fits scfile=/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits outfile=/scratch/kocevski/537216/cmap_HighResolution_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.fits', '/scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits', expMap='/scratch/kocevski/537216/expmap_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.fits', expCube='/scratch/kocevski/537216/ltcube_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537216/Model_4FGL_J1222.5+0414_daily_bin582.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/537216/ft1_filtered_4FGL_J1222.5+0414_daily_bin582.fits
Spacecraft file(s): /scratch/kocevski/537216/ft2_4FGL_J1222.5+0414_daily_bin582.fits
Exposure map: /scratch/kocevski/537216/expmap_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.fits
Exposure cube: /scratch/kocevski/537216/ltcube_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537216/Model_4FGL_J1222.5+0414_daily_bin582.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) = 2862.93372241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8000       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.944       1.0000         .10000E-03   10000.    
    15 'norm      '    .11106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    201.87       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3231       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2045       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.910       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.922       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .77663       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94177       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=   2862.880     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3444 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.581       -.64003E-05** at limit **
   2  Prefactor     .10000E-03    89.205        .10669E-03** at limit **
   3  Prefactor     11.843        15.514       -.43016E-06    .18984E-05
   4  Prefactor     .10000E-03    5.3040       -.10235E-07** at limit **
   5  Prefactor     .10000E-03    20.767        .11383E-05** at limit **
   6  Prefactor     .10000E-03    11.085        .45622E-05** at limit **
   7  Prefactor     .10000E-03    60.986       -.57580E-04** at limit **
   8  Prefactor     1.7921        310.03       -.26379E-04   -.17884E-04
   9  Prefactor     5.1780        21.575       -.17197E-05   -.17132E-04
  10  Prefactor     .10000E-03    20.174       -.25704E-05** at limit **
  11  Prefactor     .10000E-03    5.6164       -.49231E-08** at limit **
  12  norm          .10000E-03    1.1542       -.42227E-07** at limit **
  13  norm          1.8473        8.3839        .28542E-05    .32890E-03
  14  Prefactor     11.930        85.939       -.17545E-04    .16759E-04
  15  norm          .10000E-03    210.26       -.12011E-03** at limit **
  16  Prefactor     201.83        296.42       -.28588E-04    .25627E-04
  17  norm          1.5470        1.3226       -.83040E-07    .24034E-02
  18  Prefactor     7.3228        9.7765       -.85501E-06   -.65250E-03
  19  Prefactor     .10000E-03    15.516        .11253E-04** at limit **
  20  Prefactor     .10000E-03    17.872       -.78225E-05** at limit **
  21  norm          4.2045        2.6874        .86189E-07    .31584E-03
  22  Prefactor     11.910        13.726       -.22805E-06    .46263E-04
  23  Prefactor     .10000E-03    26.483        .10972E-04** at limit **
  24  Prefactor     20.924        45.374        .62887E-06   -.41406E-06
  25  norm          .10000E-03    17.384       -.55543E-05** at limit **
  26  Prefactor     .10000E-03    8.3908       -.51665E-07** at limit **
  27  Normalizat    .77663        .26653        .20483E-05    .10772E-03
  28  Prefactor     .94176        .21296        .14862E-05    .17155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79211
  Prefactor  = 5.17796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.84728
  Prefactor  = 11.9298
  norm       = 0.000100001
  Prefactor  = 201.828
  norm       = 1.54701
  Prefactor  = 7.32276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20453
  Prefactor  = 11.9097
  Prefactor  = 0.0001
  Prefactor  = 20.924
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.776634
  Prefactor  = 0.941762
 **********
 **   18 **HESSE 
 **********

 FCN=   2862.880     FROM HESSE     STATUS=OK           513 CALLS     3957 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.581        .17786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    89.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.843        15.529        .11641E-03   -1.5020    
   4  Prefactor     .10000E-03    5.3111        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.105        .17399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7921        311.53        .31160E-03   -1.5440    
   9  Prefactor     5.1780        21.554        .17672E-03   -1.5253    
  10  Prefactor     .10000E-03    20.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6212        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1562        .56136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8473        7.7419        .22043E-03   -1.5436    
  14  Prefactor     11.930        85.098        .11591E-03   -1.5017    
  15  norm          .10000E-03    211.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     201.83        293.44        .14221E-03   -1.2857    
  17  norm          1.5470        1.2755        .41673E-04   -1.5459    
  18  Prefactor     7.3228        9.7843        .74108E-03   -1.5167    
  19  Prefactor     .10000E-03    15.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2045        2.6807        .65075E-04   -1.5298    
  22  Prefactor     11.910        13.714        .11608E-03   -1.5018    
  23  Prefactor     .10000E-03    26.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.924        45.387        .87566E-04   -1.4793    
  25  norm          .10000E-03    17.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.4080        .15134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .77663        .30787        .28663E-03   -1.0094    
  28  Prefactor     .94176        .24736        .21965E-03   -.94697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06611e-09
Minuit parameter uncertainties:
  1  9.49612e-07
  2  2.31703e-06
  3  15.5345
  4  3.6536e-06
  5  1.7917e-05
  6  1.33426e-05
  7  1.73747e-06
  8  47.5085
  9  21.1414
  10  5.70262e-05
  11  1.57432e-06
  12  5.20203e-07
  13  7.56495
  14  63.8532
  15  0.000765089
  16  295.611
  17  1.27557
  18  9.78644
  19  5.6e-06
  20  1.42699e-05
  21  2.68076
  22  13.7181
  23  1.41406e-05
  24  45.4619
  25  3.25094e-06
  26  1.48775e-05
  27  0.308567
  28  0.247653
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.847e+00  7.565e+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:  9.418e-01  2.477e-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.766e-01  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/537216/likelihoodResults_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.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) = 2861.72745298
delta logL = 1.15292367093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2861.70394706
delta logL = 1.17642958556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5389       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .65509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0073       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=   2861.704     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5388        5.7863        .85938E-02    .17747E-03
   2  alpha         5.0000        3.0764        .46337    ** at limit **
   3  Normalizat    .65516        .28081        .69664E-01    .75906E-05
   4  Prefactor     1.0073        .21822        .43752E-01   -.15384E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5388
  alpha      = 5
  Normalizat = 0.655156
  Prefactor  = 1.00727
 **********
 **   18 **HESSE 
 **********

 FCN=   2861.704     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5388        1.2220        .48597E-04   -1.5460    
   2  alpha         5.0000        3.7770        .56612E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .65516        .30362        .30832E-03   -1.0569    
   4  Prefactor     1.0073        .25038        .21283E-03   -.92488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13029e-12
Minuit parameter uncertainties:
  1  1.22198
  2  5.2839e-06
  3  0.304398
  4  0.250669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537216': 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) = 2861.70394673
delta logL = 1.17642992041

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.539e+00  1.222e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  5.000e+00  5.284e-06  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.007e+00  2.507e-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:  6.552e-01  3.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 185.627 4.239
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.72e-07 +/- 1.35e-07
Energy Flux (Free Index): 2.31e-05 +/- 1.83e-05

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/537216/cmap_HighResolution_390182401_390441601_4FGL_J1222.5+0414_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-05', comment='SUCCESS', energy_flux2='2.31e-05', dlogl='1.18e+00', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-05 10:28:09.139537', photon_index_error2='0.00', photon_index2='5.00', ts='0.11', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.40e-07', energy_flux_error2='1.83e-05', EG='0.78', time_epoch_completed='1630862889.14', return_code='0', job_id='537216', GAL2='1.01', EG2='0.66', return_code2='0', photon_flux_error2='1.35e-07', ts2='2.67', photon_index='2.69' WHERE bin_id='582' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:28:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 537216: <4FGL_J1222.5+0414_daily_bin582> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin582> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:15:56 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:15:58 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:58 2021
Terminated at Sun Sep  5 10:28:09 2021
Results reported at Sun Sep  5 10:28:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin582 185.627 4.2389 390182401 390441601 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 :                                   533.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

