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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin816
RA = 185.627, Dec = 4.2389
tmin = 450835201, tmax = 451094401
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='538606', job_status='RUN', time_executed='2021-09-05 10:23:45.367543', time_epoch_executed='1630862625.37' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538606/ft1_4FGL_J1222.5+0414_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538606/ft2_4FGL_J1222.5+0414_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538606/ft1_4FGL_J1222.5+0414_daily_bin816.fits outfile=/scratch/kocevski/538606/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin816.fits ra=185.627 dec=4.2389 rad=12.0 tmin=450835201.0 tmax=451094401.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 3.40
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538606/ft1_filtered_4FGL_J1222.5+0414_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/538606/ft2_4FGL_J1222.5+0414_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/538606/ltcube_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.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/538606/ft2_4FGL_J1222.5+0414_daily_bin816.fits
.....................!
real 12.11
user 11.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538606/ft1_filtered_4FGL_J1222.5+0414_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/538606/ft2_4FGL_J1222.5+0414_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/538606/ltcube_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.fits outfile=/scratch/kocevski/538606/expmap_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.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/538606/ltcube_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.fits
.....................!
real 189.68
user 184.76
sys 4.53

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/538606/ft1_filtered_4FGL_J1222.5+0414_daily_bin816.fits scfile=/scratch/kocevski/538606/ft2_4FGL_J1222.5+0414_daily_bin816.fits outfile=/scratch/kocevski/538606/cmap_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538606/ft1_filtered_4FGL_J1222.5+0414_daily_bin816.fits scfile=/scratch/kocevski/538606/ft2_4FGL_J1222.5+0414_daily_bin816.fits outfile=/scratch/kocevski/538606/cmap_HighResolution_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.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.56
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    85.636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13759       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .16329       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12574E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0232       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.255       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.899       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90403       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97044       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=   5288.381     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3576 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0024       -.27954E-06** at limit **
   2  Prefactor     85.630        81.198        .30039E-05    .12157E-04
   3  Prefactor     20.454        14.777        .61876E-06   -.44066E-04
   4  Prefactor     8.2426        9.8623        .10957E-05   -.16542E-04
   5  Prefactor     .10000E-03    5.6115       -.18998E-06** at limit **
   6  Prefactor     .10000E-03    52.545        .18850E-04** at limit **
   7  Prefactor     19.972        123.75        .48042E-04   -.62435E-06
   8  Prefactor     .10000E-03    55.392       -.20414E-04** at limit **
   9  Prefactor     21.190        17.625       -.61986E-06   -.67823E-04
  10  Prefactor     .10000E-03    11.658        .39733E-06** at limit **
  11  Prefactor     .13765        8.1061       -.29283E-06   -.69306E-04
  12  norm          .10000E-03    2.1991        .41614E-06** at limit **
  13  norm          5.8825        3.4225       -.41292E-07   -.34822E-03
  14  Prefactor     .10000E-03    24.692        .42059E-06** at limit **
  15  norm          .10268E-03    29.076        .11666E-05** at limit **
  16  Prefactor     .10000E-03    79.360        .21232E-05** at limit **
  17  norm          .12606        .31417       -.11047E-06   -.26827E-02
  18  Prefactor     2.0275        10.559        .23118E-05   -.30390E-03
  19  Prefactor     .10000E-03    10.482       -.38200E-06** at limit **
  20  Prefactor     .10000E-03    19.389       -.10847E-04** at limit **
  21  norm          .10000E-03    .97294        .26624E-06** at limit **
  22  Prefactor     19.247        11.565        .18607E-05    .14269E-03
  23  Prefactor     .10000E-03    19.103        .13219E-04** at limit **
  24  Prefactor     .10000E-03    17.006       -.25118E-05** at limit **
  25  norm          .10000E-03    9.2372        .41795E-06** at limit **
  26  Prefactor     12.896        14.745        .10590E-05   -.51221E-04
  27  Normalizat    .90398        .21610       -.34434E-05   -.10685E-03
  28  Prefactor     .97045        .17146       -.35702E-06   -.21061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 85.6303
  Prefactor  = 20.4541
  Prefactor  = 8.24262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9723
  Prefactor  = 0.0001
  Prefactor  = 21.1899
  Prefactor  = 0.0001
  Prefactor  = 0.137649
  norm       = 0.0001
  norm       = 5.88253
  Prefactor  = 0.0001
  norm       = 0.000102684
  Prefactor  = 0.0001
  norm       = 0.126062
  Prefactor  = 2.02751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.8958
  Normalizat = 0.903979
  Prefactor  = 0.970454
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.381     FROM HESSE     STATUS=OK           535 CALLS     4111 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     85.630        81.294        .43412E-04   -1.3855    
   3  Prefactor     20.454        14.742        .88530E-04   -1.4803    
   4  Prefactor     8.2426        9.8483        .13973E-03   -1.5134    
   5  Prefactor     .10000E-03    5.6167        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.972        122.99        .89993E-04   -1.4814    
   8  Prefactor     .10000E-03    55.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.190        17.608        .86999E-04   -1.4787    
  10  Prefactor     .10000E-03    11.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13765        8.1157        .61563E-01   -1.5634    
  12  norm          .10000E-03    4.5169        .19311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8825        3.4151        .92678E-04   -1.5223    
  14  Prefactor     .10000E-03    24.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10268E-03    32.732        .12052       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    79.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .12606        .27784        .59974E-03   -1.5637    
  18  Prefactor     2.0275        10.445        .29092E-03   -1.5423    
  19  Prefactor     .10000E-03    10.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9165        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.247        11.575        .91275E-04   -1.4830    
  23  Prefactor     .10000E-03    19.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.2394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.896        14.799        .11153E-03   -1.4990    
  27  Normalizat    .90398        .24787        .28117E-03   -.96320    
  28  Prefactor     .97045        .19871        .22788E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15066e-09
