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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1002
RA = 215.577, Dec = 32.3911
tmin = 499046401, tmax = 499305601
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='383009', job_status='RUN', time_executed='2021-09-09 11:44:50.773035', time_epoch_executed='1631213090.77' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383009/ft1_4FGL_J1422.3+3223_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383009/ft2_4FGL_J1422.3+3223_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383009/ft1_4FGL_J1422.3+3223_daily_bin1002.fits outfile=/scratch/kocevski/383009/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1002.fits ra=215.577 dec=32.3911 rad=12.0 tmin=499046401.0 tmax=499305601.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.39
user 4.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383009/ft2_4FGL_J1422.3+3223_daily_bin1002.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/383009/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/383009/ft1_filtered_4FGL_J1422.3+3223_daily_bin1002.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.48
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383009/ft1_filtered_4FGL_J1422.3+3223_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/383009/ft2_4FGL_J1422.3+3223_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/383009/ltcube_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.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/383009/ft2_4FGL_J1422.3+3223_daily_bin1002.fits
.....................!
real 11.77
user 11.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383009/ft1_filtered_4FGL_J1422.3+3223_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/383009/ft2_4FGL_J1422.3+3223_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/383009/ltcube_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.fits outfile=/scratch/kocevski/383009/expmap_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.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/383009/ltcube_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.fits
.....................!
real 190.83
user 186.33
sys 4.15

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/383009/ft1_filtered_4FGL_J1422.3+3223_daily_bin1002.fits scfile=/scratch/kocevski/383009/ft2_4FGL_J1422.3+3223_daily_bin1002.fits outfile=/scratch/kocevski/383009/cmap_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.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.35
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.407       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29196E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24783E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8919       1.0000         .10000E-03   10000.    
     5 'norm      '    12.676       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75533       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0252       1.0000         .10000E-03   10000.    
    12 'norm      '    5.1291       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5551       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2293       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.167       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.132       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9524       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98529       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1146       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=   7927.194     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2565 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.382        20.779       -.13707E-05    .17179E-03
   2  Prefactor     .10002E-03    100.58       -.38061E-05** at limit **
   3  Prefactor     .10000E-03    202.36        .46720E-05** at limit **
   4  Prefactor     3.8929        3.6006        .98476E-06    .18647E-03
   5  norm          12.676        12.260       -.15766E-07   -.17910E-04
   6  Prefactor     .10000E-03    14.427       -.38923E-06** at limit **
   7  norm          .10000E-03    1.5430       -.70689E-07** at limit **
   8  Prefactor     7.0365        14.792        .10166E-05    .28958E-04
   9  Prefactor     .10000E-03    11.084       -.48544E-06** at limit **
  10  Prefactor     .75796        2.6321        .41413E-06   -.23276E-04
  11  norm          4.0221        11.405       -.89386E-06   -.17431E-04
  12  norm          5.1289        2.2866        .18865E-07    .22688E-04
  13  Prefactor     .10000E-03    44.697        .31328E-06** at limit **
  14  norm          3.5574        4.7444        .27732E-05    .10558E-03
  15  Prefactor     .10000E-03    9.3325       -.36129E-07** at limit **
  16  norm          8.2293        4.2171       -.17266E-06   -.17789E-04
  17  Prefactor     35.175        32.802        .14885E-06    .54025E-05
  18  norm          .10000E-03    3.0586       -.22383E-09** at limit **
  19  Prefactor     34.139        15.217       -.13998E-06    .42884E-05
  20  Prefactor     .10000E-03    3.7800       -.31998E-07** at limit **
  21  norm          2.9533        1.7067        .16258E-07   -.47759E-06
  22  Normalizat    .98446        .17095       -.76041E-06    .12023E-03
  23  Prefactor     1.1153        .16671        .19798E-06    .65072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3819
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 3.8929
  norm       = 12.6756
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.03648
  Prefactor  = 0.0001
  Prefactor  = 0.757963
  norm       = 4.02206
  norm       = 5.12891
  Prefactor  = 0.0001
  norm       = 3.55745
  Prefactor  = 0.0001
  norm       = 8.2293
  Prefactor  = 35.1749
  norm       = 0.0001
  Prefactor  = 34.1391
  Prefactor  = 0.0001
  norm       = 2.95326
  Normalizat = 0.98446
  Prefactor  = 1.11526
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.194     FROM HESSE     STATUS=OK           372 CALLS     2937 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.382        20.602        .84618E-04   -1.4761    
   2  Prefactor     .10002E-03    100.65        .42802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    203.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8929        3.5989        .77969E-03   -1.5313    
   5  norm          12.676        12.276        .11251E-03   -1.4996    
   6  Prefactor     .10000E-03    14.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5569        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0365        14.738        .15135E-03   -1.5177    
   9  Prefactor     .10000E-03    11.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .75796        2.5962        .25550E-03   -1.5534    
  11  norm          4.0221        11.334        .20100E-03   -1.5307    
  12  norm          5.1289        2.2898        .87031E-04   -1.5255    
  13  Prefactor     .10000E-03    45.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5574        4.7463        .10718E-02   -1.5331    
  15  Prefactor     .10000E-03    9.3341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2293        4.2278        .12595E-03   -1.5134    
  17  Prefactor     35.175        32.939        .67577E-04   -1.4521    
  18  norm          .10000E-03    3.0704        .15206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.139        15.225        .68591E-04   -1.4539    
  20  Prefactor     .10000E-03    3.8132        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9533        1.6991        .83232E-04   -1.5364    
  22  Normalizat    .98446        .20419        .26191E-03   -.93553    
  23  Prefactor     1.1153        .19976        .25525E-03   -.88980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77771e-10
