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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1090
RA = 215.577, Dec = 32.3911
tmin = 521856001, tmax = 522115201
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='383148', job_status='RUN', time_executed='2021-09-09 11:44:22.719774', time_epoch_executed='1631213062.72' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383148

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383148/ft1_4FGL_J1422.3+3223_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383148/ft1_4FGL_J1422.3+3223_daily_bin1090.fits outfile=/scratch/kocevski/383148/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1090.fits ra=215.577 dec=32.3911 rad=12.0 tmin=521856001.0 tmax=522115201.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.78
user 3.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.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/383148/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.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/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/383148/ltcube_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.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/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits
.....................!
real 12.34
user 11.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/383148/ltcube_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.fits outfile=/scratch/kocevski/383148/expmap_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.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/383148/ltcube_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.fits
.....................!
real 191.26
user 185.61
sys 5.30

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/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.fits scfile=/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits outfile=/scratch/kocevski/383148/cmap_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.fits scfile=/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits outfile=/scratch/kocevski/383148/cmap_HighResolution_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.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/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/383148/ft2_4FGL_J1422.3+3223_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383148/Model_4FGL_J1422.3+3223_daily_bin1090.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/383148/ft1_filtered_4FGL_J1422.3+3223_daily_bin1090.fits.....................!
real 46.97
user 45.62
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4192       1.0000         .10000E-03   10000.    
     5 'norm      '    23.853       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.7985       1.0000         .10000E-03   10000.    
    12 'norm      '    10.432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.997       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.064       1.0000         .10000E-03   10000.    
    16 'norm      '    12.404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11279E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9344       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4404       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .53163       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=   5823.687     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2578 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.220        28.216       -.14183E-06    .21393E-04
   2  Prefactor     .10000E-03    12.115        .89238E-07** at limit **
   3  Prefactor     59.522        67.322       -.19824E-06   -.22065E-04
   4  Prefactor     3.4204        5.0499        .34246E-06   -.26076E-04
   5  norm          23.854        17.067        .10321E-08   -.15666E-05
   6  Prefactor     .10000E-03    6.7310        .43740E-08** at limit **
   7  norm          .10000E-03    2.2271        .66249E-07** at limit **
   8  Prefactor     .10000E-03    4.3117       -.18757E-07** at limit **
   9  Prefactor     .10000E-03    5.8753       -.77954E-07** at limit **
  10  Prefactor     .10000E-03    1.6268        .48390E-07** at limit **
  11  norm          9.7949        12.051        .13375E-06    .35134E-04
  12  norm          10.432        3.6397        .11496E-07    .60881E-05
  13  Prefactor     46.993        35.323       -.70125E-09   -.36284E-04
  14  norm          2.3573        8.3500       -.40470E-06   -.26708E-04
  15  Prefactor     83.015        63.995       -.48604E-06   -.17172E-03
  16  norm          12.404        5.7762        .30160E-07    .37175E-05
  17  Prefactor     .10000E-03    83.873        .42839E-06** at limit **
  18  norm          5.4574        8.1275        .31505E-05   -.15445E-03
  19  Prefactor     .10000E-03    13.142       -.45823E-06** at limit **
  20  Prefactor     5.9343        5.4701       -.10435E-06    .89061E-05
  21  norm          .10000E-03    .70676       -.44264E-08** at limit **
  22  Normalizat    1.4400        .19590        .52761E-06   -.38339E-04
  23  Prefactor     .53196        .18721       -.10616E-05    .15834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.22
  Prefactor  = 0.0001
  Prefactor  = 59.5216
  Prefactor  = 3.42037
  norm       = 23.8539
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.79486
  norm       = 10.4318
  Prefactor  = 46.9931
  norm       = 2.35728
  Prefactor  = 83.0148
  norm       = 12.4042
  Prefactor  = 0.0001
  norm       = 5.45742
  Prefactor  = 0.0001
  Prefactor  = 5.93431
  norm       = 0.0001
  Normalizat = 1.44004
  Prefactor  = 0.531963
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.687     FROM HESSE     STATUS=OK           368 CALLS     2946 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.220        28.343        .89085E-04   -1.4808    
   2  Prefactor     .10000E-03    12.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.522        67.385        .52000E-04   -1.4163    
   4  Prefactor     3.4204        5.0479        .19427E-03   -1.5338    
   5  norm          23.854        17.092        .82017E-04   -1.4731    
   6  Prefactor     .10000E-03    6.7452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2698        .11117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3150        .15474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8812        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6388        .95010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.7949        12.039        .12802E-03   -1.5082    
  12  norm          10.432        3.6409        .82539E-04   -1.5062    
  13  Prefactor     46.993        35.489        .58489E-04   -1.4336    
  14  norm          2.3573        8.2737        .26749E-03   -1.5401    
  15  Prefactor     83.015        63.380        .22036E-03   -1.3883    
  16  norm          12.404        5.7752        .11374E-03   -1.5003    
  17  Prefactor     .10000E-03    84.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4574        8.1396        .85990E-03   -1.5241    
  19  Prefactor     .10000E-03    13.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9343        5.4696        .16484E-03   -1.5221    
  21  norm          .10000E-03    .72271        .62576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4400        .22984        .21952E-03   -.79477    
  23  Prefactor     .53196        .21565        .33812E-03   -1.1053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92426e-10
Minuit parameter uncertainties:
  1  28.3622
  2  2.22937e-06
  3  67.4718
  4  5.04853
  5  17.0958
  6  1.69544e-07
  7  4.28332e-07
  8  6.37002e-08
  9  1.21968e-06
  10  8.90135e-07
  11  12.0416
  12  3.64094
  13  35.5053
  14  8.27769
  15  63.4314
  16  5.7755
  17  7.94088e-06
  18  8.14129
  19  9.52869e-05
  20  5.47011
  21  1.92899e-07
  22  0.230009
  23  0.215981
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  8.901e-07  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:  5.320e-01  2.160e-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.440e+00  2.300e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383148/likelihoodResults_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.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) = 5823.6902911
delta logL = -0.00286683606282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5823.68742425
delta logL = 2.20516085392e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4108       1.0000          .0000       10.000    
     3 'Normalizat'    1.4401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53198       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=   5823.687     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3096        .95376E-03** at limit **
   2  Index         2.4211        6.0258        .50000       -.54403E-04
   3  Normalizat    1.4400        .21237        .21952E-03   -.56026E-04
   4  Prefactor     .53196        .20904        .33812E-03   -.29824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.42108
  Normalizat = 1.44004
  Prefactor  = 0.531962
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.687     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6870        .19075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4211        6.2101        .50000       -.54192    
   3  Normalizat    1.4400        .21250        .43904E-04   -.79477    
   4  Prefactor     .53196        .20918        .13525E-04   -1.1053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19806e-09
Minuit parameter uncertainties:
  1  0.000182628
  2  4.32929
  3  0.21263
  4  0.209482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383148': 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) = 5823.68742402
delta logL = 2.5237659429e-07

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.826e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.421e+00  4.329e+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:  5.320e-01  2.095e-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.440e+00  2.126e-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/383148/cmap_HighResolution_521856001_522115201_4FGL_J1422.3+3223_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-09 11:54:30.693898', job_id='383148', GAL2='0.53', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631213670.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1090' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:54:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 383148: <4FGL_J1422.3+3223_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1090> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:38 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:40 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:41:40 2021
Terminated at Thu Sep  9 11:54:31 2021
Results reported at Thu Sep  9 11:54:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1090 215.577 32.3911 521856001 522115201 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 :                                   604.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

