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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin1774
RA = 185.627, Dec = 4.2389
tmin = 699148801, tmax = 699408001
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='681425', job_status='RUN', time_executed='2023-03-02 00:41:46.710721', time_epoch_executed='1677746506.71' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681425/ft1_4FGL_J1222.5+0414_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681425/ft2_4FGL_J1222.5+0414_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681425/ft1_4FGL_J1222.5+0414_daily_bin1774.fits outfile=/scratch/kocevski/681425/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin1774.fits ra=185.627 dec=4.2389 rad=12.0 tmin=699148801.0 tmax=699408001.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.81
user 2.58
sys 0.20

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

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

Number of photons that the gtmktime cut: 186

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681425/ft1_filtered_4FGL_J1222.5+0414_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681425/ft2_4FGL_J1222.5+0414_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681425/ltcube_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.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/681425/ft2_4FGL_J1222.5+0414_daily_bin1774.fits
.....................!
real 14.29
user 13.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681425/ft1_filtered_4FGL_J1222.5+0414_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681425/ft2_4FGL_J1222.5+0414_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681425/ltcube_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.fits outfile=/scratch/kocevski/681425/expmap_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.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/681425/ltcube_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.fits
.....................!
real 190.53
user 184.67
sys 5.48

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/681425/ft1_filtered_4FGL_J1222.5+0414_daily_bin1774.fits scfile=/scratch/kocevski/681425/ft2_4FGL_J1222.5+0414_daily_bin1774.fits outfile=/scratch/kocevski/681425/cmap_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.627 yref=4.2389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681425/ft1_filtered_4FGL_J1222.5+0414_daily_bin1774.fits scfile=/scratch/kocevski/681425/ft2_4FGL_J1222.5+0414_daily_bin1774.fits outfile=/scratch/kocevski/681425/cmap_HighResolution_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75115E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .58864E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .77240E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .22865E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .56538E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10961E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49460E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23398E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43299E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32907E-06   1.0000          .0000       .10000E+07
    11 'norm      '    1.5321       1.0000          .0000       .10000E+07
    12 'norm      '    4.4734       1.0000          .0000       .10000E+07
    13 'Prefactor '    .55234E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .13713E-04   1.0000          .0000       .10000E+07
    15 'norm      '    2.5531       1.0000          .0000       .10000E+07
    16 'Prefactor '    13.774       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.1081       1.0000          .0000       .10000E+07
    18 'norm      '    4.7336       1.0000          .0000       .10000E+07
    19 'Prefactor '    10.122       1.0000          .0000       .10000E+07
    20 'norm      '    .20095E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    36.459       1.0000          .0000       .10000E+07
    22 'Normalizat'    .13404E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4570       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=   2321.585     FROM MIGRAD    STATUS=CONVERGED    271 CALLS     2408 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61118E-04    103.51        .14357E-05** at limit **
   2  Prefactor     .55511E-10    19.712        .12561E-06** at limit **
   3  Prefactor     .50445E-05    54.852       -.75691E-06** at limit **
   4  Prefactor     .92454E-05    50.922        .47848E-06** at limit **
   5  Prefactor     .55511E-10    23.003        .16128E-06** at limit **
   6  Prefactor     .55385E-04    65.304        .35071E-06** at limit **
   7  Prefactor     .22060E-04    47.102       -.52003E-06** at limit **
   8  Prefactor     .17486E-07    29.677       -.21769E-06** at limit **
   9  Prefactor     .38166E-05    40.965        .29895E-06** at limit **
  10  Prefactor      .0000        12.198       -.15480E-07** at limit **
  11  norm          1.5327        4.0344        .46212E-08   -.11350E-03
  12  norm          4.4644        10.080       -.14942E-06   -.99925E-03
  13  Prefactor     .99537E-06    38.140       -.46368E-07** at limit **
  14  norm          .91540E-05    522.96        .43982E-05** at limit **
  15  norm          2.5513        1.4203       -.46504E-07   -.42020E-02
  16  Prefactor     13.761        2.3756        .50372E-08   -.96273E-02
  17  Prefactor     4.1225        16.310        .37902E-06   -.40172E-03
  18  norm          4.7320        3.0334        .91476E-08   -.19267E-03
  19  Prefactor     10.115        11.773       -.35633E-07   -.22199E-03
  20  norm           .0000        16.451       -.73882E-07** at limit **
  21  Prefactor     36.414        3.6482        .11809E-07    .68179E-02
  22  Normalizat    .16239E-01    7.4481        .44312E-04   -.21426E-05
  23  Prefactor     1.4550        .32630       -.52003E-05   -.54164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11176e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 5.04446e-06
  Prefactor  = 9.24544e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 5.5385e-05
  Prefactor  = 2.20596e-05
  Prefactor  = 1.7486e-08
  Prefactor  = 3.81661e-06
  Prefactor  = 0
  norm       = 1.53266
  norm       = 4.46439
  Prefactor  = 9.9537e-07
  norm       = 9.15396e-06
  norm       = 2.55126
  Prefactor  = 13.7607
  Prefactor  = 4.12248
  norm       = 4.732
  Prefactor  = 10.1153
  norm       = 0
  Prefactor  = 36.4138
  Normalizat = 0.0162386
  Prefactor  = 1.455
 **********
 **   18 **HESSE 
 **********

 FCN=   2321.585     FROM HESSE     STATUS=NOT POSDEF   414 CALLS     2822 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61118E-04    151.83        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    18.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .50445E-05    96.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92454E-05    56.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    21.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55385E-04    129.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22060E-04    74.008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17486E-07    28.179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38166E-05    42.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        11.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5327        4.5062        .86180E-03   -1.5683    
  12  norm          4.4644        12.567        .47583E-03   -1.5666    
  13  Prefactor     .99537E-06    36.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .91540E-05    500.64        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5513        2.2087        .63874E-03   -1.5676    
  16  Prefactor     13.761        33.267        .26962E-03   -1.5634    
  17  Prefactor     4.1225        15.943        .49713E-03   -1.5667    
  18  norm          4.7320        4.1100        .46224E-03   -1.5664    
  19  Prefactor     10.115        16.394        .31471E-03   -1.5644    
  20  norm           .0000        15.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.414        74.554        .16563E-03   -1.5587    
  22  Normalizat    .16239E-01    9.2751        .24641       -1.5208    
  23  Prefactor     1.4550        1.6629        .44501E-01   -.78808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39799e-06
