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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin558
RA = 185.627, Dec = 4.2389
tmin = 383961601, tmax = 384220801
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='537186', job_status='RUN', time_executed='2021-09-05 10:19:53.496091', time_epoch_executed='1630862393.5' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537186/ft1_4FGL_J1222.5+0414_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537186/ft1_4FGL_J1222.5+0414_daily_bin558.fits outfile=/scratch/kocevski/537186/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin558.fits ra=185.627 dec=4.2389 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.54
user 8.24
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537186/ft1_filtered_4FGL_J1222.5+0414_daily_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/537186/ltcube_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.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/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits
.....................!
real 11.12
user 10.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537186/ft1_filtered_4FGL_J1222.5+0414_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/537186/ltcube_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.fits outfile=/scratch/kocevski/537186/expmap_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.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/537186/ltcube_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.fits
.....................!
real 191.78
user 184.74
sys 6.04

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/537186/ft1_filtered_4FGL_J1222.5+0414_daily_bin558.fits scfile=/scratch/kocevski/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits outfile=/scratch/kocevski/537186/cmap_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.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/537186/ft1_filtered_4FGL_J1222.5+0414_daily_bin558.fits scfile=/scratch/kocevski/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits outfile=/scratch/kocevski/537186/cmap_HighResolution_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.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/537186/ft1_filtered_4FGL_J1222.5+0414_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/537186/ft2_4FGL_J1222.5+0414_daily_bin558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537186/Model_4FGL_J1222.5+0414_daily_bin558.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/537186/ft1_filtered_4FGL_J1222.5+0414_daily_bin558.fits.....................!
real 43.95
user 42.31
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.215       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6894       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.669       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.098       1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9116       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.778       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.544       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .94579       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    74.622       1.0000         .10000E-03   10000.    
    25 'norm      '    3.8049       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4280       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .47836       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=   4332.244     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     4129 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.308        .11511E-04** at limit **
   2  Prefactor     62.241        130.40       -.34163E-04   -.62179E-05
   3  Prefactor     .10000E-03    7.6694        .14401E-06** at limit **
   4  Prefactor     11.215        10.914        .65154E-07    .41690E-04
   5  Prefactor     8.6856        14.698       -.49101E-06   -.46118E-04
   6  Prefactor     .10000E-03    15.070       -.12096E-04** at limit **
   7  Prefactor     .10000E-03    75.080        .51042E-04** at limit **
   8  Prefactor     .10000E-03    52.254       -.14176E-04** at limit **
   9  Prefactor     34.779        29.220        .27496E-06    .39379E-04
  10  Prefactor     27.667        29.526       -.16890E-06    .20115E-04
  11  Prefactor     14.100        15.537        .17266E-06    .56009E-04
  12  norm          .10000E-03    3.6162       -.75259E-07** at limit **
  13  norm          6.2444        4.8131       -.10537E-06    .32381E-04
  14  Prefactor     .10000E-03    27.445       -.19478E-05** at limit **
  15  norm          .10000E-03    23.145        .15233E-04** at limit **
  16  Prefactor     .10000E-03    126.12       -.51138E-04** at limit **
  17  norm          1.9117        .90933       -.65734E-07    .17877E-03
  18  Prefactor     27.417        21.446        .51128E-06   -.13230E-04
  19  Prefactor     35.775        48.962       -.28134E-05   -.10171E-05
  20  Prefactor     .10000E-03    11.836       -.37210E-05** at limit **
  21  norm          13.544        3.2858       -.53287E-07    .13953E-03
  22  Prefactor     .94667        2.6958        .14322E-05   -.17288E-02
  23  Prefactor     .10000E-03    28.960       -.11724E-04** at limit **
  24  Prefactor     74.625        52.883        .19962E-05    .92767E-05
  25  norm          3.8047        22.874       -.96110E-06   -.10056E-03
  26  Prefactor     .10000E-03    4.7259       -.46305E-07** at limit **
  27  Normalizat    1.4280        .26040        .17913E-05    .34949E-05
  28  Prefactor     .47834        .19786        .51531E-06    .97319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.241
  Prefactor  = 0.0001
  Prefactor  = 11.215
  Prefactor  = 8.68563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.7791
  Prefactor  = 27.6674
  Prefactor  = 14.1001
  norm       = 0.0001
  norm       = 6.24439
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91172
  Prefactor  = 27.4169
  Prefactor  = 35.7754
  Prefactor  = 0.0001
  norm       = 13.5442
  Prefactor  = 0.946666
  Prefactor  = 0.0001
  Prefactor  = 74.6255
  norm       = 3.80473
  Prefactor  = 0.0001
  Normalizat = 1.428
  Prefactor  = 0.47834
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.244     FROM HESSE     STATUS=OK           519 CALLS     4648 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.241        131.08        .50848E-04   -1.4128    
   3  Prefactor     .10000E-03    7.7030        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.215        10.917        .11963E-03   -1.5038    
   5  Prefactor     8.6856        14.732        .13598E-03   -1.5118    
   6  Prefactor     .10000E-03    15.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.779        29.272        .67954E-04   -1.4528    
  10  Prefactor     27.667        29.528        .76162E-04   -1.4655    
  11  Prefactor     14.100        15.297        .10668E-03   -1.4957    
  12  norm          .10000E-03    3.6521        .24056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2444        4.8148        .11606E-03   -1.5208    
  14  Prefactor     .10000E-03    27.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    126.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9117        .90454        .39072E-04   -1.5431    
  18  Prefactor     27.417        21.445        .38255E-03   -1.4660    
  19  Prefactor     35.775        48.988        .66999E-04   -1.4511    
  20  Prefactor     .10000E-03    11.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.544        3.2862        .55493E-04   -1.4972    
  22  Prefactor     .94667        10.215        .65508E-01   -1.5513    
  23  Prefactor     .10000E-03    29.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     74.625        52.884        .46480E-04   -1.3978    
  25  norm          3.8047        23.584        .10347E-02   -1.5318    
  26  Prefactor     .10000E-03    4.7300        .13973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4280        .30328        .25942E-03   -.79822    
  28  Prefactor     .47834        .22659        .33236E-03   -1.1298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9822e-09
