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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1021
RA = 215.577, Dec = 32.3911
tmin = 503971201, tmax = 504230401
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='383039', job_status='RUN', time_executed='2021-09-09 11:41:45.117115', time_epoch_executed='1631212905.12' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383039/ft1_4FGL_J1422.3+3223_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383039/ft2_4FGL_J1422.3+3223_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383039/ft1_4FGL_J1422.3+3223_daily_bin1021.fits outfile=/scratch/kocevski/383039/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1021.fits ra=215.577 dec=32.3911 rad=12.0 tmin=503971201.0 tmax=504230401.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.04
user 3.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383039/ft2_4FGL_J1422.3+3223_daily_bin1021.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/383039/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1021.fits evtable="EVENTS" outfile="/scratch/kocevski/383039/ft1_filtered_4FGL_J1422.3+3223_daily_bin1021.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.87
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383039/ft1_filtered_4FGL_J1422.3+3223_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/383039/ft2_4FGL_J1422.3+3223_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/383039/ltcube_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.fits outfile=/scratch/kocevski/383039/expmap_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.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/383039/ltcube_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.fits
.....................!
real 189.61
user 184.98
sys 4.23

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/383039/ft1_filtered_4FGL_J1422.3+3223_daily_bin1021.fits scfile=/scratch/kocevski/383039/ft2_4FGL_J1422.3+3223_daily_bin1021.fits outfile=/scratch/kocevski/383039/cmap_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.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.53
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383039/ft1_filtered_4FGL_J1422.3+3223_daily_bin1021.fits scfile=/scratch/kocevski/383039/ft2_4FGL_J1422.3+3223_daily_bin1021.fits outfile=/scratch/kocevski/383039/cmap_HighResolution_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36633       1.0000         .10000E-03   10000.    
     5 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3060       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8259       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5979       1.0000         .10000E-03   10000.    
    11 'norm      '    22.554       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.722       1.0000         .10000E-03   10000.    
    14 'norm      '    .13606E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.0523       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17209E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0748       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0426       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1285       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=   5610.705     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     2957 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2852        .18142E-02** at limit **
   2  Prefactor     .60760        292.79        .59746E-02    .68396E-04
   3  Prefactor     .10000E-03    44.302        .18142E-02** at limit **
   4  Prefactor     .36454        11.552        .22450E-02    .36409E-03
   5  norm          .10000E-03    17.293        .18142E-02** at limit **
   6  Prefactor     7.3008        10.514        .14839E-03   -.80291E-04
   7  norm          .10000E-03    2.7324        .11945E-02** at limit **
   8  Prefactor     .10000E-03    14.351        .18142E-02** at limit **
   9  Prefactor     9.8176        20.709        .12784E-03   -.64209E-04
  10  Prefactor     2.5983        3.6414        .16157E-03   -.28061E-03
  11  norm          22.539        22.313        .84342E-04   -.10554E-03
  12  norm          2.4188        2.1950        .10198E-03   -.24079E-04
  13  Prefactor     22.716        25.427        .84031E-04   -.10558E-03
  14  norm          .10003E-03    10.333        .29727E-02** at limit **
  15  Prefactor     .10000E-03    16.545        .18142E-02** at limit **
  16  norm          7.0511        5.6184        .75530E-03   -.12563E-02
  17  Prefactor     .10000E-03    109.41        .18142E-02** at limit **
  18  norm          .10000E-03    8.2670        .18142E-02** at limit **
  19  Prefactor     .10000E-03    9.7089        .18142E-02** at limit **
  20  Prefactor     .10000E-03    6.5924        .18142E-02** at limit **
  21  norm          1.0740        1.7342        .12231E-03   -.59960E-03
  22  Normalizat    1.0427        .23043        .25125E-03   -.26712E-03
  23  Prefactor     1.1285        .23278        .25164E-03   -.28514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.607602
  Prefactor  = 0.0001
  Prefactor  = 0.364544
  norm       = 0.0001
  Prefactor  = 7.30078
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.81763
  Prefactor  = 2.59829
  norm       = 22.5393
  norm       = 2.41879
  Prefactor  = 22.7157
  norm       = 0.000100026
  Prefactor  = 0.0001
  norm       = 7.05108
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.074
  Normalizat = 1.04272
  Prefactor  = 1.12855
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.705     FROM HESSE     STATUS=OK           350 CALLS     3307 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .60760        298.21        .23898E-03   -1.5552    
   3  Prefactor     .10000E-03    44.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36454        11.503        .89798E-04   -1.5587    
   5  norm          .10000E-03    17.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3008        10.514        .59356E-05   -1.5168    
   7  norm          .10000E-03    2.7335        .23889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8176        20.699        .51135E-05   -1.5081    
  10  Prefactor     2.5983        3.6402        .64629E-05   -1.5386    
  11  norm          22.539        22.313        .33737E-05   -1.4758    
  12  norm          2.4188        2.1949        .40793E-05   -1.5397    
  13  Prefactor     22.716        25.421        .16806E-04   -1.4754    
  14  norm          .10003E-03    10.397        .59454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0511        5.6167        .30212E-04   -1.5177    
  17  Prefactor     .10000E-03    109.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.2733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0740        1.7333        .48926E-05   -1.5501    
  22  Normalizat    1.0427        .22960        .50250E-04   -.91613    
  23  Prefactor     1.1285        .23289        .50328E-04   -.88559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30549e-09
