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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin709
RA = 215.577, Dec = 32.3911
tmin = 423100801, tmax = 423360001
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='381569', job_status='RUN', time_executed='2021-09-09 11:36:40.721573', time_epoch_executed='1631212600.72' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381569/ft1_4FGL_J1422.3+3223_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381569/ft2_4FGL_J1422.3+3223_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381569/ft1_4FGL_J1422.3+3223_daily_bin709.fits outfile=/scratch/kocevski/381569/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin709.fits ra=215.577 dec=32.3911 rad=12.0 tmin=423100801.0 tmax=423360001.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 5.13
user 4.72
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381569/ft1_filtered_4FGL_J1422.3+3223_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/381569/ft2_4FGL_J1422.3+3223_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/381569/ltcube_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.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/381569/ft2_4FGL_J1422.3+3223_daily_bin709.fits
.....................!
real 11.89
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381569/ft1_filtered_4FGL_J1422.3+3223_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/381569/ft2_4FGL_J1422.3+3223_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/381569/ltcube_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.fits outfile=/scratch/kocevski/381569/expmap_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.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/381569/ltcube_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.fits
.....................!
real 190.46
user 185.32
sys 4.76

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/381569/ft1_filtered_4FGL_J1422.3+3223_daily_bin709.fits scfile=/scratch/kocevski/381569/ft2_4FGL_J1422.3+3223_daily_bin709.fits outfile=/scratch/kocevski/381569/cmap_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381569/ft1_filtered_4FGL_J1422.3+3223_daily_bin709.fits scfile=/scratch/kocevski/381569/ft2_4FGL_J1422.3+3223_daily_bin709.fits outfile=/scratch/kocevski/381569/cmap_HighResolution_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.342       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.316       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.788       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0949       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0182       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=   3508.880     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2442 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.160        .20760E-05** at limit **
   2  Prefactor     .10000E-03    13.218       -.10031E-04** at limit **
   3  Prefactor     33.668        97.555       -.11141E-03    .25497E-04
   4  Prefactor     .10000E-03    5.7504       -.11051E-05** at limit **
   5  norm          .10000E-03    25.139       -.23753E-05** at limit **
   6  Prefactor     .10000E-03    5.8887        .37817E-06** at limit **
   7  norm          .10000E-03    1.4351       -.17268E-07** at limit **
   8  Prefactor     .10000E-03    4.6472        .11353E-06** at limit **
   9  Prefactor     11.743        12.370       -.89345E-07    .47467E-04
  10  Prefactor     .10000E-03    1.3301       -.52218E-07** at limit **
  11  norm          10.343        12.302       -.57124E-07    .13753E-04
  12  norm          8.3073        4.4285       -.27385E-06    .34411E-04
  13  Prefactor     23.307        29.554       -.13916E-04    .15148E-04
  14  norm          .10000E-03    2.6364       -.71283E-07** at limit **
  15  Prefactor     .10000E-03    15.776        .19345E-05** at limit **
  16  norm          3.0779        7.6813       -.18485E-05   -.33916E-03
  17  Prefactor     .10000E-03    16.931        .81018E-05** at limit **
  18  norm          6.2159        9.0858       -.53281E-06   -.59675E-03
  19  Prefactor     21.783        21.818       -.48667E-05    .36837E-04
  20  Prefactor     .10000E-03    10.047        .10556E-05** at limit **
  21  norm          .10000E-03    1.6817       -.41266E-06** at limit **
  22  Normalizat    1.0952        .23357        .13607E-04   -.21740E-03
  23  Prefactor     1.0178        .24670       -.49136E-05    .35832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6681
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7433
  Prefactor  = 0.0001
  norm       = 10.3426
  norm       = 8.30735
  Prefactor  = 23.3065
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07787
  Prefactor  = 0.0001
  norm       = 6.21589
  Prefactor  = 21.783
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09521
  Prefactor  = 1.0178
 **********
 **   18 **HESSE 
 **********

 FCN=   3508.880     FROM HESSE     STATUS=OK           362 CALLS     2804 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.668        97.613        .68993E-04   -1.4547    
   4  Prefactor     .10000E-03    5.8509        .13858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    25.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8892        .14040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4377        .69297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6491        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.743        12.376        .11689E-03   -1.5022    
  10  Prefactor     .10000E-03    1.3343        .66711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.343        12.301        .12459E-03   -1.5065    
  12  norm          8.3073        4.4318        .87950E-04   -1.5131    
  13  Prefactor     23.307        29.561        .82954E-04   -1.4742    
  14  norm          .10000E-03    2.6397        .93926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0779        7.6889        .23126E-03   -1.5357    
  17  Prefactor     .10000E-03    16.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2159        9.0857        .80506E-03   -1.5209    
  19  Prefactor     21.783        21.751        .85811E-04   -1.4774    
  20  Prefactor     .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4097        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0952        .26480        .23337E-03   -.89906    
  23  Prefactor     1.0178        .28168        .26110E-03   -.92139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83366e-09
