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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin408
RA = 215.577, Dec = 32.3911
tmin = 345081601, tmax = 345340801
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='381122', job_status='RUN', time_executed='2021-09-09 11:38:09.501932', time_epoch_executed='1631212689.5' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381122

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381122/ft1_4FGL_J1422.3+3223_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381122/ft2_4FGL_J1422.3+3223_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381122/ft1_4FGL_J1422.3+3223_daily_bin408.fits outfile=/scratch/kocevski/381122/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin408.fits ra=215.577 dec=32.3911 rad=12.0 tmin=345081601.0 tmax=345340801.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.55
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381122/ft1_filtered_4FGL_J1422.3+3223_daily_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/381122/ft2_4FGL_J1422.3+3223_daily_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/381122/ltcube_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.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/381122/ft2_4FGL_J1422.3+3223_daily_bin408.fits
.....................!
real 14.74
user 14.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381122/ft1_filtered_4FGL_J1422.3+3223_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/381122/ft2_4FGL_J1422.3+3223_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/381122/ltcube_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.fits outfile=/scratch/kocevski/381122/expmap_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.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/381122/ltcube_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.fits
.....................!
real 191.97
user 186.67
sys 4.77

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/381122/ft1_filtered_4FGL_J1422.3+3223_daily_bin408.fits scfile=/scratch/kocevski/381122/ft2_4FGL_J1422.3+3223_daily_bin408.fits outfile=/scratch/kocevski/381122/cmap_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.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/381122/ft1_filtered_4FGL_J1422.3+3223_daily_bin408.fits scfile=/scratch/kocevski/381122/ft2_4FGL_J1422.3+3223_daily_bin408.fits outfile=/scratch/kocevski/381122/cmap_HighResolution_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3216       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.556       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9736       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46890E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3993       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.566       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9160       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62799       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3456       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=   6057.351     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2166 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9680        .39558E-06** at limit **
   2  Prefactor     4.3212        16.941        .59057E-06   -.11370E-04
   3  Prefactor     10.643        58.825        .25230E-04   -.48783E-04
   4  Prefactor     .10000E-03    3.2403        .32594E-06** at limit **
   5  norm          12.748        17.273        .20145E-06   -.94179E-04
   6  Prefactor     22.555        16.033       -.11947E-07   -.20937E-04
   7  norm          5.9734        4.2496        .38875E-06   -.18645E-03
   8  Prefactor     .10000E-03    6.6459       -.31785E-06** at limit **
   9  Prefactor     .10000E-03    4.7480       -.20085E-07** at limit **
  10  Prefactor     .10000E-03    1.4945        .19474E-06** at limit **
  11  norm          .10000E-03    5.3344        .16045E-06** at limit **
  12  norm          8.3988        3.0529        .25738E-06   -.50278E-04
  13  Prefactor     .10000E-03    5.5769       -.12133E-07** at limit **
  14  norm          2.3048        4.8140       -.35552E-06   -.15251E-04
  15  Prefactor     24.565        25.106        .19732E-06   -.13595E-04
  16  norm          .10000E-03    1.2915        .68701E-07** at limit **
  17  Prefactor     .10000E-03    24.365        .11379E-06** at limit **
  18  norm          1.3393        8.5435        .20138E-04    .44858E-04
  19  Prefactor     .10000E-03    5.3965        .50325E-06** at limit **
  20  Prefactor     .10000E-03    2.2610        .82550E-07** at limit **
  21  norm          1.9157        1.5462        .63108E-07   -.78862E-04
  22  Normalizat    .62796        .16335       -.92362E-07   -.23890E-03
  23  Prefactor     1.3457        .17754       -.21672E-05   -.21209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.32116
  Prefactor  = 10.6426
  Prefactor  = 0.0001
  norm       = 12.7483
  Prefactor  = 22.5551
  norm       = 5.97339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 8.39882
  Prefactor  = 0.0001
  norm       = 2.30476
  Prefactor  = 24.5645
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91573
  Normalizat = 0.627958
  Prefactor  = 1.34571
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.351     FROM HESSE     STATUS=OK           370 CALLS     2536 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3212        16.924        .19378E-03   -1.5292    
   3  Prefactor     10.643        58.868        .12234E-03   -1.5055    
   4  Prefactor     .10000E-03    3.3613        .27321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.748        17.323        .11216E-03   -1.4994    
   6  Prefactor     22.555        16.026        .84339E-04   -1.4758    
   7  norm          5.9734        4.2311        .64645E-03   -1.5219    
   8  Prefactor     .10000E-03    6.6906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7586        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.576        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.3413        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3988        3.0566        .79352E-04   -1.5128    
  13  Prefactor     .10000E-03    5.5800        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3048        4.7960        .23587E-03   -1.5404    
  15  Prefactor     24.565        25.101        .80820E-04   -1.4716    
  16  norm          .10000E-03    1.2954        .86371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3393        8.5413        .18918E-02   -1.5477    
  19  Prefactor     .10000E-03    5.4142        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2705        .11425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9157        1.5357        .83482E-04   -1.5431    
  22  Normalizat    .62796        .19145        .27574E-03   -1.0681    
  23  Prefactor     1.3457        .21107        .21930E-03   -.81958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05187e-10