Minuit parameter uncertainties:
  1  5.67857e-06
  2  81.3996
  3  14.7451
  4  9.85019
  5  5.23548e-05
  6  0.000122783
  7  99.4286
  8  7.30791e-05
  9  17.612
  10  6.55399e-06
  11  2.11342
  12  8.07641e-05
  13  3.41516
  14  1.47716e-05
  15  0.0187574
  16  2.85367e-05
  17  0.277838
  18  9.20603
  19  1.4415e-05
  20  0.000173741
  21  3.18783e-05
  22  11.5759
  23  8.95902e-06
  24  2.36922e-06
  25  6.33408e-06
  26  14.803
  27  0.248186
  28  0.19886
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  5.883e+00  3.415e+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.705e-01  1.989e-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:  9.040e-01  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.60
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 9.05e-08 +/- 5.25e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.21e-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) = 5287.58472218
delta logL = 0.796338055932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5287.50656318
delta logL = 0.874497049506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2907       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7750       1.0000          .0000       5.0000    
     3 'Normalizat'    .97217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93103       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=   5287.507     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2853        2.7675        .48623E-02    .71304E-04
   2  alpha         1.7743        .42039        .30474       -.35798E-04
   3  Normalizat    .97201        .20215        .45817E-01    .43466E-04
   4  Prefactor     .93110        .16899        .45399E-01   -.33965E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.28527
  alpha      = 1.77427
  Normalizat = 0.972011
  Prefactor  = 0.931095
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2853        3.7794        .90038E-04   -1.5294    
   2  alpha         1.7743        .64293        .11978E-01   -.29453    
   3  Normalizat    .97201        .23624        .27233E-03   -.93974    
   4  Prefactor     .93110        .19587        .23199E-03   -.95063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70926e-09
Minuit parameter uncertainties:
  1  3.77957
  2  0.650931
  3  0.236496
  4  0.196022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538606': 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) = 5287.50656137
delta logL = 0.874498862299

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.285e+00  3.780e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  1.774e+00  6.509e-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:  9.311e-01  1.960e-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:  9.720e-01  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 185.627 4.239
Photon Index (Free Index): 1.77 +/- 0.65
Photon Flux (Free Index): 4.45e-08 +/- 4.22e-08
Energy Flux (Free Index): 2.76e-05 +/- 2.10e-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/538606/cmap_HighResolution_450835201_451094401_4FGL_J1222.5+0414_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.05e-08', energy_flux2='2.76e-05', photon_flux_error='5.25e-08', dlogl='8.74e-01', energy_flux='2.09e-05', photon_flux2='4.45e-08', job_status='DONE', time_completed='2021-09-05 10:34:36.483308', photon_index_error2='0.65', photon_index2='1.77', ts='7.60', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.90', time_epoch_completed='1630863276.48', return_code='0', job_id='538606', GAL2='0.93', EG2='0.97', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.22e-08', ts2='9.32', photon_index='2.69' WHERE bin_id='816' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:34:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 538606: <4FGL_J1222.5+0414_daily_bin816> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin816 185.627 4.2389 450835201 451094401 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

