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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin736
RA = 185.627, Dec = 4.2389
tmin = 430099201, tmax = 430358401
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='538460', job_status='RUN', time_executed='2021-09-05 10:24:31.814531', time_epoch_executed='1630862671.81' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538460/ft1_4FGL_J1222.5+0414_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538460/ft2_4FGL_J1222.5+0414_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538460/ft1_4FGL_J1222.5+0414_daily_bin736.fits outfile=/scratch/kocevski/538460/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin736.fits ra=185.627 dec=4.2389 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.17
user 10.68
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538460/ft2_4FGL_J1222.5+0414_daily_bin736.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/538460/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin736.fits evtable="EVENTS" outfile="/scratch/kocevski/538460/ft1_filtered_4FGL_J1222.5+0414_daily_bin736.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.57
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538460/ft1_filtered_4FGL_J1222.5+0414_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/538460/ft2_4FGL_J1222.5+0414_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/538460/ltcube_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.fits outfile=/scratch/kocevski/538460/expmap_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.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/538460/ltcube_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.fits
.....................!
real 191.15
user 185.38
sys 4.79

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/538460/ft1_filtered_4FGL_J1222.5+0414_daily_bin736.fits scfile=/scratch/kocevski/538460/ft2_4FGL_J1222.5+0414_daily_bin736.fits outfile=/scratch/kocevski/538460/cmap_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538460/ft1_filtered_4FGL_J1222.5+0414_daily_bin736.fits scfile=/scratch/kocevski/538460/ft2_4FGL_J1222.5+0414_daily_bin736.fits outfile=/scratch/kocevski/538460/cmap_HighResolution_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    143.14       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.298       1.0000         .10000E-03   10000.    
    12 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10428E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.648       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .41055       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4656       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9256       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.114       1.0000         .10000E-03   10000.    
    25 'norm      '    26.273       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .48771       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3813       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3202.161     FROM MIGRAD    STATUS=CONVERGED   1256 CALLS     4030 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.734        .18142E-02** at limit **
   2  Prefactor     .10000E-03    137.18        .18142E-02** at limit **
   3  Prefactor     15.874        22.350        .10045E-03   -.96199E-05
   4  Prefactor     .10000E-03    11.640        .18142E-02** at limit **
   5  Prefactor     .10000E-03    22.378        .18142E-02** at limit **
   6  Prefactor     .10000E-03    17.417        .18142E-02** at limit **
   7  Prefactor     .10000E-03    85.245        .18142E-02** at limit **
   8  Prefactor     143.07        80.966        .16838E-03   -.17386E-04
   9  Prefactor     7.3179        41.587        .14848E-03   -.13246E-04
  10  Prefactor     .10000E-03    15.229        .18142E-02** at limit **
  11  Prefactor     24.287        28.014        .81263E-04   -.12521E-04
  12  norm          .10000E-03    2.9373        .94340E-03** at limit **
  13  norm          .10000E-03    5.2077        .24879E-03** at limit **
  14  Prefactor     .10000E-03    43.330        .18142E-02** at limit **
  15  norm          .10000E-03    22.942        .18142E-02** at limit **
  16  Prefactor     .10000E-03    119.28        .18142E-02** at limit **
  17  norm          5.1091        1.4602        .32501E-04   -.10144E-03
  18  Prefactor     31.745        24.197        .71224E-04   -.16361E-04
  19  Prefactor     .16386        107.62        .10735        .49896E-04
  20  Prefactor     6.4665        11.910        .15784E-03   -.27011E-05
  21  norm          3.9637        2.8089        .75012E-04    .44710E-05
  22  Prefactor     .10000E-03    6.7029        .14290E-02** at limit **
  23  Prefactor     5.9231        51.838        .82482E-03    .48379E-05
  24  Prefactor     10.214        50.111        .12599E-03   -.22603E-04
  25  norm          26.276        39.531        .78155E-04   -.55276E-05
  26  Prefactor     .10000E-03    9.7893        .17224E-02** at limit **
  27  Normalizat    .48778        .38922        .44338E-03   -.16320E-04
  28  Prefactor     1.3816        .31489        .23161E-03   -.22319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.067
  Prefactor  = 7.31789
  Prefactor  = 0.0001
  Prefactor  = 24.2873
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1091
  Prefactor  = 31.7452
  Prefactor  = 0.163864
  Prefactor  = 6.46653
  norm       = 3.96365
  Prefactor  = 0.0001
  Prefactor  = 5.92307
  Prefactor  = 10.2138
  norm       = 26.2757
  Prefactor  = 0.0001
  Normalizat = 0.487777
  Prefactor  = 1.38163
 **********
 **   18 **HESSE 
 **********

 FCN=   3202.161     FROM HESSE     STATUS=OK           501 CALLS     4531 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    137.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.874        22.349        .40181E-05   -1.4911    
   4  Prefactor     .10000E-03    11.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    85.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     143.07        80.965        .67352E-05   -1.3310    
   9  Prefactor     7.3179        41.578        .59391E-05   -1.5167    
  10  Prefactor     .10000E-03    15.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.287        28.011        .32505E-05   -1.4722    
  12  norm          .10000E-03    2.9374        .18868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.2078        .49758E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    119.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1091        1.4601        .13000E-05   -1.5256    
  18  Prefactor     31.745        23.958        .28490E-05   -1.4581    
  19  Prefactor     .16386        93.102        .11552       -1.5627    
  20  Prefactor     6.4665        11.910        .63135E-05   -1.5199    
  21  norm          3.9637        2.8087        .30005E-05   -1.5310    
  22  Prefactor     .10000E-03    6.7033        .28579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9231        51.822        .32993E-04   -1.5221    
  24  Prefactor     10.214        50.132        .50397E-05   -1.5069    
  25  norm          26.276        39.534        .31262E-05   -1.4682    
  26  Prefactor     .10000E-03    9.7918        .34447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .48778        .38924        .17735E-04   -1.1299    
  28  Prefactor     1.3816        .31498        .46323E-04   -.80911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09754e-10
