/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 221 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin69
RA = 215.577, Dec = 32.3911
tmin = 257212801, tmax = 257472001
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='379627', job_status='RUN', time_executed='2021-09-09 11:34:53.120718', time_epoch_executed='1631212493.12' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379627/ft1_4FGL_J1422.3+3223_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379627/ft1_4FGL_J1422.3+3223_daily_bin69.fits outfile=/scratch/kocevski/379627/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin69.fits ra=215.577 dec=32.3911 rad=12.0 tmin=257212801.0 tmax=257472001.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.13
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379627/ft1_filtered_4FGL_J1422.3+3223_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/379627/ltcube_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.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/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits
.....................!
real 16.34
user 15.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379627/ft1_filtered_4FGL_J1422.3+3223_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/379627/ltcube_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.fits outfile=/scratch/kocevski/379627/expmap_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.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/379627/ltcube_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.fits
.....................!
real 191.78
user 186.53
sys 4.85

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/379627/ft1_filtered_4FGL_J1422.3+3223_daily_bin69.fits scfile=/scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits outfile=/scratch/kocevski/379627/cmap_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379627/ft1_filtered_4FGL_J1422.3+3223_daily_bin69.fits scfile=/scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits outfile=/scratch/kocevski/379627/cmap_HighResolution_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/379627/ft1_filtered_4FGL_J1422.3+3223_daily_bin69.fits', '/scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits', expMap='/scratch/kocevski/379627/expmap_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.fits', expCube='/scratch/kocevski/379627/ltcube_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/379627/Model_4FGL_J1422.3+3223_daily_bin69.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/379627/ft1_filtered_4FGL_J1422.3+3223_daily_bin69.fits
Spacecraft file(s): /scratch/kocevski/379627/ft2_4FGL_J1422.3+3223_daily_bin69.fits
Exposure map: /scratch/kocevski/379627/expmap_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.fits
Exposure cube: /scratch/kocevski/379627/ltcube_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/379627/Model_4FGL_J1422.3+3223_daily_bin69.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) = 5705.63028687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46653E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18023E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6776       1.0000         .10000E-03   10000.    
    14 'norm      '    8.0365       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8609       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5403       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .38002       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97891       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96097       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=   5705.539     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2140 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.336       -.16088E-06** at limit **
   2  Prefactor     .10000E-03    14.366        .44115E-06** at limit **
   3  Prefactor     .10034E-03    753.65       -.26126E-04** at limit **
   4  Prefactor     .10000E-03    2.3111        .82679E-06** at limit **
   5  norm          6.1388        11.978       -.15407E-06    .12060E-04
   6  Prefactor     .10000E-03    6.1521       -.44714E-07** at limit **
   7  norm          .10000E-03    .95367        .17779E-07** at limit **
   8  Prefactor     .10000E-03    15.351        .28374E-06** at limit **
   9  Prefactor     .10000E-03    12.184        .36262E-06** at limit **
  10  Prefactor     .10000E-03    1.6636        .28156E-06** at limit **
  11  norm          .10000E-03    4.6505        .27234E-08** at limit **
  12  norm          7.6890        3.0240        .79879E-07    .22008E-03
  13  Prefactor     7.6746        13.533        .10098E-06   -.56329E-04
  14  norm          8.0368        5.7248        .26719E-06   -.17939E-03
  15  Prefactor     .10000E-03    16.332       -.20695E-06** at limit **
  16  norm          .10000E-03    3.3483        .96430E-07** at limit **
  17  Prefactor     .10000E-03    10.713       -.25654E-06** at limit **
  18  norm          4.8608        8.3932        .43567E-05   -.30019E-03
  19  Prefactor     2.5393        13.838       -.90887E-06   -.78202E-04
  20  Prefactor     .10000E-03    2.1815       -.56698E-07** at limit **
  21  norm          .37903        .99872        .46179E-06    .19096E-03
  22  Normalizat    .97883        .16030       -.13199E-05   -.12079E-03
  23  Prefactor     .96119        .16779       -.83989E-07   -.16974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100345
  Prefactor  = 0.000100002
  norm       = 6.13883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.689
  Prefactor  = 7.67458
  norm       = 8.03682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.86079
  Prefactor  = 2.53926
  Prefactor  = 0.0001
  norm       = 0.379034
  Normalizat = 0.97883
  Prefactor  = 0.96119
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.539     FROM HESSE     STATUS=OK           368 CALLS     2508 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10034E-03    804.87        .42383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9083        .21889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1388        11.965        .16203E-03   -1.5212    
   6  Prefactor     .10000E-03    6.1576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .95558        .72031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.365        .18527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6531        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6890        3.0304        .79497E-04   -1.5153    
  13  Prefactor     7.6746        13.531        .14472E-03   -1.5154    
  14  norm          8.0368        5.7219        .70716E-03   -1.5141    
  15  Prefactor     .10000E-03    16.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4045        .13492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8608        8.4272        .91225E-03   -1.5267    
  19  Prefactor     2.5393        13.683        .25623E-03   -1.5389    
  20  Prefactor     .10000E-03    2.1851        .10892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .37903        .92639        .11839E-02   -1.5585    
  22  Normalizat    .97883        .18386        .22199E-03   -.93743    
  23  Prefactor     .96119        .19652        .24034E-03   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11042e-09
