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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin574
RA = 185.627, Dec = 4.2389
tmin = 388108801, tmax = 388368001
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='537208', job_status='RUN', time_executed='2021-09-05 10:19:13.752027', time_epoch_executed='1630862353.75' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537208/ft1_4FGL_J1222.5+0414_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537208/ft2_4FGL_J1222.5+0414_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537208/ft1_4FGL_J1222.5+0414_daily_bin574.fits outfile=/scratch/kocevski/537208/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin574.fits ra=185.627 dec=4.2389 rad=12.0 tmin=388108801.0 tmax=388368001.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.46
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537208/ft2_4FGL_J1222.5+0414_daily_bin574.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/537208/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/537208/ft1_filtered_4FGL_J1222.5+0414_daily_bin574.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.52
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537208/ft1_filtered_4FGL_J1222.5+0414_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/537208/ft2_4FGL_J1222.5+0414_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/537208/ltcube_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.fits outfile=/scratch/kocevski/537208/expmap_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.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/537208/ltcube_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.fits
.....................!
real 190.47
user 185.07
sys 5.01

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/537208/ft1_filtered_4FGL_J1222.5+0414_daily_bin574.fits scfile=/scratch/kocevski/537208/ft2_4FGL_J1222.5+0414_daily_bin574.fits outfile=/scratch/kocevski/537208/cmap_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537208/ft1_filtered_4FGL_J1222.5+0414_daily_bin574.fits scfile=/scratch/kocevski/537208/ft2_4FGL_J1222.5+0414_daily_bin574.fits outfile=/scratch/kocevski/537208/cmap_HighResolution_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    112.41       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.854       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0525       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0030       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14804E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1409       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8307       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1767       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86227       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=   5388.547     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3482 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7220        32.889        .78107E-06   -.44415E-05
   2  Prefactor     .10000E-03    31.399       -.50000E-06** at limit **
   3  Prefactor     6.7718        9.1071        .10703E-06   -.61441E-05
   4  Prefactor     .10000E-03    4.6034        .16104E-07** at limit **
   5  Prefactor     .10000E-03    5.9680        .13559E-06** at limit **
   6  Prefactor     .10000E-03    20.894       -.17114E-05** at limit **
   7  Prefactor     112.43        89.584        .17271E-05    .66695E-04
   8  Prefactor     .10000E-03    12.481        .39416E-06** at limit **
   9  Prefactor     12.857        20.890       -.61026E-07   -.30520E-04
  10  Prefactor     1.6274        31.271        .16634E-05   -.90860E-05
  11  Prefactor     10.400        13.733       -.12456E-07   -.16849E-04
  12  norm          1.0499        2.1778        .36520E-06    .50147E-03
  13  norm          5.8298        4.3555        .91279E-07   -.76373E-04
  14  Prefactor     .10000E-03    46.379       -.28958E-05** at limit **
  15  norm          4.0100        62.971       -.23732E-06   -.14811E-04
  16  Prefactor     .10000E-03    297.45       -.23105E-05** at limit **
  17  norm          .10000E-03    .40236        .12368E-08** at limit **
  18  Prefactor     .55045        7.0662        .71150E-06   -.18707E-03
  19  Prefactor     .10000E-03    9.1333       -.39465E-07** at limit **
  20  Prefactor     .10000E-03    3.8736        .65060E-08** at limit **
  21  norm          5.1413        2.3009        .54244E-07   -.98064E-04
  22  Prefactor     6.9211        7.6202        .25420E-06   -.36578E-04
  23  Prefactor     .10000E-03    11.996       -.29815E-06** at limit **
  24  Prefactor     .10000E-03    51.495        .25415E-05** at limit **
  25  norm          .10000E-03    22.478        .22393E-05** at limit **
  26  Prefactor     7.8304        13.250        .36551E-05   -.10899E-03
  27  Normalizat    1.1768        .22003       -.16031E-05   -.11453E-04
  28  Prefactor     .86222        .16993        .23322E-06   -.10283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72198
  Prefactor  = 0.0001
  Prefactor  = 6.77182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 112.433
  Prefactor  = 0.0001
  Prefactor  = 12.8573
  Prefactor  = 1.62741
  Prefactor  = 10.3995
  norm       = 1.04985
  norm       = 5.82977
  Prefactor  = 0.000100003
  norm       = 4.01002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.550452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1413
  Prefactor  = 6.92106
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 7.83042
  Normalizat = 1.1768
  Prefactor  = 0.862217
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.547     FROM HESSE     STATUS=OK           527 CALLS     4009 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7220        32.869        .20933E-03   -1.5322    
   2  Prefactor     .10000E-03    31.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7718        9.1017        .15418E-03   -1.5187    
   4  Prefactor     .10000E-03    4.6385        .15379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9730        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     112.43        90.103        .18971E-03   -1.3583    
   8  Prefactor     .10000E-03    12.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.857        20.858        .11173E-03   -1.4991    
  10  Prefactor     1.6274        31.380        .33133E-03   -1.5453    
  11  Prefactor     10.400        13.118        .12431E-03   -1.5063    
  12  norm          1.0499        1.7386        .14079E-02   -1.5503    
  13  norm          5.8298        4.3095        .11015E-03   -1.5225    
  14  Prefactor     .10000E-03    47.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0100        61.824        .20157E-03   -1.5307    
  16  Prefactor     .10000E-03    298.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .78402        .85099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55045        20.483        .37227E-02   -1.5560    
  19  Prefactor     .10000E-03    9.1465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8832        .14108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1413        2.2872        .68915E-04   -1.5254    
  22  Prefactor     6.9211        7.6136        .15251E-03   -1.5182    
  23  Prefactor     .10000E-03    12.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    52.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    23.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.8304        13.327        .71646E-03   -1.5148    
  27  Normalizat    1.1768        .25534        .26217E-03   -.87323    
  28  Prefactor     .86222        .19846        .24965E-03   -.97474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13786e-10