Minuit parameter uncertainties:
  1  0.192666
  2  7.66991e-05
  3  0.044113
  4  0.0456212
  5  8.35151e-05
  6  0.169187
  7  0.0808118
  8  0.00140322
  9  0.0253691
  10  1.2016e-05
  11  4.50622
  12  12.5667
  13  0.0121285
  14  0.135404
  15  2.20867
  16  33.2671
  17  15.9427
  18  4.10996
  19  16.3938
  20  3.5275e-05
  21  74.5561
  22  0.989733
  23  1.73167
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2321.58511176

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.464e+00  1.257e+01  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:  1.455e+00  1.732e+00  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.624e-02  9.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/681425/likelihoodResults_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.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): 102
logL (Free Index) = 2321.49372117
delta logL = 0.0913905928637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2321.48954523
delta logL = 0.0955665306242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1567       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1467       1.0000          .0000       5.0000    
     3 'Normalizat'    .34157E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4385       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2321.490     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      277 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1445        8.8448        .16941E-04   -.42277E-04
   2  alpha         2.1484        1.0497        .83366E-02    .15294E-05
   3  Normalizat    .32947E-01    6.1102        .12292E-01    .90063E-05
   4  Prefactor     1.4393        .41464        .19747E-03    .12407E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14445
  alpha      = 2.14843
  Normalizat = 0.0329473
  Prefactor  = 1.43931
 **********
 **   18 **HESSE 
 **********

 FCN=   2321.490     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1445        8.8888        .67766E-06   -1.5663    
   2  alpha         2.1484        1.0516        .33346E-03   -.14109    
   3  Normalizat    .32947E-01    1.6081        .49167E-03   -1.4749    
   4  Prefactor     1.4393        .31693        .78987E-05   -.79254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34758e-12
Minuit parameter uncertainties:
  1  8.88882
  2  1.08608
  3  0.395846
  4  0.317365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681425': 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) = 2321.48953717
delta logL = 0.0955745970291

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  5.144e+00  8.889e+00  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  2.148e+00  1.086e+00  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:  1.439e+00  3.174e-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:  3.295e-02  3.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
Ra Dec: 185.627 4.239

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/681425/cmap_HighResolution_699148801_699408001_4FGL_J1222.5+0414_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-05', job_status='DONE', photon_flux_upper_limit='3.91e-07', time_completed='2023-03-02 00:49:08.036636', job_id='681425', GAL2='1.44', fit_tolerance='1e-08', EG2='0.03', EG='0.02', time_epoch_completed='1677746948.04', return_code2='0', ts='0.29', comment='SUCCESS', return_code='102', GAL='1.45', dlogl='9.56e-02', ts2='0.49', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1774' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:49:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 681425: <4FGL_J1222.5+0414_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:21 2023
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:25 2023
Terminated at Thu Mar  2 00:49:08 2023
Results reported at Thu Mar  2 00:49:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin1774 185.627 4.2389 699148801 699408001 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 :                                   444.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            527 sec.

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

