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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin395
RA = 215.577, Dec = 32.3911
tmin = 341712001, tmax = 341971201
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='381109', job_status='RUN', time_executed='2021-09-09 11:39:27.916395', time_epoch_executed='1631212767.92' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381109/ft1_4FGL_J1422.3+3223_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381109/ft2_4FGL_J1422.3+3223_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381109/ft1_4FGL_J1422.3+3223_daily_bin395.fits outfile=/scratch/kocevski/381109/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin395.fits ra=215.577 dec=32.3911 rad=12.0 tmin=341712001.0 tmax=341971201.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.41
user 3.16
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381109/ft1_filtered_4FGL_J1422.3+3223_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/381109/ft2_4FGL_J1422.3+3223_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/381109/ltcube_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.fits outfile=/scratch/kocevski/381109/expmap_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.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/381109/ltcube_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.fits
.....................!
real 191.38
user 185.17
sys 5.79

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/381109/ft1_filtered_4FGL_J1422.3+3223_daily_bin395.fits scfile=/scratch/kocevski/381109/ft2_4FGL_J1422.3+3223_daily_bin395.fits outfile=/scratch/kocevski/381109/cmap_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381109/ft1_filtered_4FGL_J1422.3+3223_daily_bin395.fits scfile=/scratch/kocevski/381109/ft2_4FGL_J1422.3+3223_daily_bin395.fits outfile=/scratch/kocevski/381109/cmap_HighResolution_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1312       1.0000         .10000E-03   10000.    
     5 'norm      '    7.5491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1070       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.006       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11406E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.1058       1.0000         .10000E-03   10000.    
    12 'norm      '    6.8335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.422       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8963       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47957       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4484       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=   5477.525     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2522 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1377        9.8083        .11514E-05   -.57661E-03
   2  Prefactor     .10000E-03    20.902        .56799E-06** at limit **
   3  Prefactor     59.180        63.701       -.25519E-05   -.40524E-04
   4  Prefactor     1.1308        3.1884       -.25567E-06   -.32698E-03
   5  norm          7.5484        11.185        .16535E-06   -.33345E-05
   6  Prefactor     .10000E-03    8.9122        .20747E-05** at limit **
   7  norm          5.1074        3.6132       -.44798E-06   -.21361E-03
   8  Prefactor     17.003        13.195       -.71756E-07    .30097E-04
   9  Prefactor     .10000E-03    8.4005       -.19695E-05** at limit **
  10  Prefactor     .10000E-03    1.7825        .78425E-08** at limit **
  11  norm          9.1060        12.784        .32985E-07    .77678E-05
  12  norm          6.8335        3.3775       -.93980E-07   -.50518E-04
  13  Prefactor     .10000E-03    5.6168        .10957E-06** at limit **
  14  norm          9.1719        6.4990        .38977E-06   -.90632E-03
  15  Prefactor     .10000E-03    13.807       -.17789E-05** at limit **
  16  norm          .10000E-03    2.6029        .17342E-06** at limit **
  17  Prefactor     11.422        16.894       -.69343E-07    .68282E-05
  18  norm          .10000E-03    4.7904        .70008E-07** at limit **
  19  Prefactor     .10000E-03    30.971       -.22097E-05** at limit **
  20  Prefactor     7.8949        6.2588       -.74998E-07   -.52818E-06
  21  norm          .10000E-03    .63997        .28721E-06** at limit **
  22  Normalizat    .47963        .17352        .52122E-06    .74104E-04
  23  Prefactor     1.4483        .18888        .31742E-06    .12105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13771
  Prefactor  = 0.0001
  Prefactor  = 59.1795
  Prefactor  = 1.13077
  norm       = 7.54843
  Prefactor  = 0.0001
  norm       = 5.10738
  Prefactor  = 17.0035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.10598
  norm       = 6.83345
  Prefactor  = 0.0001
  norm       = 9.17191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4217
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89493
  norm       = 0.0001
  Normalizat = 0.479634
  Prefactor  = 1.44833
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.525     FROM HESSE     STATUS=OK           370 CALLS     2892 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1377        12.156        .88656E-03   -1.5255    
   2  Prefactor     .10000E-03    21.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.180        64.393        .52151E-04   -1.4168    
   4  Prefactor     1.1308        3.2288        .21393E-03   -1.5495    
   5  norm          7.5484        11.180        .14596E-03   -1.5158    
   6  Prefactor     .10000E-03    9.0114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1074        3.6237        .11417E-03   -1.5256    
   8  Prefactor     17.003        13.173        .97123E-04   -1.4883    
   9  Prefactor     .10000E-03    8.5096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2908        .19081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.1060        12.776        .13282E-03   -1.5104    
  12  norm          6.8335        3.3863        .92130E-04   -1.5185    
  13  Prefactor     .10000E-03    5.6195        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1719        7.3413        .66164E-03   -1.5102    
  15  Prefactor     .10000E-03    13.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6346        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.422        16.895        .11854E-03   -1.5032    
  18  norm          .10000E-03    4.8212        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8949        6.2487        .14269E-03   -1.5146    
  21  norm          .10000E-03    .65001        .11507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .47963        .20137        .30396E-03   -1.1337    
  23  Prefactor     1.4483        .21932        .20849E-03   -.78997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77007e-09
Minuit parameter uncertainties:
  1  12.1623
  2  1.67997e-05
  3  64.4686
  4  3.22929
  5  11.1834
  6  7.77499e-05
  7  3.62385
  8  13.175
  9  7.33922e-05
  10  2.00904e-05
  11  12.7795
  12  3.38643
  13  1.50796e-06
  14  7.34198
  15  8.72496e-05
  16  7.54435e-07
  17  16.9016
  18  4.45029e-07
  19  0.000208961
  20  6.24924
  21  9.34695e-07
  22  0.20168
  23  0.219463
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.009e-05  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.448e+00  2.195e-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:  4.796e-01  2.017e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381109/likelihoodResults_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.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) = 5477.52611426
delta logL = -0.00144744441513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5477.52466843
delta logL = -1.61565094459e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3865       1.0000          .0000       10.000    
     3 'Normalizat'    .47947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4486       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=   5477.525     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5644        .36794E-01** at limit **
   2  Index         2.3725        5.2311        .50000        .36034E-04
   3  Normalizat    .47964        .76620E-02    .68667E-01    .32606E-03
   4  Prefactor     1.4483        .87503E-02    .47165E-01    .38027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.37254
  Normalizat = 0.479635
  Prefactor  = 1.44833
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.525     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    684.58        .19277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3725        5.2406        .50000       -.55329    
   3  Normalizat    .47964        .97917E-01    .30395E-03   -1.1337    
   4  Prefactor     1.4483        .11161        .20849E-03   -.78997    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.18252e-07
Minuit parameter uncertainties:
  1  0.00178772
  2  61.6136
  3  0.0979517
  4  0.111624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381109': 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) = 5477.52466657
delta logL = 2.45083356276e-07

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.788e-03  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.373e+00  6.161e+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.448e+00  1.116e-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:  4.796e-01  9.795e-02  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/381109/cmap_HighResolution_341712001_341971201_4FGL_J1422.3+3223_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-09 11:49:29.931342', job_id='381109', GAL2='1.45', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631213369.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='395' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 381109: <4FGL_J1422.3+3223_daily_bin395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin395 215.577 32.3911 341712001 341971201 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

