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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin260
RA = 215.577, Dec = 32.3911
tmin = 306720001, tmax = 306979201
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='379903', job_status='RUN', time_executed='2021-09-09 11:35:28.906687', time_epoch_executed='1631212528.91' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379903/ft1_4FGL_J1422.3+3223_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379903/ft2_4FGL_J1422.3+3223_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379903/ft1_4FGL_J1422.3+3223_daily_bin260.fits outfile=/scratch/kocevski/379903/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin260.fits ra=215.577 dec=32.3911 rad=12.0 tmin=306720001.0 tmax=306979201.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 4.90
user 4.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379903/ft1_filtered_4FGL_J1422.3+3223_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/379903/ft2_4FGL_J1422.3+3223_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/379903/ltcube_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.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/379903/ft2_4FGL_J1422.3+3223_daily_bin260.fits
.....................!
real 11.24
user 10.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379903/ft1_filtered_4FGL_J1422.3+3223_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/379903/ft2_4FGL_J1422.3+3223_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/379903/ltcube_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.fits outfile=/scratch/kocevski/379903/expmap_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.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/379903/ltcube_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.fits
.....................!
real 189.55
user 184.74
sys 4.46

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/379903/ft1_filtered_4FGL_J1422.3+3223_daily_bin260.fits scfile=/scratch/kocevski/379903/ft2_4FGL_J1422.3+3223_daily_bin260.fits outfile=/scratch/kocevski/379903/cmap_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17829E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.199       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8289       1.0000         .10000E-03   10000.    
     7 'norm      '    .12489E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12124E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.399       1.0000         .10000E-03   10000.    
    14 'norm      '    .30674E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.418       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4950       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8676       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7971       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0748       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87664       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=   5775.020     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2589 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.420        27.772       -.25525E-06    .27768E-04
   2  Prefactor     .10000E-03    17.802       -.11034E-04** at limit **
   3  Prefactor     .10000E-03    178.10       -.13458E-04** at limit **
   4  Prefactor     22.201        7.0595        .16516E-05   -.15761E-04
   5  norm          1.6106        22.101       -.40891E-05   -.21517E-03
   6  Prefactor     3.8324        17.547       -.11388E-04   -.97453E-04
   7  norm          .10000E-03    3.3055       -.28406E-06** at limit **
   8  Prefactor     17.743        18.448        .12376E-04    .70552E-04
   9  Prefactor     .10005E-03    43.117        .56859E-06** at limit **
  10  Prefactor     .10000E-03    1.0017       -.21408E-07** at limit **
  11  norm          .10000E-03    14.109       -.22202E-05** at limit **
  12  norm          15.620        4.1701        .37650E-06    .68822E-05
  13  Prefactor     26.407        30.966        .20409E-05   -.21629E-04
  14  norm          .10000E-03    4.1042       -.57156E-06** at limit **
  15  Prefactor     .10000E-03    16.947        .11245E-04** at limit **
  16  norm          .10000E-03    3.0391        .62603E-07** at limit **
  17  Prefactor     21.428        30.132        .28201E-06   -.14894E-04
  18  norm          7.4969        9.0784       -.20242E-06   -.28401E-04
  19  Prefactor     .10000E-03    3.9065       -.13309E-07** at limit **
  20  Prefactor     3.8681        4.2146       -.28906E-05    .11640E-03
  21  norm          1.7974        1.6122        .28027E-06   -.39951E-03
  22  Normalizat    1.0743        .19704       -.40299E-05    .29907E-03
  23  Prefactor     .87703        .18996        .15539E-05   -.68136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.42
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2012
  norm       = 1.61061
  Prefactor  = 3.8324
  norm       = 0.0001
  Prefactor  = 17.743
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 15.6199
  Prefactor  = 26.4071
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.4276
  norm       = 7.49689
  Prefactor  = 0.0001
  Prefactor  = 3.86812
  norm       = 1.79741
  Normalizat = 1.07433
  Prefactor  = 0.87703
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.020     FROM HESSE     STATUS=OK           370 CALLS     2959 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.420        27.780        .50392E-04   -1.4114    
   2  Prefactor     .10000E-03    17.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    178.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.201        7.0605        .85014E-04   -1.4765    
   5  norm          1.6106        22.435        .33346E-03   -1.5454    
   6  Prefactor     3.8324        17.560        .20626E-03   -1.5316    
   7  norm          .10000E-03    3.4396        .26970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.743        18.466        .95034E-04   -1.4865    
   9  Prefactor     .10005E-03    43.466        .21109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0038        .74269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.620        4.1722        .77264E-04   -1.4917    
  13  Prefactor     26.407        30.989        .77969E-04   -1.4680    
  14  norm          .10000E-03    9.0186        .29657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1013        .12931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.428        30.238        .86549E-04   -1.4782    
  18  norm          7.4969        9.0523        .14649E-03   -1.5160    
  19  Prefactor     .10000E-03    3.9095        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8681        4.2012        .15672E-03   -1.5315    
  21  norm          1.7974        1.5972        .87215E-04   -1.5440    
  22  Normalizat    1.0743        .23423        .25116E-03   -.90580    
  23  Prefactor     .87703        .22583        .27640E-03   -.96948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75393e-09
Minuit parameter uncertainties:
  1  27.7858
  2  5.65689e-06
  3  0.00038742
  4  7.06075
  5  12.0274
  6  16.4148
  7  5.31034e-05
  8  18.4719
  9  0.0028374
  10  1.64246e-06
  11  0.000389556
  12  4.17224
  13  31.0082
  14  0.000206833
  15  2.22473e-05
  16  6.8081e-06
  17  30.2595
  18  9.05397
  19  4.91189e-06
  20  4.20155
  21  1.59729
  22  0.23446
  23  0.226074
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.642e-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:  8.770e-01  2.261e-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.074e+00  2.345e-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: 4.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379903/likelihoodResults_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.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) = 5775.02427006
delta logL = -0.00453725146053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5775.01973252
delta logL = 2.95043719234e-07

Fit tolerance = 1e-08

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

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

 FCN=   5775.020     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      244 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.322        .74789E-02** at limit **
   2  Index         1.9751        9.0089        .50000        .54888E-07
   3  Normalizat    1.0743        .15491E-01    .25116E-03   -.51619E-03
   4  Prefactor     .87703        .15651E-01    .27640E-03   -.45792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97505
  Normalizat = 1.07432
  Prefactor  = 0.877034
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.020     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.73        .79194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9751        5.3635        .50000       -.64975    
   3  Normalizat    1.0743        .50506E-01    .50233E-04   -.90581    
   4  Prefactor     .87703        .51024E-01    .55279E-04   -.96948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40544e-08
Minuit parameter uncertainties:
  1  0.000289064
  2  631.902
  3  0.0505079
  4  0.051027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379903': 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) = 5775.01972688
delta logL = 5.93328604737e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.891e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.975e+00  6.319e+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:  8.770e-01  5.103e-02  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.074e+00  5.051e-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/379903/cmap_HighResolution_306720001_306979201_4FGL_J1422.3+3223_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='4.96e-08', time_completed='2021-09-09 11:45:31.789384', job_id='379903', GAL2='0.88', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631213131.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='260' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 379903: <4FGL_J1422.3+3223_daily_bin260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin260 215.577 32.3911 306720001 306979201 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 :                                   600.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

