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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1283
RA = 215.577, Dec = 32.3911
tmin = 571881601, tmax = 572140801
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='384538', job_status='RUN', time_executed='2021-09-09 11:49:10.048079', time_epoch_executed='1631213350.05' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384538/ft1_4FGL_J1422.3+3223_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384538/ft1_4FGL_J1422.3+3223_daily_bin1283.fits outfile=/scratch/kocevski/384538/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1283.fits ra=215.577 dec=32.3911 rad=12.0 tmin=571881601.0 tmax=572140801.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.54
user 2.36
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.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/384538/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/384538/ltcube_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.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/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits
.....................!
real 12.20
user 11.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/384538/ltcube_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.fits outfile=/scratch/kocevski/384538/expmap_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.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/384538/ltcube_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.fits
.....................!
real 191.41
user 186.64
sys 4.31

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1422.3+3223 @ 215.577 32.3911

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits scfile=/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits outfile=/scratch/kocevski/384538/cmap_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.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=215.577 yref=32.3911 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits scfile=/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits outfile=/scratch/kocevski/384538/cmap_HighResolution_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.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=215.577 yref=32.3911 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384538/Model_4FGL_J1422.3+3223_daily_bin1283.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/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits.....................!
real 49.71
user 48.40
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits', '/scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits', expMap='/scratch/kocevski/384538/expmap_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.fits', expCube='/scratch/kocevski/384538/ltcube_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384538/Model_4FGL_J1422.3+3223_daily_bin1283.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1422.3+3223'

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/384538/ft1_filtered_4FGL_J1422.3+3223_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/384538/ft2_4FGL_J1422.3+3223_daily_bin1283.fits
Exposure map: /scratch/kocevski/384538/expmap_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.fits
Exposure cube: /scratch/kocevski/384538/ltcube_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384538/Model_4FGL_J1422.3+3223_daily_bin1283.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) = 6295.10184262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.824       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.925       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1292       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5622       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.864       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5850       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0613       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6295.092     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2490 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.877        31.744        .53376E-05    .62156E-03
   2  Prefactor     .10000E-03    17.445       -.10402E-06** at limit **
   3  Prefactor     .10000E-03    52.917        .78300E-07** at limit **
   4  Prefactor     .10000E-03    2.8312       -.60387E-08** at limit **
   5  norm          .10000E-03    4.3647        .26162E-08** at limit **
   6  Prefactor     .10000E-03    6.1937       -.21661E-07** at limit **
   7  norm          .10000E-03    1.1026        .23495E-08** at limit **
   8  Prefactor     7.5391        12.489       -.19565E-07   -.27679E-04
   9  Prefactor     20.826        20.630        .35518E-06   -.10293E-04
  10  Prefactor     17.927        5.2882        .11165E-06    .58862E-04
  11  norm          .10000E-03    8.3979       -.24297E-06** at limit **
  12  norm          7.4211        2.6896        .19030E-07    .10311E-04
  13  Prefactor     .10000E-03    16.695        .24955E-05** at limit **
  14  norm          7.1319        8.2284       -.92878E-07   -.96878E-04
  15  Prefactor     .10000E-03    24.079        .14398E-05** at limit **
  16  norm          .10000E-03    1.3732        .56993E-08** at limit **
  17  Prefactor     .10000E-03    18.540       -.35825E-05** at limit **
  18  norm          3.5595        5.1915        .20206E-05   -.14394E-02
  19  Prefactor     17.870        17.178        .12292E-06    .20174E-04
  20  Prefactor     .10000E-03    7.5385        .15949E-06** at limit **
  21  norm          1.5849        1.8412        .11846E-06   -.24486E-03
  22  Normalizat    1.0608        .18853       -.15723E-05    .65498E-04
  23  Prefactor     .99004        .18052        .58783E-06   -.86269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.53907
  Prefactor  = 20.8257
  Prefactor  = 17.9266
  norm       = 0.0001
  norm       = 7.42105
  Prefactor  = 0.000100001
  norm       = 7.1319
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.55948
  Prefactor  = 17.8696
  Prefactor  = 0.0001
  norm       = 1.58493
  Normalizat = 1.06076
  Prefactor  = 0.990035
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.092     FROM HESSE     STATUS=OK           366 CALLS     2856 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.877        32.805        .52740E-04   -1.4185    
   2  Prefactor     .10000E-03    17.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8805        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3662        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1055        .81351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5391        12.452        .14610E-03   -1.5159    
   9  Prefactor     20.826        20.638        .87773E-04   -1.4795    
  10  Prefactor     17.927        5.2957        .94599E-04   -1.4861    
  11  norm          .10000E-03    8.4137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4211        2.6926        .75795E-04   -1.5163    
  13  Prefactor     .10000E-03    16.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1319        8.2351        .15024E-03   -1.5174    
  15  Prefactor     .10000E-03    24.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3852        .90772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5595        7.4800        .10707E-02   -1.5331    
  19  Prefactor     17.870        17.313        .94761E-04   -1.4862    
  20  Prefactor     .10000E-03    7.6036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5849        1.8210        .10907E-03   -1.5456    
  22  Normalizat    1.0608        .22428        .25443E-03   -.91022    
  23  Prefactor     .99004        .21488        .26249E-03   -.93062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06856e-09