Minuit parameter uncertainties:
  1  22.1374
  2  0.000102394
  3  9.10357
  4  4.57382e-06
  5  2.04614e-06
  6  0.00024346
  7  90.2126
  8  5.30636e-05
  9  20.8694
  10  14.3007
  11  13.1212
  12  1.73869
  13  4.30974
  14  0.000698827
  15  31.5292
  16  0.00134513
  17  5.76723e-06
  18  6.71746
  19  4.43619e-06
  20  1.38354e-06
  21  2.28727
  22  7.61466
  23  3.62637e-05
  24  0.000569848
  25  0.000379852
  26  13.3317
  27  0.255606
  28  0.198627
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  5.830e+00  4.310e+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:  8.622e-01  1.986e-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.177e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 8.97e-08 +/- 6.63e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/537208/likelihoodResults_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.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) = 5387.38648205
delta logL = 1.16046071559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5387.36271734
delta logL = 1.18422542748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2378       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9327       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91624       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=   5387.363     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      289 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2380        3.7572        .69280E-04   -.47966E-03
   2  alpha         3.9327        .95970        .19228E-01   -.18011E-04
   3  Normalizat    1.0790        .24903        .27176E-03   -.20290E-04
   4  Prefactor     .91615        .20026        .24297E-03    .41925E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.23801
  alpha      = 3.93266
  Normalizat = 1.07899
  Prefactor  = 0.916146
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.363     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2380        3.4567        .27712E-05   -1.5296    
   2  alpha         3.9327        .88772        .76911E-03    .61024    
   3  Normalizat    1.0790        .24943        .10870E-04   -.90429    
   4  Prefactor     .91615        .20042        .97187E-05   -.95579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92362e-11
Minuit parameter uncertainties:
  1  3.45685
  2  0.918144
  3  0.249703
  4  0.200581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537208': 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) = 5387.36271722
delta logL = 1.18422554995

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.238e+00  3.457e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.933e+00  9.181e-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.161e-01  2.006e-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.079e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.41
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.93 +/- 0.92
Photon Flux (Free Index): 1.73e-07 +/- 9.21e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.34e-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/537208/cmap_HighResolution_388108801_388368001_4FGL_J1222.5+0414_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', photon_flux='8.97e-08', energy_flux2='2.66e-05', photon_flux_error='6.63e-08', dlogl='1.18e+00', energy_flux='2.07e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-05 10:31:44.814300', photon_index_error2='0.92', photon_index2='3.93', ts='3.67', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='2.10e-07', energy_flux_error2='1.34e-05', EG='1.18', time_epoch_completed='1630863104.81', return_code='0', job_id='537208', GAL2='0.92', EG2='1.08', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='9.21e-08', ts2='6.41', photon_index='2.69' WHERE bin_id='574' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 537208: <4FGL_J1222.5+0414_daily_bin574> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin574 185.627 4.2389 388108801 388368001 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

