/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 210 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 = 7652
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin426
RA = 185.627, Dec = 4.2389
tmin = 349747201, tmax = 350006401
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='536967', job_status='RUN', time_executed='2021-09-05 10:19:17.050829', time_epoch_executed='1630862357.05' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536967

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536967/ft1_4FGL_J1222.5+0414_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536967/ft2_4FGL_J1222.5+0414_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536967/ft1_4FGL_J1222.5+0414_daily_bin426.fits outfile=/scratch/kocevski/536967/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin426.fits ra=185.627 dec=4.2389 rad=12.0 tmin=349747201.0 tmax=350006401.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.45
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536967/ft1_filtered_4FGL_J1222.5+0414_daily_bin426.fits" evtable="EVENTS" scfile=/scratch/kocevski/536967/ft2_4FGL_J1222.5+0414_daily_bin426.fits sctable="SC_DATA" outfile=/scratch/kocevski/536967/ltcube_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.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/536967/ft2_4FGL_J1222.5+0414_daily_bin426.fits
.....................!
real 13.15
user 12.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536967/ft1_filtered_4FGL_J1222.5+0414_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/536967/ft2_4FGL_J1222.5+0414_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/536967/ltcube_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.fits outfile=/scratch/kocevski/536967/expmap_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.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/536967/ltcube_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.fits
.....................!
real 190.03
user 184.71
sys 4.94

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/536967/ft1_filtered_4FGL_J1222.5+0414_daily_bin426.fits scfile=/scratch/kocevski/536967/ft2_4FGL_J1222.5+0414_daily_bin426.fits outfile=/scratch/kocevski/536967/cmap_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.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.55
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.445       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18121       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9536       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    149.11       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6722       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3834       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4396       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83494       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=   6087.259     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2963 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9238        .56485E-06** at limit **
   2  Prefactor     23.970        1.0933       -.15869E-06    .12153E-02
   3  Prefactor     .10000E-03    2.8174        .71027E-06** at limit **
   4  Prefactor     16.873        1.0372       -.23370E-07   -.62590E-03
   5  Prefactor     .10001E-03    42.936       -.16824E-04** at limit **
   6  Prefactor     15.526        1.2679       -.39194E-06    .26992E-03
   7  Prefactor     48.444        1.2112       -.64868E-07    .14417E-02
   8  Prefactor     22.455        1.4654        .40318E-07    .18693E-03
   9  Prefactor     12.902        6.4959       -.30844E-05    .57322E-02
  10  Prefactor     20.670        1.8747        .49636E-06   -.28054E-02
  11  Prefactor     .10637E-03    1797.8       -.32364E-04** at limit **
  12  norm          1.9702        2.1488       -.11935E-05    .10950E-04
  13  norm          3.4560        2.8366       -.27327E-06   -.79851E-05
  14  Prefactor     .10000E-03    20.440        .65323E-05** at limit **
  15  norm          .10009E-03    10.108        .13758E-04** at limit **
  16  Prefactor     149.11        1.0708       -.37043E-07    .12871E-02
  17  norm          1.6730        .60535       -.12269E-06    .70209E-05
  18  Prefactor     13.908        1.4363        .40449E-06   -.85210E-04
  19  Prefactor     .10004E-03    15.240       -.15166E-04** at limit **
  20  Prefactor     4.3854        1.1273       -.17329E-06   -.21383E-03
  21  norm          5.4387        2.0804        .12350E-06    .63258E-05
  22  Prefactor     .10008E-03    9.0754        .50954E-05** at limit **
  23  Prefactor     .10021E-03    7.0145        .53914E-07** at limit **
  24  Prefactor     .10002E-03    23.434       -.15807E-04** at limit **
  25  norm          .10000E-03    6.8338        .13256E-05** at limit **
  26  Prefactor     .10006E-03    12.778       -.44141E-05** at limit **
  27  Normalizat    1.0318        .23206        .13540E-05   -.15840E-04
  28  Prefactor     .83484        .18787       -.29356E-05   -.31688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.9704
  Prefactor  = 0.0001
  Prefactor  = 16.8733
  Prefactor  = 0.000100009
  Prefactor  = 15.5264
  Prefactor  = 48.444
  Prefactor  = 22.4548
  Prefactor  = 12.9017
  Prefactor  = 20.6697
  Prefactor  = 0.000106372
  norm       = 1.97022
  norm       = 3.45599
  Prefactor  = 0.0001
  norm       = 0.000100085
  Prefactor  = 149.111
  norm       = 1.67298
  Prefactor  = 13.9078
  Prefactor  = 0.000100035
  Prefactor  = 4.38545
  norm       = 5.43869
  Prefactor  = 0.00010008
  Prefactor  = 0.000100213
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 0.000100063
  Normalizat = 1.0318
  Prefactor  = 0.834837
 **********
 **   18 **HESSE 
 **********

 FCN=   6087.259     FROM HESSE     STATUS=OK           583 CALLS     3546 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.970        87.022        .20455E-02   -1.4728    
   3  Prefactor     .10000E-03    2.8186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.873        9.6833        .24376E-02   -1.4886    
   5  Prefactor     .10001E-03    43.140        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.526        14.884        .25412E-02   -1.4920    
   7  Prefactor     48.444        77.512        .14404E-02   -1.4315    
   8  Prefactor     22.455        43.577        .21137E-02   -1.4760    
   9  Prefactor     12.902        15.272        .27905E-02   -1.4989    
  10  Prefactor     20.670        24.592        .22020E-02   -1.4798    
  11  Prefactor     .10637E-03    12.067        .98915E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9702        2.4580        .74218E-02   -1.5427    
  13  norm          3.4560        2.8695        .54390E-02   -1.5336    
  14  Prefactor     .10000E-03    24.685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10009E-03    11.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     149.11        133.03        .82510E-03   -1.3260    
  17  norm          1.6730        .61660        .76252E-02   -1.5449    
  18  Prefactor     13.908        12.361        .26846E-02   -1.4962    
  19  Prefactor     .10004E-03    16.677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3854        9.4293        .48092E-02   -1.5289    
  21  norm          5.4387        2.0939        .43072E-02   -1.5242    
  22  Prefactor     .10008E-03    10.181        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10021E-03    10.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    28.362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.8381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10006E-03    14.136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0318        .20779        .62550E-01   -.91973    
  28  Prefactor     .83484        .16346        .44170E-01   -.98457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59277e-07
