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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin164
RA = 215.577, Dec = 32.3911
tmin = 281836801, tmax = 282096001
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='379759', job_status='RUN', time_executed='2021-09-09 11:31:29.425272', time_epoch_executed='1631212289.43' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379759/ft1_4FGL_J1422.3+3223_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379759/ft2_4FGL_J1422.3+3223_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379759/ft1_4FGL_J1422.3+3223_daily_bin164.fits outfile=/scratch/kocevski/379759/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin164.fits ra=215.577 dec=32.3911 rad=12.0 tmin=281836801.0 tmax=282096001.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.01
user 3.74
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/379759/ft2_4FGL_J1422.3+3223_daily_bin164.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/379759/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/379759/ft1_filtered_4FGL_J1422.3+3223_daily_bin164.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379759/ft1_filtered_4FGL_J1422.3+3223_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/379759/ft2_4FGL_J1422.3+3223_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/379759/ltcube_281836801_282096001_4FGL_J1422.3+3223_daily_bin164.fits outfile=/scratch/kocevski/379759/expmap_281836801_282096001_4FGL_J1422.3+3223_daily_bin164.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/379759/ltcube_281836801_282096001_4FGL_J1422.3+3223_daily_bin164.fits
.....................!
real 191.15
user 186.26
sys 4.49

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/379759/ft1_filtered_4FGL_J1422.3+3223_daily_bin164.fits scfile=/scratch/kocevski/379759/ft2_4FGL_J1422.3+3223_daily_bin164.fits outfile=/scratch/kocevski/379759/cmap_281836801_282096001_4FGL_J1422.3+3223_daily_bin164.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379759/ft1_filtered_4FGL_J1422.3+3223_daily_bin164.fits scfile=/scratch/kocevski/379759/ft2_4FGL_J1422.3+3223_daily_bin164.fits outfile=/scratch/kocevski/379759/cmap_HighResolution_281836801_282096001_4FGL_J1422.3+3223_daily_bin164.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/379759/ft1_filtered_4FGL_J1422.3+3223_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/379759/ft2_4FGL_J1422.3+3223_daily_bin164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/379759/Model_4FGL_J1422.3+3223_daily_bin164.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/379759/ft1_filtered_4FGL_J1422.3+3223_daily_bin164.fits.....................!
real 45.60
user 44.21
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    3.3453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6198       1.0000         .10000E-03   10000.    
     5 'norm      '    .14444E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4177       1.0000         .10000E-03   10000.    
    11 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0952       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8039       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6900       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4493       1.0000         .10000E-03   10000.    
    21 'norm      '    .10473E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2099       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82612       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=   5655.796     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2172 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1094       -.34361E-06** at limit **
   2  Prefactor     3.3432        13.193        .58519E-05    .39644E-03
   3  Prefactor     .10000E-03    90.498        .27785E-05** at limit **
   4  Prefactor     2.6205        3.6701       -.15585E-06    .38553E-04
   5  norm          .10010E-03    34.147        .10367E-04** at limit **
   6  Prefactor     .10000E-03    9.8916        .63565E-06** at limit **
   7  norm          3.1994        4.3518        .75078E-06    .18754E-03
   8  Prefactor     .10000E-03    7.2603       -.20727E-05** at limit **
   9  Prefactor     .10000E-03    6.8381        .17825E-05** at limit **
  10  Prefactor     8.4189        4.4560        .77876E-07    .26656E-04
  11  norm          .10000E-03    12.366        .71811E-06** at limit **
  12  norm          4.0953        2.4252        .55585E-09    .11993E-05
  13  Prefactor     .10000E-03    19.074        .13807E-05** at limit **
  14  norm          5.8044        5.0961        .14600E-06    .14938E-03
  15  Prefactor     .10000E-03    14.074       -.23536E-05** at limit **
  16  norm          3.6902        3.0484        .49971E-08    .13604E-05
  17  Prefactor     .10000E-03    9.7387        .99595E-07** at limit **
  18  norm          .10000E-03    2.6724        .85045E-08** at limit **
  19  Prefactor     .10000E-03    31.376        .42568E-06** at limit **
  20  Prefactor     1.4486        3.7461        .19466E-06    .10399E-03
  21  norm          .10000E-03    .97312        .29842E-07** at limit **
  22  Normalizat    1.2097        .17840        .95419E-08   -.15309E-03
  23  Prefactor     .82622        .18321       -.64836E-07   -.64901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.34321
  Prefactor  = 0.0001
  Prefactor  = 2.62053
  norm       = 0.0001001
  Prefactor  = 0.0001
  norm       = 3.19939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.41885
  norm       = 0.0001
  norm       = 4.09528
  Prefactor  = 0.0001
  norm       = 5.80439
  Prefactor  = 0.0001
  norm       = 3.69017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.44859
  norm       = 0.0001
  Normalizat = 1.20965
  Prefactor  = 0.826223
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.796     FROM HESSE     STATUS=OK           368 CALLS     2540 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3432        17.003        .11064E-02   -1.5342    
   3  Prefactor     .10000E-03    90.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6205        3.6571        .16303E-03   -1.5384    
   5  norm          .10010E-03    54.657        .47866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1994        4.3500        .17476E-03   -1.5350    
   8  Prefactor     .10000E-03    7.3798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4189        4.4604        .10913E-03   -1.5128    
  11  norm          .10000E-03    12.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0953        2.4273        .87301E-04   -1.5303    
  13  Prefactor     .10000E-03    19.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8044        5.1146        .76852E-03   -1.5226    
  15  Prefactor     .10000E-03    14.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6902        3.0470        .11609E-03   -1.5324    
  17  Prefactor     .10000E-03    9.7471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6748        .12007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4486        3.6678        .22585E-03   -1.5467    
  21  norm          .10000E-03    2.2633        .14220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2097        .20025        .21622E-03   -.86305    
  23  Prefactor     .82622        .20814        .27179E-03   -.98769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05207e-09
