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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin748
RA = 185.627, Dec = 4.2389
tmin = 433209601, tmax = 433468801
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='538478', job_status='RUN', time_executed='2021-09-05 10:23:20.390601', time_epoch_executed='1630862600.39' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538478/ft1_4FGL_J1222.5+0414_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538478/ft2_4FGL_J1222.5+0414_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538478/ft1_4FGL_J1222.5+0414_daily_bin748.fits outfile=/scratch/kocevski/538478/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin748.fits ra=185.627 dec=4.2389 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.08
user 5.79
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538478/ft1_filtered_4FGL_J1222.5+0414_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/538478/ft2_4FGL_J1222.5+0414_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/538478/ltcube_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.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/538478/ft2_4FGL_J1222.5+0414_daily_bin748.fits
.....................!
real 12.30
user 11.97
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538478/ft1_filtered_4FGL_J1222.5+0414_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/538478/ft2_4FGL_J1222.5+0414_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/538478/ltcube_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.fits outfile=/scratch/kocevski/538478/expmap_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.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/538478/ltcube_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.fits
.....................!
real 190.26
user 185.60
sys 4.28

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/538478/ft1_filtered_4FGL_J1222.5+0414_daily_bin748.fits scfile=/scratch/kocevski/538478/ft2_4FGL_J1222.5+0414_daily_bin748.fits outfile=/scratch/kocevski/538478/cmap_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538478/ft1_filtered_4FGL_J1222.5+0414_daily_bin748.fits scfile=/scratch/kocevski/538478/ft2_4FGL_J1222.5+0414_daily_bin748.fits outfile=/scratch/kocevski/538478/cmap_HighResolution_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.084       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    149.48       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.085       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7464       1.0000         .10000E-03   10000.    
    13 'norm      '    6.2702       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.137       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3838       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.080       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1894       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4933       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.970       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .73874       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.6393       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=   5287.015     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     4034 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.903       -.78167E-06** at limit **
   2  Prefactor     43.224        198.81        .43103E-05    .72588E-04
   3  Prefactor     13.085        12.489        .15428E-06   -.53977E-05
   4  Prefactor     1.4316        14.940        .15163E-05   -.11891E-04
   5  Prefactor     .10000E-03    7.1000        .25665E-07** at limit **
   6  Prefactor     45.156        31.295        .21803E-06   -.34865E-04
   7  Prefactor     .10000E-03    35.816       -.52328E-07** at limit **
   8  Prefactor     14.988        61.505       -.28296E-05   -.30488E-04
   9  Prefactor     149.48        61.581        .45989E-07   -.42206E-04
  10  Prefactor     .10000E-03    17.646       -.34927E-06** at limit **
  11  Prefactor     36.112        35.674        .30617E-06   -.82637E-04
  12  norm          1.7410        5.9752       -.43692E-06   -.18387E-04
  13  norm          6.2748        6.7460        .54004E-05   -.11474E-03
  14  Prefactor     50.137        58.006       -.89581E-06   -.38146E-05
  15  norm          3.1041        221.61       -.25183E-04   -.19195E-04
  16  Prefactor     .10000E-03    67.459       -.51916E-07** at limit **
  17  norm          1.6097        .97747       -.36875E-06   -.24239E-03
  18  Prefactor     6.3835        7.4536        .71155E-07    .52925E-04
  19  Prefactor     .10000E-03    8.4408       -.39853E-07** at limit **
  20  Prefactor     13.079        16.461        .17918E-05   -.14609E-04
  21  norm          6.1897        2.6359       -.42891E-07    .11754E-05
  22  Prefactor     8.4949        11.337        .19914E-07    .42900E-05
  23  Prefactor     .10000E-03    17.689       -.57363E-07** at limit **
  24  Prefactor     .10000E-03    41.070        .54880E-07** at limit **
  25  norm          20.966        20.584        .55605E-07    .91917E-05
  26  Prefactor     .10000E-03    22.430       -.54915E-06** at limit **
  27  Normalizat    .73826        .31502       -.40258E-05    .14945E-04
  28  Prefactor     1.6396        .25192        .89698E-06   -.42573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.2238
  Prefactor  = 13.0853
  Prefactor  = 1.43159
  Prefactor  = 0.0001
  Prefactor  = 45.1562
  Prefactor  = 0.0001
  Prefactor  = 14.9884
  Prefactor  = 149.477
  Prefactor  = 0.0001
  Prefactor  = 36.1118
  norm       = 1.74097
  norm       = 6.2748
  Prefactor  = 50.1368
  norm       = 3.10406
  Prefactor  = 0.0001
  norm       = 1.60966
  Prefactor  = 6.38355
  Prefactor  = 0.0001
  Prefactor  = 13.0793
  norm       = 6.18968
  Prefactor  = 8.49493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9656
  Prefactor  = 0.0001
  Normalizat = 0.738257
  Prefactor  = 1.63963
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.015     FROM HESSE     STATUS=OK           527 CALLS     4561 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.224        197.89        .30615E-03   -1.4392    
   3  Prefactor     13.085        12.487        .11074E-03   -1.4984    
   4  Prefactor     1.4316        14.756        .36058E-03   -1.5469    
   5  Prefactor     .10000E-03    7.1094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.156        31.280        .59670E-04   -1.4363    
   7  Prefactor     .10000E-03    35.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.988        61.308        .10306E-03   -1.4933    
   9  Prefactor     149.48        61.491        .16482E-03   -1.3257    
  10  Prefactor     .10000E-03    17.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.112        34.093        .66715E-04   -1.4505    
  12  norm          1.7410        5.6728        .24314E-03   -1.5444    
  13  norm          6.2748        6.7506        .79565E-03   -1.5207    
  14  Prefactor     50.137        58.002        .56636E-04   -1.4291    
  15  norm          3.1041        220.73        .22630E-03   -1.5356    
  16  Prefactor     .10000E-03    67.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6097        .95985        .47723E-04   -1.5454    
  18  Prefactor     6.3835        7.4532        .15886E-03   -1.5203    
  19  Prefactor     .10000E-03    8.4423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.079        16.440        .55377E-03   -1.4985    
  21  norm          6.1897        2.6308        .72168E-04   -1.5210    
  22  Prefactor     8.4949        11.310        .13755E-03   -1.5125    
  23  Prefactor     .10000E-03    17.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    41.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.966        20.585        .87467E-04   -1.4792    
  26  Prefactor     .10000E-03    22.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .73826        .35429        .43134E-03   -1.0240    
  28  Prefactor     1.6396        .28938        .26012E-03   -.73701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49918e-10