Minuit parameter uncertainties:
  1  7.95987e-07
  2  87.4876
  3  3.53623e-06
  4  9.68419
  5  0.00126203
  6  14.8877
  7  77.674
  8  43.6383
  9  15.2768
  10  24.6041
  11  0.0175408
  12  2.45816
  13  2.86964
  14  1.64955e-05
  15  0.00200128
  16  133.295
  17  0.616602
  18  12.3629
  19  0.00152914
  20  9.43251
  21  2.09395
  22  0.00180545
  23  0.00302727
  24  0.00153967
  25  6.50779e-06
  26  0.00188933
  27  0.207951
  28  0.163558
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.456e+00  2.870e+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.348e-01  1.636e-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.032e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/536967/likelihoodResults_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.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) = 6087.24661355
delta logL = 0.012249351189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6087.24492127
delta logL = 0.0139416339271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3074       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83005       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=   6087.245     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3050        2.9132        .55651E-02    .86198E-04
   2  alpha         2.4944        1.0556        .41152E-01   -.27295E-03
   3  Normalizat    1.0406        .19849        .62335E-01    .10180E-04
   4  Prefactor     .83001        .16131        .44107E-01    .15108E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30495
  alpha      = 2.49442
  Normalizat = 1.04058
  Prefactor  = 0.830007
 **********
 **   18 **HESSE 
 **********

 FCN=   6087.245     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3050        2.9955        .11367E-03   -1.5344    
   2  alpha         2.4944        1.0891        .82304E-02   -.22326E-02
   3  Normalizat    1.0406        .23300        .27570E-03   -.91683    
   4  Prefactor     .83001        .18909        .25103E-03   -.98632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67505e-12
Minuit parameter uncertainties:
  1  2.99568
  2  1.1269
  3  0.233227
  4  0.189237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536967': 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) = 6087.24491994
delta logL = 0.013942957421

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.305e+00  2.996e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.494e+00  1.127e+00  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:  8.300e-01  1.892e-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.041e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.49 +/- 1.13
Photon Flux (Free Index): 4.53e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.01e-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/536967/cmap_HighResolution_349747201_350006401_4FGL_J1222.5+0414_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='1.19e-05', photon_flux_error='4.41e-08', dlogl='1.39e-02', energy_flux='1.23e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-05 10:31:58.722051', photon_index_error2='1.13', photon_index2='2.49', ts='3.24', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.01e-05', EG='1.03', time_epoch_completed='1630863118.72', return_code='0', job_id='536967', GAL2='0.83', EG2='1.04', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.90e-08', ts2='3.25', photon_index='2.69' WHERE bin_id='426' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:31:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 536967: <4FGL_J1222.5+0414_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin426 185.627 4.2389 349747201 350006401 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