Minuit parameter uncertainties:
  1  2.43378e-05
  2  2.44658e-05
  3  98.0806
  4  8.79523e-05
  5  0.000397861
  6  2.58097e-06
  7  3.81374e-06
  8  2.33351e-07
  9  12.3787
  10  8.78808e-06
  11  12.3039
  12  4.432
  13  29.5792
  14  4.03284e-06
  15  7.80581e-06
  16  7.69138
  17  3.87479e-05
  18  9.08772
  19  21.7585
  20  1.6448e-05
  21  6.8937e-05
  22  0.265125
  23  0.28209
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  8.788e-06  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.018e+00  2.821e-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.095e+00  2.651e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381569/likelihoodResults_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.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) = 3508.88308866
delta logL = -0.0033259036677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3508.87976259
delta logL = 1.65303845279e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3907       1.0000          .0000       10.000    
     3 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0178       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3508.880     FROM MIGRAD    STATUS=FAILED        94 CALLS      240 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.544        .67042E-02** at limit **
   2  Index         1.9657        5.2673        .50000       -.24685E-05
   3  Normalizat    1.0952        .19487E-01    .23336E-03   -.21620E-03
   4  Prefactor     1.0178        .21204E-01    .26110E-03   -.18174E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3508.880     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      403 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.544        .24239E-03** at limit **
   2  Index         1.9657        5.2673        .79326E-05   -.24685E-05
   3  Normalizat    1.0952        .19487E-01    .14983E-06   -.21620E-03
   4  Prefactor     1.0178        .21204E-01    .69374E-07   -.18174E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3508.880     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      434 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    151.81        .70517E-03** at limit **
   2  Index         1.9661        5.7523        .50000        .70349E-07
   3  Normalizat    1.0952        .65278E-01    .46673E-04   -.21569E-03
   4  Prefactor     1.0178        .71026E-01    .52220E-04   -.18137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96613
  Normalizat = 1.09522
  Prefactor  = 1.01778
 **********
 **   18 **HESSE 
 **********

 FCN=   3508.880     FROM HESSE     STATUS=OK            29 CALLS      463 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7152        .14103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9661        5.8215        .50000       -.65200    
   3  Normalizat    1.0952        .25009        .93345E-05   -.89906    
   4  Prefactor     1.0178        .27205        .10444E-04   -.92139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20058e-11
Minuit parameter uncertainties:
  1  1.58844e-05
  2  129.947
  3  0.250361
  4  0.272419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381569': 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) = 3508.87975892
delta logL = 3.8390780901e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.588e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.966e+00  1.299e+02  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.018e+00  2.724e-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.095e+00  2.504e-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/381569/cmap_HighResolution_423100801_423360001_4FGL_J1422.3+3223_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-09-09 11:45:05.400531', job_id='381569', GAL2='1.02', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631213105.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='709' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:45:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 381569: <4FGL_J1422.3+3223_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin709 215.577 32.3911 423100801 423360001 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 :                                   496.22 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             321.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            518 sec.

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