Minuit parameter uncertainties:
  1  8.56722e-05
  2  0.000147306
  3  0.033783
  4  0.000214292
  5  11.9692
  6  1.39357e-05
  7  8.72611e-07
  8  6.8251e-05
  9  0.000105747
  10  0.000299164
  11  1.49873e-06
  12  3.03046
  13  13.5364
  14  5.72225
  15  8.07445e-05
  16  7.67827e-06
  17  8.72065e-05
  18  8.42928
  19  11.793
  20  3.75935e-06
  21  0.926421
  22  0.183978
  23  0.196664
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.992e-04  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.612e-01  1.967e-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:  9.788e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379627/likelihoodResults_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.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) = 5705.53896204
delta logL = -0.000246481918111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5705.53868066
delta logL = 3.48994863089e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28065E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5289       1.0000          .0000       10.000    
     3 'Normalizat'    .97878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96139       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=   5705.454     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      246 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33414        15.052        .99498E-02    .28841E-02
   2  Index         3.5943        3.7092        .23435        .10503E-03
   3  Normalizat    .95585        .23937E-01    .45900E-01    .39946E-03
   4  Prefactor     .97417        .25859E-01    .45783E-01    .14052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.33414
  Index      = 3.59433
  Normalizat = 0.955854
  Prefactor  = 0.974171
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.454     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33414        29.803        .98794E-04   -1.5592    
   2  Index         3.5943        5.7981        .11247E-01   -.28498    
   3  Normalizat    .95585        .18856        .22442E-03   -.94524    
   4  Prefactor     .97417        .19860        .23893E-03   -.93596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84233e-10
Minuit parameter uncertainties:
  1  6.31372
  2  10.617
  3  0.18869
  4  0.198752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379627': 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) = 5705.4535828
delta logL = 0.0851327600949

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.341e-01  6.314e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.594e+00  1.062e+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.742e-01  1.988e-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:  9.559e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.577 32.391

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/379627/cmap_HighResolution_257212801_257472001_4FGL_J1422.3+3223_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-09 11:44:40.104969', job_id='379627', GAL2='0.97', fit_tolerance='1e-08', EG2='0.96', EG='0.98', time_epoch_completed='1631213080.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.51e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='69' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:44:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 379627: <4FGL_J1422.3+3223_daily_bin69> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin69> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:00 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:02 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:31:02 2021
Terminated at Thu Sep  9 11:44:40 2021
Results reported at Thu Sep  9 11:44:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin69 215.577 32.3911 257212801 257472001 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 :                                   586.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