Minuit parameter uncertainties:
  1  7.27927e-06
  2  15.0857
  3  0.000204912
  4  3.65744
  5  0.00468921
  6  3.4311e-06
  7  4.35043
  8  8.72912e-05
  9  3.77294e-05
  10  4.46056
  11  2.38648e-05
  12  2.42737
  13  4.65121e-05
  14  5.11497
  15  0.000102164
  16  3.04715
  17  1.8494e-07
  18  4.54999e-07
  19  4.86927e-05
  20  3.66836
  21  9.37078e-07
  22  0.200377
  23  0.208341
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  8.419e+00  4.461e+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:  8.262e-01  2.083e-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.210e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.74
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.59e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.32e-05

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) = 5655.79552442
delta logL = 6.14407545072e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5655.79550125
delta logL = 8.46097955218e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3938       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4085       1.0000          .0000       10.000    
     3 'Normalizat'    1.2090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82664       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=   5655.796     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3919        92.558        .34592E-02    .48078E-03
   2  Index         2.4082        6.1606        .13632        .19041E-03
   3  Normalizat    1.2090        .12802        .34675E-01    .45069E-04
   4  Prefactor     .82666        .90858E-01    .44063E-01   -.30631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39186
  Index      = 2.40815
  Normalizat = 1.209
  Prefactor  = 0.826661
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.796     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3919        5.0123        .10872E-03   -1.5129    
   2  Index         2.4082        .56524        .67567E-02   -.54494    
   3  Normalizat    1.2090        .20238        .21627E-03   -.86325    
   4  Prefactor     .82666        .20887        .27173E-03   -.98753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91588e-10
Minuit parameter uncertainties:
  1  5.01252
  2  0.566903
  3  0.202508
  4  0.209072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379759': 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) = 5655.79550065
delta logL = 8.5213661805e-05

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  8.392e+00  5.013e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.408e+00  5.669e-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:  8.267e-01  2.091e-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.209e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.74
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.41 +/- 0.57
Photon Flux (Free Index): 7.63e-08 +/- 5.31e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.48e-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/379759/cmap_HighResolution_281836801_282096001_4FGL_J1422.3+3223_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.59e-08', energy_flux2='2.48e-05', photon_flux_error='4.02e-08', dlogl='8.52e-05', energy_flux='2.48e-05', photon_flux2='7.63e-08', job_status='DONE', time_completed='2021-09-09 11:40:20.144592', photon_index_error2='0.57', photon_index2='2.41', ts='9.74', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.21', time_epoch_completed='1631212820.14', return_code='0', job_id='379759', GAL2='0.83', EG2='1.21', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.31e-08', ts2='9.74', photon_index='2.40' WHERE bin_id='164' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:40:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 379759: <4FGL_J1422.3+3223_daily_bin164> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin164> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:11 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:31:12 2021
Terminated at Thu Sep  9 11:40:20 2021
Results reported at Thu Sep  9 11:40:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin164 215.577 32.3911 281836801 282096001 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 :                                   526.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   548 sec.
    Turnaround time :                            549 sec.

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