Minuit parameter uncertainties:
  1  1.12955e-05
  2  16.9429
  3  50.136
  4  3.12648e-05
  5  17.3295
  6  16.0287
  7  4.23135
  8  4.54412e-06
  9  1.76808e-07
  10  0.000345105
  11  4.85973e-06
  12  3.05662
  13  4.60419e-06
  14  4.79679
  15  25.1113
  16  4.65311e-06
  17  0.000111083
  18  6.76558
  19  1.3352e-05
  20  2.95814e-06
  21  1.53573
  22  0.191649
  23  0.211208
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.451e-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:  1.346e+00  2.112e-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:  6.280e-01  1.916e-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: 6.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381122/likelihoodResults_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.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) = 6057.3508383
delta logL = -0.000147144235598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6057.13579996
delta logL = 0.214891203289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20668       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0946       1.0000          .0000       10.000    
     3 'Normalizat'    .58994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3706       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=   6057.136     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      282 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20816        4.6447        .10008E-01    .31476E-02
   2  Index         4.0923        3.1192        .20494        .10655E-03
   3  Normalizat    .59027        .24538E-01    .64190E-01   -.26771E-03
   4  Prefactor     1.3703        .27672E-01    .49231E-01   -.51451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.208159
  Index      = 4.09227
  Normalizat = 0.590273
  Prefactor  = 1.37029
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.136     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      313 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20816        25.328        .54301E-04   -1.5617    
   2  Index         4.0923        5.3198        .86569E-02   -.18256    
   3  Normalizat    .59027        .16916        .28403E-03   -1.0840    
   4  Prefactor     1.3703        .18737        .21763E-03   -.81240    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29548e-09
Minuit parameter uncertainties:
  1  4.59314
  2  13.0023
  3  0.169308
  4  0.187465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381122': 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): 102
logL (Free Index) = 6057.13579457
delta logL = 0.214896593333

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.082e-01  4.593e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.092e+00  1.300e+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:  1.370e+00  1.875e-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:  5.903e-01  1.693e-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/381122/cmap_HighResolution_345081601_345340801_4FGL_J1422.3+3223_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-09 11:48:23.881959', job_id='381122', GAL2='1.37', fit_tolerance='1e-08', EG2='0.59', EG='0.63', time_epoch_completed='1631213303.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.15e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='408' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 381122: <4FGL_J1422.3+3223_daily_bin408> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin408> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:36:01 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:36:03 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:36:03 2021
Terminated at Thu Sep  9 11:48:24 2021
Results reported at Thu Sep  9 11:48:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin408 215.577 32.3911 345081601 345340801 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 :                                   608.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