Minuit parameter uncertainties:
  1  0.000125294
  2  185.995
  3  12.4893
  4  9.19501
  5  2.72093e-06
  6  31.291
  7  8.122e-05
  8  60.7351
  9  61.5169
  10  7.01323e-05
  11  34.1109
  12  5.6745
  13  6.75141
  14  58.0673
  15  52.5534
  16  3.44022e-06
  17  0.95986
  18  7.45425
  19  9.82229e-07
  20  16.4461
  21  2.63083
  22  11.3132
  23  2.00319e-05
  24  0.000207892
  25  20.5922
  26  5.85908e-05
  27  0.355395
  28  0.289671
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.640e+00  2.897e-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.383e-01  3.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 9.66e-08 +/- 1.04e-07
Energy Flux (Fixed Index): 2.23e-05 +/- 2.40e-05

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

Saving results to:
/scratch/kocevski/538478/likelihoodResults_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.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) = 5285.65888205
delta logL = 1.35571780378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5285.64296669
delta logL = 1.37163316319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11430       1.0000         .10000E-03   10000.    
     2 'alpha     '    .31205       1.0000          .0000       5.0000    
     3 'Normalizat'    .80743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6168       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=   5285.643     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11296        .17517        .56352E-02   -.80732E-03
   2  alpha         .30883        .50274        .37870       -.17627E-05
   3  Normalizat    .80758        .28425        .93605E-01    .21645E-04
   4  Prefactor     1.6170        .24437        .59233E-01   -.56414E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.112962
  alpha      = 0.308833
  Normalizat = 0.807578
  Prefactor  = 1.61701
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.643     FROM HESSE     STATUS=OK            35 CALLS      280 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11296        .33204        .23843E-03   -1.5641    
   2  alpha         .30883        .73929        .19702E-01   -1.0685    
   3  Normalizat    .80758        .32695        .41469E-03   -.99788    
   4  Prefactor     1.6170        .28190        .26190E-03   -.74313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2979e-09
Minuit parameter uncertainties:
  1  0.332043
  2  0.796075
  3  0.327747
  4  0.282181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538478': 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) = 5285.64295717
delta logL = 1.37164268726

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.617e+00  2.822e-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:  8.076e-01  3.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 185.627 4.239
Photon Index (Free Index): 0.31 +/- 0.80
Photon Flux (Free Index): 6.17e-09 +/- 6.88e-09
Energy Flux (Free Index): 1.11e-04 +/- 1.55e-04

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/538478/cmap_HighResolution_433209601_433468801_4FGL_J1222.5+0414_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', comment='SUCCESS', photon_flux='9.66e-08', energy_flux2='1.11e-04', photon_flux_error='1.04e-07', dlogl='1.37e+00', energy_flux='2.23e-05', photon_flux2='6.17e-09', job_status='DONE', time_completed='2021-09-05 10:36:32.497884', photon_index_error2='0.80', photon_index2='0.31', ts='1.56', fit_tolerance='1e-08', GAL='1.64', photon_index_error='0.00', photon_flux_upper_limit='2.80e-07', energy_flux_error2='1.55e-04', EG='0.74', time_epoch_completed='1630863392.5', return_code='0', job_id='538478', GAL2='1.62', EG2='0.81', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='6.88e-09', ts2='4.28', photon_index='2.69' WHERE bin_id='748' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:36:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 538478: <4FGL_J1222.5+0414_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin748 185.627 4.2389 433209601 433468801 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 :                                   789.00 sec.
    Max Memory :                                 1241 MB
    Average Memory :                             274.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