Minuit parameter uncertainties:
  1  20.6087
  2  0.00260018
  3  1.92575e-05
  4  3.59911
  5  12.2786
  6  5.35936e-05
  7  4.50373e-06
  8  14.7456
  9  8.85082e-05
  10  2.59659
  11  11.3398
  12  2.28988
  13  0.000123584
  14  4.74681
  15  4.31939e-06
  16  4.22791
  17  32.9559
  18  2.06626e-06
  19  15.2262
  20  3.43279e-06
  21  1.69915
  22  0.204356
  23  0.19989
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.580e-01  2.597e+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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.115e+00  1.999e-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:  9.845e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383009/likelihoodResults_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.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): 0
logL (Free Index) = 7927.19418354
delta logL = 0.000168029820998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7927.19416195
delta logL = 0.000189622346625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77168       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3717       1.0000          .0000       10.000    
     3 'Normalizat'    .98476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1151       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7927.194     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      284 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77235        2.7781        .25761E-03    .26479E-05
   2  Index         2.3712        1.5191        .11521E-01    .12847E-05
   3  Normalizat    .98467        .18952        .26188E-03   -.30388E-06
   4  Prefactor     1.1151        .19526        .25527E-03    .35629E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.772352
  Index      = 2.37116
  Normalizat = 0.984667
  Prefactor  = 1.11509
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.194     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .96E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77235        2.7158        .10305E-04   -1.5532    
   2  Index         2.3712        1.4869        .46086E-03   -.55362    
   3  Normalizat    .98467        .18975        .10475E-04   -.93546    
   4  Prefactor     1.1151        .19545        .10211E-04   -.88986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6438e-15
Minuit parameter uncertainties:
  1  2.7162
  2  1.51901
  3  0.189879
  4  0.195575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383009': 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) = 7927.19416153
delta logL = 0.000190041344467

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.724e-01  2.716e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.371e+00  1.519e+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:  1.115e+00  1.956e-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:  9.847e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 215.577 32.391

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/383009/cmap_HighResolution_499046401_499305601_4FGL_J1422.3+3223_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-09-09 11:56:45.848697', job_id='383009', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631213805.85', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.90e-04', ts2='0.10', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1002' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:56:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 383009: <4FGL_J1422.3+3223_daily_bin1002> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1002 215.577 32.3911 499046401 499305601 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 :                                   712.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