Minuit parameter uncertainties:
  1  2.89146e-05
  2  131.693
  3  3.44162e-05
  4  10.9191
  5  14.7378
  6  3.8949e-05
  7  0.0003836
  8  6.86409e-05
  9  29.2842
  10  29.5432
  11  15.3008
  12  1.54558e-05
  13  4.81513
  14  1.05589e-05
  15  6.4444e-05
  16  0.000482127
  17  0.904549
  18  21.4507
  19  49.0434
  20  1.92885e-05
  21  3.28629
  22  6.22038
  23  6.21179e-05
  24  52.9174
  25  18.956
  26  7.65078e-06
  27  0.303664
  28  0.227022
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  6.244e+00  4.815e+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:  4.783e-01  2.270e-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:  1.428e+00  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 9.61e-08 +/- 7.40e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.71e-05

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) = 4332.23592039
delta logL = 0.00847451597474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4332.23474848
delta logL = 0.00964642601139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3936       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8286       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48467       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=   4332.235     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3991        11.170        .39684E-02    .69805E-04
   2  alpha         2.8277        1.8450        .41610       -.25062E-05
   3  Normalizat    1.4160        .25867        .58845E-01   -.50331E-04
   4  Prefactor     .48467        .20098        .74586E-01    .12524E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39913
  alpha      = 2.82772
  Normalizat = 1.416
  Prefactor  = 0.484666
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.235     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3991        4.5893        .11289E-03   -1.5202    
   2  alpha         2.8277        .98847        .21246E-01    .13147    
   3  Normalizat    1.4160        .30149        .26022E-03   -.80167    
   4  Prefactor     .48467        .22814        .33032E-03   -1.1269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46758e-11
Minuit parameter uncertainties:
  1  4.58953
  2  1.01675
  3  0.301874
  4  0.228567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537186': 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) = 4332.23474663
delta logL = 0.0096482771969

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  6.399e+00  4.590e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.828e+00  1.017e+00  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:  4.847e-01  2.286e-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:  1.416e+00  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.83 +/- 1.02
Photon Flux (Free Index): 1.08e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.31e-05 +/- 1.75e-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/537186/cmap_HighResolution_383961601_384220801_4FGL_J1222.5+0414_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.61e-08', energy_flux2='2.31e-05', photon_flux_error='7.40e-08', dlogl='9.65e-03', energy_flux='2.22e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-05 10:31:08.971621', photon_index_error2='1.02', photon_index2='2.83', ts='4.36', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.43', time_epoch_completed='1630863068.97', return_code='0', job_id='537186', GAL2='0.48', EG2='1.42', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='1.12e-07', ts2='4.41', photon_index='2.69' WHERE bin_id='558' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:31:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 537186: <4FGL_J1222.5+0414_daily_bin558> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin558 185.627 4.2389 383961601 384220801 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 :                                   670.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

