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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin872
RA = 215.577, Dec = 32.3911
tmin = 465350401, tmax = 465609601
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='382804', job_status='RUN', time_executed='2021-09-09 11:41:20.325823', time_epoch_executed='1631212880.33' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='872'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382804/ft1_4FGL_J1422.3+3223_daily_bin872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382804/ft2_4FGL_J1422.3+3223_daily_bin872.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382804/ft1_4FGL_J1422.3+3223_daily_bin872.fits outfile=/scratch/kocevski/382804/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin872.fits ra=215.577 dec=32.3911 rad=12.0 tmin=465350401.0 tmax=465609601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.41
user 3.17
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382804/ft2_4FGL_J1422.3+3223_daily_bin872.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/382804/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin872.fits evtable="EVENTS" outfile="/scratch/kocevski/382804/ft1_filtered_4FGL_J1422.3+3223_daily_bin872.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382804/ft1_filtered_4FGL_J1422.3+3223_daily_bin872.fits" evtable="EVENTS" scfile=/scratch/kocevski/382804/ft2_4FGL_J1422.3+3223_daily_bin872.fits sctable="SC_DATA" outfile=/scratch/kocevski/382804/ltcube_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.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/382804/ft2_4FGL_J1422.3+3223_daily_bin872.fits
.....................!
real 12.04
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382804/ft1_filtered_4FGL_J1422.3+3223_daily_bin872.fits evtable="EVENTS" scfile=/scratch/kocevski/382804/ft2_4FGL_J1422.3+3223_daily_bin872.fits sctable="SC_DATA" expcube=/scratch/kocevski/382804/ltcube_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.fits outfile=/scratch/kocevski/382804/expmap_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.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/382804/ltcube_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.fits
.....................!
real 191.10
user 185.08
sys 5.64

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382804/ft1_filtered_4FGL_J1422.3+3223_daily_bin872.fits scfile=/scratch/kocevski/382804/ft2_4FGL_J1422.3+3223_daily_bin872.fits outfile=/scratch/kocevski/382804/cmap_HighResolution_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.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/382804/ft1_filtered_4FGL_J1422.3+3223_daily_bin872.fits evtable="EVENTS" scfile=/scratch/kocevski/382804/ft2_4FGL_J1422.3+3223_daily_bin872.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382804/Model_4FGL_J1422.3+3223_daily_bin872.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/382804/ft1_filtered_4FGL_J1422.3+3223_daily_bin872.fits.....................!
real 50.75
user 49.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14821E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3492       1.0000         .10000E-03   10000.    
    11 'norm      '    17.274       1.0000         .10000E-03   10000.    
    12 'norm      '    17.500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1911       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
    16 'norm      '    28.572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.765       1.0000         .10000E-03   10000.    
    18 'norm      '    15.552       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0210       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3692       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66725       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=   6277.561     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     3279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3974        .18142E-02** at limit **
   2  Prefactor     .10000E-03    18.985        .10531    ** at limit **
   3  Prefactor     .10000E-03    28.086        .18142E-02** at limit **
   4  Prefactor     .10000E-03    .80155        .69207E-03** at limit **
   5  norm          .10000E-03    4.9230        .17153E-02** at limit **
   6  Prefactor     .10000E-03    10.486        .18142E-02** at limit **
   7  norm          2.7121        2.9668        .13836E-03    .25234E-03
   8  Prefactor     .10000E-03    16.355        .18142E-02** at limit **
   9  Prefactor     14.006        15.516        .10720E-03    .31180E-04
  10  Prefactor     3.3497        3.0539        .12741E-03    .10172E-03
  11  norm          17.288        14.351        .96364E-04    .21026E-03
  12  norm          17.501        4.7503        .86131E-04    .82232E-04
  13  Prefactor     1.2102        120.12        .41727E-02    .27008E-04
  14  norm          .10000E-03    2.0669        .11095E-02** at limit **
  15  Prefactor     11.018        22.025        .12063E-03    .22524E-04
  16  norm          28.572        7.7453        .74951E-04   -.14865E-04
  17  Prefactor     30.770        32.675        .72236E-04    .19201E-04
  18  norm          15.556        9.9260        .10156E-03   -.22343E-04
  19  Prefactor     .10000E-03    7.6303        .18142E-02** at limit **
  20  Prefactor     .10000E-03    9.5941        .36285E-03** at limit **
  21  norm          2.0207        1.3878        .74579E-04   -.70274E-04
  22  Normalizat    1.3692        .21853        .22111E-03    .98074E-04
  23  Prefactor     .66716        .22355        .32169E-03    .25445E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7121
  Prefactor  = 0.0001
  Prefactor  = 14.0057
  Prefactor  = 3.34965
  norm       = 17.2879
  norm       = 17.5011
  Prefactor  = 1.21018
  norm       = 0.0001
  Prefactor  = 11.018
  norm       = 28.5722
  Prefactor  = 30.7702
  norm       = 15.5558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02068
  Normalizat = 1.36921
  Prefactor  = 0.667163
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.561     FROM HESSE     STATUS=OK           358 CALLS     3637 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.924        .11078       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .80156        .13841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.9233        .34306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7121        2.9666        .55343E-05   -1.5379    
   8  Prefactor     .10000E-03    16.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.006        15.509        .42878E-05   -1.4959    
  10  Prefactor     3.3497        3.0536        .50964E-05   -1.5342    
  11  norm          17.288        14.351        .19273E-04   -1.4876    
  12  norm          17.501        4.7499        .34452E-05   -1.4871    
  13  Prefactor     1.2102        119.68        .16691E-03   -1.5488    
  14  norm          .10000E-03    2.0670        .22189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.018        22.018        .48254E-05   -1.5044    
  16  norm          28.572        7.7448        .29980E-05   -1.4638    
  17  Prefactor     30.770        32.666        .28895E-05   -1.4598    
  18  norm          15.556        9.9260        .20312E-04   -1.4919    
  19  Prefactor     .10000E-03    7.6327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5946        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0207        1.3877        .29832E-05   -1.5424    
  22  Normalizat    1.3692        .21820        .44221E-04   -.81523    
  23  Prefactor     .66716        .22365        .12868E-04   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54233e-10
