aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 22 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin1745
RA = 185.627, Dec = 4.2389
tmin = 691632001, tmax = 691891201
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='645366', job_status='RUN', time_executed='2022-12-05 00:35:50.166609', time_epoch_executed='1670229350.17' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645366/ft1_4FGL_J1222.5+0414_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645366/ft2_4FGL_J1222.5+0414_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645366/ft1_4FGL_J1222.5+0414_daily_bin1745.fits outfile=/scratch/kocevski/645366/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin1745.fits ra=185.627 dec=4.2389 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.34
user 2.16
sys 0.17

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

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

Number of photons that the gtmktime cut: 893

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645366/ft1_filtered_4FGL_J1222.5+0414_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645366/ft2_4FGL_J1222.5+0414_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/645366/ltcube_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.fits outfile=/scratch/kocevski/645366/expmap_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.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/645366/ltcube_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.fits
.....................!
real 191.04
user 186.17
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/645366/ft1_filtered_4FGL_J1222.5+0414_daily_bin1745.fits scfile=/scratch/kocevski/645366/ft2_4FGL_J1222.5+0414_daily_bin1745.fits outfile=/scratch/kocevski/645366/cmap_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645366/ft1_filtered_4FGL_J1222.5+0414_daily_bin1745.fits scfile=/scratch/kocevski/645366/ft2_4FGL_J1222.5+0414_daily_bin1745.fits outfile=/scratch/kocevski/645366/cmap_HighResolution_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/645366/ft1_filtered_4FGL_J1222.5+0414_daily_bin1745.fits', '/scratch/kocevski/645366/ft2_4FGL_J1222.5+0414_daily_bin1745.fits', expMap='/scratch/kocevski/645366/expmap_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.fits', expCube='/scratch/kocevski/645366/ltcube_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/645366/Model_4FGL_J1222.5+0414_daily_bin1745.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  0.000e+00  1.000e+06 ( 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 -5.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/645366/ft1_filtered_4FGL_J1222.5+0414_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/645366/ft2_4FGL_J1222.5+0414_daily_bin1745.fits
Exposure map: /scratch/kocevski/645366/expmap_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.fits
Exposure cube: /scratch/kocevski/645366/ltcube_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/645366/Model_4FGL_J1222.5+0414_daily_bin1745.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) = 9686.06433985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.189       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48998E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11961       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9653       1.0000          .0000       .10000E+07
     5 'Prefactor '    .85345E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19973       1.0000          .0000       .10000E+07
     7 'Prefactor '    33.617       1.0000          .0000       .10000E+07
     8 'Prefactor '    35.379       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13796E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14200E-05   1.0000          .0000       .10000E+07
    11 'norm      '    1.2686       1.0000          .0000       .10000E+07
    12 'norm      '    2.0485       1.0000          .0000       .10000E+07
    13 'Prefactor '    26.298       1.0000          .0000       .10000E+07
    14 'norm      '    .20474E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .73711       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.5247       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.3233       1.0000          .0000       .10000E+07
    18 'norm      '    .24218       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11801       1.0000          .0000       .10000E+07
    20 'norm      '    12.520       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.0763       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76449       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9685.949     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1955 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.652        56.232       -.28136E-06    .36409E-02
   2  Prefactor     .17208E-07    6.2459        .18890E-06** at limit **
   3  Prefactor     .15100        15.995       -.14756E-05** at limit **
   4  Prefactor     4.0066        7.8629        .16530E-06    .88086E-04
   5  Prefactor     .72164E-09    6.9175       -.54264E-06** at limit **
   6  Prefactor     .68404E-05    10.177       -.55349E-06** at limit **
   7  Prefactor     34.688        27.245        .21496E-06    .18694E-01
   8  Prefactor     35.228        4.9329       -.77961E-07    .30247E-01
   9  Prefactor     .40523E-08    7.5782       -.13506E-06** at limit **
  10  Prefactor     .22204E-08    4.0733       -.32793E-06** at limit **
  11  norm          1.2679        1.2357       -.81156E-07    .39867E-03
  12  norm          2.0450        1.8053        .17605E-06   -.11697E-02
  13  Prefactor     26.414        1.4434       -.24341E-08    .74798E-02
  14  norm          .11213E-07    19.009       -.82951E-06** at limit **
  15  norm          .73701        .34332        .62008E-07    .37627E-02
  16  Prefactor     6.4964        6.5941       -.13436E-06   -.36213E-04
  17  Prefactor     4.3242        4.3285        .93824E-07    .11167E-02
  18  norm          .24162        .98524        .28296E-06** at limit **
  19  Prefactor     .28736E-01    36.184        .11481E-05** at limit **
  20  norm          12.496        11.455        .32706E-06    .73928E-02
  21  Prefactor     2.9676        9.6268       -.35298E-06   -.34048E-03
  22  Normalizat    1.3127        .18731       -.20000E-05    .29622E-05
  23  Prefactor     .76497        .15005        .20814E-05   -.19902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.6517
  Prefactor  = 1.72085e-08
  Prefactor  = 0.151
  Prefactor  = 4.00663
  Prefactor  = 7.21645e-10
  Prefactor  = 6.84042e-06
  Prefactor  = 34.6885
  Prefactor  = 35.2277
  Prefactor  = 4.05231e-09
  Prefactor  = 2.22045e-09
  norm       = 1.26786
  norm       = 2.04504
  Prefactor  = 26.4139
  norm       = 1.12133e-08
  norm       = 0.737011
  Prefactor  = 6.49639
  Prefactor  = 4.32425
  norm       = 0.241624
  Prefactor  = 0.0287357
  norm       = 12.4965
  Prefactor  = 2.96763
  Normalizat = 1.31265
  Prefactor  = 0.764966
 **********
 **   18 **HESSE 
 **********

 FCN=   9685.949     FROM HESSE     STATUS=OK           440 CALLS     2395 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.652        56.446        .16400E-03   -1.5590    
   2  Prefactor     .17208E-07    6.3954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15100        2.0303        .73954E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0066        7.8790        .50629E-03   -1.5668    
   5  Prefactor     .72164E-09    6.9843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .68404E-05    46.070        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.688        27.547        .17249E-03   -1.5590    
   8  Prefactor     35.228        18.365        .16814E-03   -1.5589    
   9  Prefactor     .40523E-08    10.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-08    11.391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2679        1.2439        .98793E-03   -1.5685    
  12  norm          2.0450        1.8218        .72203E-03   -1.5679    
  13  Prefactor     26.414        22.259        .19504E-03   -1.5605    
  14  norm          .11213E-07    19.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .73701        .34975        .57745E-03   -1.5691    
  16  Prefactor     6.4964        6.6010        .39265E-03   -1.5657    
  17  Prefactor     4.3242        4.3441        .48424E-03   -1.5666    
  18  norm          .24162        .76018        .26696E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28736E-01    2.3539        .94086E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.496        16.678        .28284E-03   -1.5637    
  21  Prefactor     2.9676        9.7501        .57805E-03   -1.5674    
  22  Normalizat    1.3127        .16056        .55510E-01   -.83190    
  23  Prefactor     .76497        .12795        .43253E-01   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81371e-07