Minuit parameter uncertainties:
  1  32.8155
  2  6.16053e-05
  3  2.11063e-05
  4  1.26341e-05
  5  1.3061e-06
  6  3.55174e-07
  7  3.54797e-07
  8  12.4558
  9  20.6449
  10  5.2958
  11  1.40148e-05
  12  2.69269
  13  0.000230219
  14  8.23641
  15  0.000161614
  16  9.15956e-07
  17  0.000325605
  18  7.48194
  19  17.3178
  20  1.12099e-05
  21  1.82104
  22  0.224484
  23  0.21507
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.793e+01  5.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.900e-01  2.151e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.061e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.92
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 4.77e-08
Energy Flux (Fixed Index): 5.29e-05 +/- 1.56e-05

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) = 6294.77596987
delta logL = 0.316091510043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6294.73366294
delta logL = 0.358398438905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.983       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1804       1.0000          .0000       10.000    
     3 'Normalizat'    1.0820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6294.734     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.984        13.841        .21860E-02   -.39133E-03
   2  Index         2.1803        .48587        .94901E-01    .52462E-04
   3  Normalizat    1.0820        .18047        .57056E-01    .16661E-04
   4  Prefactor     .97333        .18033        .45933E-01    .18789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9842
  Index      = 2.18027
  Normalizat = 1.08195
  Prefactor  = 0.973333
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.734     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.984        6.8956        .87439E-04   -1.4791    
   2  Index         2.1803        .25164        .40405E-02   -.59916    
   3  Normalizat    1.0820        .21212        .25231E-03   -.90333    
   4  Prefactor     .97333        .21126        .26434E-03   -.93624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10165e-10
Minuit parameter uncertainties:
  1  6.89581
  2  0.251793
  3  0.212285
  4  0.211437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384538': 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) = 6294.73366273
delta logL = 0.358398646455

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.098e+01  6.896e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.180e+00  2.518e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.733e-01  2.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.082e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.48
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.18 +/- 0.25
Photon Flux (Free Index): 1.44e-07 +/- 4.82e-08
Energy Flux (Free Index): 6.70e-05 +/- 2.96e-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/384538/cmap_HighResolution_571881601_572140801_4FGL_J1422.3+3223_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='6.70e-05', photon_flux_error='4.77e-08', dlogl='3.58e-01', energy_flux='5.29e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-09 11:59:05.656553', photon_index_error2='0.25', photon_index2='2.18', ts='26.92', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='1.06', time_epoch_completed='1631213945.66', return_code='0', job_id='384538', GAL2='0.97', EG2='1.08', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='4.82e-08', ts2='27.48', photon_index='2.40' WHERE bin_id='1283' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 384538: <4FGL_J1422.3+3223_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1283> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:33 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:46:34 2021
Terminated at Thu Sep  9 11:59:06 2021
Results reported at Thu Sep  9 11:59:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1283 215.577 32.3911 571881601 572140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1422.3+3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             243.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