Minuit parameter uncertainties:
  1  2.50423e-05
  2  4.92677e-05
  3  0.0001129
  4  1.18773e-06
  5  9.15399e-06
  6  3.58405e-05
  7  2.96676
  8  0.000172573
  9  15.513
  10  3.05374
  11  14.3534
  12  4.74996
  13  24.1184
  14  1.29306e-06
  15  22.0342
  16  7.74504
  17  32.6852
  18  9.92702
  19  4.35498e-05
  20  1.66655e-05
  21  1.38775
  22  0.218346
  23  0.223954
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.350e+00  3.054e+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:  6.672e-01  2.240e-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.369e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 9.88e-06 +/- 9.01e-06

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

Saving results to:
/scratch/kocevski/382804/likelihoodResults_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.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) = 6277.40495818
delta logL = 0.15638968733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.40467416
delta logL = 0.156673707529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3279       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0465       1.0000          .0000       10.000    
     3 'Normalizat'    1.3784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6277.405     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      270 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3344        138.16        .48408E-02    .51588E-03
   2  Index         2.0478        5.7143        .24340        .15043E-03
   3  Normalizat    1.3783        .85781E-01    .49870E-01    .31517E-05
   4  Prefactor     .65873        .92669E-01    .73082E-01    .39214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.33443
  Index      = 2.04781
  Normalizat = 1.37829
  Prefactor  = 0.658732
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.405     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3344        3.8995        .13952E-03   -1.5292    
   2  Index         2.0478        .58036        .85350E-02   -.63160    
   3  Normalizat    1.3783        .20882        .22047E-03   -.81259    
   4  Prefactor     .65873        .22026        .32349E-03   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84552e-10
Minuit parameter uncertainties:
  1  3.89971
  2  0.582378
  3  0.208944
  4  0.220548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382804': 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) = 6277.40466924
delta logL = 0.156678625001

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.334e+00  3.900e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.048e+00  5.824e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  6.587e-01  2.205e-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.378e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.05 +/- 0.58
Photon Flux (Free Index): 2.56e-08 +/- 2.46e-08
Energy Flux (Free Index): 1.58e-05 +/- 2.03e-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/382804/cmap_HighResolution_465350401_465609601_4FGL_J1422.3+3223_daily_bin872.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='1.58e-05', photon_flux_error='2.75e-08', dlogl='1.57e-01', energy_flux='9.88e-06', photon_flux2='2.56e-08', job_status='DONE', time_completed='2021-09-09 11:52:58.508681', photon_index_error2='0.58', photon_index2='2.05', ts='1.77', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='2.03e-05', EG='1.37', time_epoch_completed='1631213578.51', return_code='0', job_id='382804', GAL2='0.66', EG2='1.38', return_code2='0', energy_flux_error='9.01e-06', photon_flux_error2='2.46e-08', ts2='2.09', photon_index='2.40' WHERE bin_id='872' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:52:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 382804: <4FGL_J1422.3+3223_daily_bin872> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin872 215.577 32.3911 465350401 465609601 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 :                                   694.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

