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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin169
RA = 215.577, Dec = 32.3911
tmin = 283132801, tmax = 283392001
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='379766', job_status='RUN', time_executed='2021-09-09 11:34:19.113930', time_epoch_executed='1631212459.11' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379766/ft1_4FGL_J1422.3+3223_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379766/ft2_4FGL_J1422.3+3223_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379766/ft1_4FGL_J1422.3+3223_daily_bin169.fits outfile=/scratch/kocevski/379766/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin169.fits ra=215.577 dec=32.3911 rad=12.0 tmin=283132801.0 tmax=283392001.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.80
user 3.57
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379766/ft1_filtered_4FGL_J1422.3+3223_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/379766/ft2_4FGL_J1422.3+3223_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/379766/ltcube_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.fits outfile=/scratch/kocevski/379766/expmap_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.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/379766/ltcube_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.fits
.....................!
real 190.68
user 185.72
sys 4.61

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/379766/ft1_filtered_4FGL_J1422.3+3223_daily_bin169.fits scfile=/scratch/kocevski/379766/ft2_4FGL_J1422.3+3223_daily_bin169.fits outfile=/scratch/kocevski/379766/cmap_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379766/ft1_filtered_4FGL_J1422.3+3223_daily_bin169.fits scfile=/scratch/kocevski/379766/ft2_4FGL_J1422.3+3223_daily_bin169.fits outfile=/scratch/kocevski/379766/cmap_HighResolution_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.196       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.720       1.0000         .10000E-03   10000.    
     7 'norm      '    .10617E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53346E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.7238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.640       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.147       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3306       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.336       1.0000         .10000E-03   10000.    
    21 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3416       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87761       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=   6122.554     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2573 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1270        17.897        .26635E-06    .11852E-04
   2  Prefactor     21.197        30.005        .72182E-07    .69107E-05
   3  Prefactor     .10000E-03    31.338       -.13720E-05** at limit **
   4  Prefactor     .10000E-03    1.4301       -.40061E-07** at limit **
   5  norm          .10000E-03    5.1538        .84498E-07** at limit **
   6  Prefactor     13.718        17.594        .91851E-07    .35895E-04
   7  norm          .10000E-03    4.0280       -.97799E-07** at limit **
   8  Prefactor     .10000E-03    6.8878        .15524E-06** at limit **
   9  Prefactor     .10000E-03    7.9547        .10091E-06** at limit **
  10  Prefactor     .10044E-03    5.7284       -.30336E-05** at limit **
  11  norm          .10000E-03    6.0746       -.43256E-06** at limit **
  12  norm          9.7240        3.3168        .12260E-07    .10036E-03
  13  Prefactor     16.646        22.808       -.67558E-06   -.19196E-04
  14  norm          5.8315        7.4566       -.41031E-07    .35970E-03
  15  Prefactor     22.070        41.130        .95597E-05    .38085E-03
  16  norm          4.3313        5.8790        .11976E-05    .63252E-03
  17  Prefactor     .10000E-03    26.838       -.14721E-06** at limit **
  18  norm          .10000E-03    3.5313        .75905E-07** at limit **
  19  Prefactor     .10000E-03    10.680       -.30150E-06** at limit **
  20  Prefactor     13.334        10.062        .55791E-07    .82380E-04
  21  norm          .10000E-03    .97139        .24032E-07** at limit **
  22  Normalizat    1.3414        .18880        .95635E-07    .54875E-03
  23  Prefactor     .87765        .19086       -.89223E-06    .38860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12698
  Prefactor  = 21.1967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7178
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100444
  norm       = 0.0001
  norm       = 9.72398
  Prefactor  = 16.6465
  norm       = 5.83148
  Prefactor  = 22.0696
  norm       = 4.33127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3337
  norm       = 0.0001
  Normalizat = 1.3414
  Prefactor  = 0.877652
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.554     FROM HESSE     STATUS=OK           368 CALLS     2941 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1270        17.802        .22928E-03   -1.5354    
   2  Prefactor     21.197        29.960        .87000E-04   -1.4787    
   3  Prefactor     .10000E-03    31.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4363        .91368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1604        .17349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.718        17.586        .10813E-03   -1.4967    
   7  norm          .10000E-03    4.2054        .30634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10044E-03    23.869        .24807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.7240        3.3199        .80497E-04   -1.5084    
  13  Prefactor     16.646        22.823        .98184E-04   -1.4892    
  14  norm          5.8315        7.4668        .83170E-03   -1.5225    
  15  Prefactor     22.070        41.891        .85112E-04   -1.4768    
  16  norm          4.3313        5.9690        .96785E-03   -1.5292    
  17  Prefactor     .10000E-03    26.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5374        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.334        9.7189        .54841E-03   -1.4977    
  21  norm          .10000E-03    1.4006        .14443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3414        .22199        .23635E-03   -.82339    
  23  Prefactor     .87765        .22796        .28923E-03   -.96926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96972e-08
Minuit parameter uncertainties:
  1  14.9285
  2  29.9814
  3  0.000233349
  4  4.853e-07
  5  5.87055e-06
  6  17.593
  7  1.21172e-05
  8  1.14305e-05
  9  3.98234e-06
  10  0.00651376
  11  3.29052e-05
  12  3.32
  13  22.8345
  14  7.46796
  15  41.9469
  16  5.96986
  17  1.30117e-06
  18  5.45437e-06
  19  2.27769e-05
  20  9.72007
  21  8.89781e-07
  22  0.222146
  23  0.22821
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.004e-04  6.514e-03  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:  8.777e-01  2.282e-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.341e+00  2.221e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379766/likelihoodResults_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.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) = 6122.5542366
delta logL = -0.000198835289666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6122.55394749
delta logL = 9.02748497538e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33977E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5496       1.0000          .0000       10.000    
     3 'Normalizat'    1.3414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87775       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=   6121.562     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24326        2.2083        .58943E-02    .13967E-02
   2  Index         4.8869        2.5485        .13286        .12028E-03
   3  Normalizat    1.1938        .44328E-01    .56170E-01    .74205E-04
   4  Prefactor     .97208        .45213E-01    .44721E-01    .23092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.243263
  Index      = 4.88692
  Normalizat = 1.19384
  Prefactor  = 0.972081
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.562     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24326        5.7582        .26512E-04   -1.5609    
   2  Index         4.8869        7.1787        .47727E-02   -.22617E-01
   3  Normalizat    1.1938        .20457        .24840E-03   -.86793    
   4  Prefactor     .97208        .19850        .27630E-03   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.78792e-07
Minuit parameter uncertainties:
  1  2.36685
  2  5.41768
  3  0.204712
  4  0.198646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379766': 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) = 6121.56249729
delta logL = 0.991540467728

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.433e-01  2.367e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.887e+00  5.418e+00  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.721e-01  1.986e-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.194e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 215.577 32.391
Photon Index (Free Index): 4.89 +/- 5.42
Photon Flux (Free Index): 1.19e-07 +/- 9.00e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.58e-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/379766/cmap_HighResolution_283132801_283392001_4FGL_J1422.3+3223_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='9.92e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-09 11:44:45.007648', photon_index_error2='5.42', photon_index2='4.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.58e-05', EG='1.34', time_epoch_completed='1631213085.01', return_code='0', job_id='379766', GAL2='0.97', EG2='1.19', return_code2='102', photon_flux_error2='9.00e-08', ts2='2.29', photon_index='2.40' WHERE bin_id='169' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 379766: <4FGL_J1422.3+3223_daily_bin169> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin169 215.577 32.3911 283132801 283392001 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 :                                   622.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