Minuit parameter uncertainties:
  1  1.5847e-06
  2  27.0558
  3  3.02247e-06
  4  4.09583
  5  0.000122727
  6  10.5163
  7  1.86172e-05
  8  0.0002347
  9  20.7144
  10  3.64049
  11  22.3211
  12  2.19502
  13  25.4334
  14  0.00104918
  15  0.000103097
  16  5.6171
  17  0.000535827
  18  3.70452e-05
  19  0.000123546
  20  3.96513e-05
  21  1.73342
  22  0.229817
  23  0.233103
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.598e+00  3.640e+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.129e+00  2.331e-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.043e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383039/likelihoodResults_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.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) = 5610.22569927
delta logL = 0.479226676376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5610.22002835
delta logL = 0.484897591737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7126       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4790       1.0000          .0000       10.000    
     3 'Normalizat'    .97717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1697       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=   5610.220     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      308 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7129        3.3496        .78886E-04    .64895E-03
   2  Index         3.4790        1.3304        .70158E-02    .97353E-04
   3  Normalizat    .97749        .23401        .25856E-03    .11186E-03
   4  Prefactor     1.1694        .23400        .24775E-03    .10192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71286
  Index      = 3.47904
  Normalizat = 0.977494
  Prefactor  = 1.16936
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.220     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7129        2.6429        .31554E-05   -1.5446    
   2  Index         3.4790        1.0518        .28063E-03   -.30909    
   3  Normalizat    .97749        .23350        .10342E-04   -.93788    
   4  Prefactor     1.1694        .23358        .49550E-04   -.87279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15063e-11
Minuit parameter uncertainties:
  1  2.6431
  2  1.06051
  3  0.233745
  4  0.233791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383039': 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) = 5610.22002719
delta logL = 0.484898759029

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.713e+00  2.643e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.479e+00  1.061e+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.169e+00  2.338e-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.775e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 215.577 32.391
Photon Index (Free Index): 3.48 +/- 1.06
Photon Flux (Free Index): 7.67e-08 +/- 7.54e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.15e-05

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/383039/cmap_HighResolution_503971201_504230401_4FGL_J1422.3+3223_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='4.85e-01', photon_flux2='7.67e-08', job_status='DONE', time_completed='2021-09-09 11:52:07.842496', photon_index_error2='1.06', photon_index2='3.48', ts='0.86', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.15e-05', EG='1.04', time_epoch_completed='1631213527.84', return_code='0', job_id='383039', GAL2='1.17', EG2='0.98', return_code2='0', photon_flux_error2='7.54e-08', ts2='1.93', photon_index='2.40' WHERE bin_id='1021' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:52:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 383039: <4FGL_J1422.3+3223_daily_bin1021> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1021 215.577 32.3911 503971201 504230401 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 :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            638 sec.

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