Minuit parameter uncertainties:
  1  56.4469
  2  0.000663018
  3  1.10738
  4  7.879
  5  0.000140287
  6  0.0355043
  7  27.5473
  8  18.3649
  9  0.000408369
  10  0.000318857
  11  1.2439
  12  1.82176
  13  22.2589
  14  0.000923613
  15  0.349747
  16  6.60097
  17  4.3441
  18  0.760185
  19  0.520157
  20  16.6781
  21  9.75012
  22  0.160619
  23  0.127999
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.045e+00  1.822e+00  0.000e+00  1.000e+06 ( 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 -5.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:  7.650e-01  1.280e-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.313e+00  1.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 3.15e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 7.27e-06 +/- 6.47e-06

TS (Fixed Index): 2.38
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/645366/likelihoodResults_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.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) = 9685.71699535
delta logL = 0.232155801468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9685.71361794
delta logL = 0.235533214678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9404       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1431       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75693       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=   9685.714     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9404        1.7238        .74501E-03    .24390E-02
   2  alpha         2.1430        .58204        .41694       -.47473E-04
   3  Normalizat    1.3257        .15240        .55282E-01    .69575E-05
   4  Prefactor     .75693        .12695        .43154E-01    .28379E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94044
  alpha      = 2.143
  Normalizat = 1.32575
  Prefactor  = 0.756931
 **********
 **   18 **HESSE 
 **********

 FCN=   9685.714     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9404        1.8067        .11544E-04   -1.5680    
   2  alpha         2.1430        .72127        .22292E-01   -.14329    
   3  Normalizat    1.3257        .17853        .24445E-03   -.82801    
   4  Prefactor     .75693        .14835        .26062E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34416e-12
Minuit parameter uncertainties:
  1  1.80672
  2  0.731895
  3  0.178616
  4  0.148425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645366': 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) = 9685.71361792
delta logL = 0.235533231194

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.940e+00  1.807e+00  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  2.143e+00  7.319e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00 -5.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:  7.569e-01  1.484e-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.326e+00  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.14 +/- 0.73
Photon Flux (Free Index): 2.24e-08 +/- 2.40e-08
Energy Flux (Free Index): 8.13e-06 +/- 7.25e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/645366/cmap_HighResolution_691632001_691891201_4FGL_J1222.5+0414_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', comment='SUCCESS', photon_flux='3.15e-08', energy_flux2='8.13e-06', photon_flux_error='2.80e-08', dlogl='2.36e-01', energy_flux='7.27e-06', photon_flux2='2.24e-08', job_status='DONE', time_completed='2022-12-05 00:49:34.728372', photon_index_error2='0.73', photon_index2='2.14', ts='2.38', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.25e-06', EG='1.31', time_epoch_completed='1670230174.73', return_code='0', job_id='645366', GAL2='0.76', EG2='1.33', return_code2='0', energy_flux_error='6.47e-06', photon_flux_error2='2.40e-08', ts2='2.83', photon_index='2.69' WHERE bin_id='1745' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:49:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 645366: <4FGL_J1222.5+0414_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:35:17 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:35:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:35:18 2022
Terminated at Mon Dec  5 00:49:35 2022
Results reported at Mon Dec  5 00:49:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin1745 185.627 4.2389 691632001 691891201 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 :                                   826.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            858 sec.

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