Minuit parameter uncertainties:
  1  3.0546e-05
  2  0.000126065
  3  22.3607
  4  6.88446e-06
  5  2.14055e-05
  6  8.89245e-06
  7  0.000117186
  8  81.0275
  9  34.923
  10  1.58157e-06
  11  28.0264
  12  3.8918e-06
  13  2.82568e-06
  14  6.06976e-06
  15  3.45185e-05
  16  0.000410489
  17  1.46011
  18  23.9651
  19  7.82163
  20  11.9142
  21  2.80883
  22  6.21556e-06
  23  35.0801
  24  45.3172
  25  39.5732
  26  5.04193e-05
  27  0.391436
  28  0.315421
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  2.826e-06  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.382e+00  3.154e-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:  4.878e-01  3.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/538460/likelihoodResults_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.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): 102
logL (Free Index) = 3202.16178581
delta logL = -0.000909243839033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3201.68337117
delta logL = 0.477505396545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0420       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .39624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4319       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=   3201.683     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      380 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0420        13.759        .12243E-01    .42194E-03
   2  alpha         5.0000        3.4458        .46267    ** at limit **
   3  Normalizat    .39624        .49259        .11001        .27812E-04
   4  Prefactor     1.4319        .34867        .51514E-01   -.23764E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.042
  alpha      = 5
  Normalizat = 0.396242
  Prefactor  = 1.43191
 **********
 **   18 **HESSE 
 **********

 FCN=   3201.683     FROM HESSE     STATUS=OK            33 CALLS      413 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0420        1.2419        .66117E-03   -1.5504    
   2  alpha         5.0000        3.6152        .71032E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .39624        .37231        .48754E-03   -1.1750    
   4  Prefactor     1.4319        .31284        .22772E-03   -.79465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72103e-13
Minuit parameter uncertainties:
  1  1.24193
  2  3.03825e-07
  3  0.374673
  4  0.313255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538460': 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) = 3201.68337117
delta logL = 0.477505396577

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.042e+00  1.242e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  5.000e+00  3.038e-07  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.432e+00  3.133e-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:  3.962e-01  3.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 185.627 4.239
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.16e-07 +/- 1.38e-07
Energy Flux (Free Index): 1.56e-05 +/- 1.86e-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/538460/cmap_HighResolution_430099201_430358401_4FGL_J1222.5+0414_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-05', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='4.78e-01', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-05 10:35:01.139069', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.86e-05', EG='0.49', time_epoch_completed='1630863301.14', return_code='0', job_id='538460', GAL2='1.43', EG2='0.40', return_code2='0', photon_flux_error2='1.38e-07', ts2='1.01', photon_index='2.69' WHERE bin_id='736' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:35:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 538460: <4FGL_J1222.5+0414_daily_bin736> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin736> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:20:35 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:20:36 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:20:36 2021
Terminated at Sun Sep  5 10:35:01 2021
Results reported at Sun Sep  5 10:35:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin736 185.627 4.2389 430099201 430358401 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 :                                   624.45 sec.
    Max Memory :                                 1188 MB
    Average Memory :                             284.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

