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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin43
RA = 215.577, Dec = 32.3911
tmin = 250473601, tmax = 250732801
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='378640', job_status='RUN', time_executed='2021-09-09 11:29:30.134854', time_epoch_executed='1631212170.13' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378640

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378640/ft1_4FGL_J1422.3+3223_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378640/ft2_4FGL_J1422.3+3223_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378640/ft1_4FGL_J1422.3+3223_daily_bin43.fits outfile=/scratch/kocevski/378640/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin43.fits ra=215.577 dec=32.3911 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.33
user 1.16
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378640/ft1_filtered_4FGL_J1422.3+3223_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/378640/ft2_4FGL_J1422.3+3223_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/378640/ltcube_250473601_250732801_4FGL_J1422.3+3223_daily_bin43.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/378640/ft2_4FGL_J1422.3+3223_daily_bin43.fits
.....................!
real 18.44
user 18.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378640/ft1_filtered_4FGL_J1422.3+3223_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/378640/ft2_4FGL_J1422.3+3223_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/378640/ltcube_250473601_250732801_4FGL_J1422.3+3223_daily_bin43.fits outfile=/scratch/kocevski/378640/expmap_250473601_250732801_4FGL_J1422.3+3223_daily_bin43.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/378640/ltcube_250473601_250732801_4FGL_J1422.3+3223_daily_bin43.fits
.....................!
real 190.59
user 185.26
sys 4.94

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378640/ft1_filtered_4FGL_J1422.3+3223_daily_bin43.fits scfile=/scratch/kocevski/378640/ft2_4FGL_J1422.3+3223_daily_bin43.fits outfile=/scratch/kocevski/378640/cmap_HighResolution_250473601_250732801_4FGL_J1422.3+3223_daily_bin43.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0931       1.0000         .10000E-03   10000.    
     5 'norm      '    .27960E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0641       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .36599E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.492       1.0000         .10000E-03   10000.    
    18 'norm      '    .64599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6632       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93915       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1882       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=   7763.088     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2554 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.421       -.64003E-06** at limit **
   2  Prefactor     .10000E-03    31.403        .35026E-05** at limit **
   3  Prefactor     .10000E-03    20.675       -.11425E-05** at limit **
   4  Prefactor     3.0932        3.8218        .10656E-06   -.25883E-03
   5  norm          .10000E-03    5.2123        .79963E-06** at limit **
   6  Prefactor     .10000E-03    5.0800        .72919E-06** at limit **
   7  norm          .10000E-03    1.8484       -.16551E-06** at limit **
   8  Prefactor     .10000E-03    3.9274        .68332E-06** at limit **
   9  Prefactor     .10000E-03    4.0212       -.68258E-06** at limit **
  10  Prefactor     5.0639        3.6618        .25428E-06   -.19121E-03
  11  norm          .10000E-03    8.0346        .64192E-06** at limit **
  12  norm          4.3987        2.1276       -.18050E-07   -.31370E-03
  13  Prefactor     .10001E-03    35.447        .55919E-06** at limit **
  14  norm          .10000E-03    2.1375        .88454E-07** at limit **
  15  Prefactor     .10000E-03    35.160        .23995E-06** at limit **
  16  norm          .31309E-01    87.738       -.55623E-04    .39931E-05
  17  Prefactor     27.495        30.518        .10105E-05   -.20198E-05
  18  norm          .64641        5.7532       -.41068E-05    .74163E-04
  19  Prefactor     .10000E-03    6.0965       -.78412E-06** at limit **
  20  Prefactor     .10000E-03    3.3685        .18401E-06** at limit **
  21  norm          2.6630        1.4915        .20701E-07    .40072E-03
  22  Normalizat    .93913        .15851       -.14401E-05   -.67608E-03
  23  Prefactor     1.1882        .16655        .18784E-05   -.78014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.09317
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.06386
  norm       = 0.0001
  norm       = 4.39866
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.031309
  Prefactor  = 27.4955
  norm       = 0.646409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66302
  Normalizat = 0.93913
  Prefactor  = 1.1882
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.088     FROM HESSE     STATUS=OK           372 CALLS     2926 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0932        3.8155        .18053E-03   -1.5356    
   5  norm          .10000E-03    30.071        .39102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8741        .11693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9394        .17057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0249        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0639        3.6690        .13554E-03   -1.5258    
  11  norm          .10000E-03    8.1068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3987        2.1309        .86451E-04   -1.5288    
  13  Prefactor     .10001E-03    36.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1503        .12578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .31309E-01    3.8322        .40171E-01   -1.5673    
  17  Prefactor     27.495        30.599        .76406E-04   -1.4659    
  18  norm          .64641        5.8615        .41659E-03   -1.5547    
  19  Prefactor     .10000E-03    6.1082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3886        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6630        1.4894        .77450E-04   -1.5382    
  22  Normalizat    .93913        .18621        .25048E-03   -.95098    
  23  Prefactor     1.1882        .19461        .23935E-03   -.86695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48785e-09
Minuit parameter uncertainties:
  1  0.000107776
  2  0.00041915
  3  4.40415e-05
  4  3.81583
  5  0.000435978
  6  1.51556e-05
  7  1.55315e-05
  8  1.22377e-05
  9  1.10111e-05
  10  3.66912
  11  6.47964e-06
  12  2.13094
  13  0.00105688
  14  1.3625e-05
  15  0.000299911
  16  0.691711
  17  30.6162
  18  3.89323
  19  1.02141e-05
  20  2.61502e-05
  21  1.48938
  22  0.186335
  23  0.194729
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.064e+00  3.669e+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.188e+00  1.947e-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.391e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.55
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.08e-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) = 7762.91394413
delta logL = 0.173986268648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7762.9133915
delta logL = 0.174538895646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3010       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7783       1.0000          .0000       10.000    
     3 'Normalizat'    .91233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2057       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=   7762.913     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      268 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3022        52.752        .48563E-02    .34990E-03
   2  Index         2.7789        6.3767        .14193        .14480E-03
   3  Normalizat    .91223        .69582E-01    .45059E-01    .18510E-04
   4  Prefactor     1.2057        .61326E-01    .53790E-01    .42907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30222
  Index      = 2.77885
  Normalizat = 0.912234
  Prefactor  = 1.20567
 **********
 **   18 **HESSE 
 **********

 FCN=   7762.913     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3022        3.7214        .10640E-03   -1.5293    
   2  Index         2.7789        .68566        .73463E-02   -.46031    
   3  Normalizat    .91223        .18516        .25368E-03   -.96032    
   4  Prefactor     1.2057        .19115        .23783E-03   -.86157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35836e-11
Minuit parameter uncertainties:
  1  3.7216
  2  0.688363
  3  0.18529
  4  0.191263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378640': 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) = 7762.91339049
delta logL = 0.174539909739

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.302e+00  3.722e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.779e+00  6.884e-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:  1.206e+00  1.913e-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.122e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.78 +/- 0.69
Photon Flux (Free Index): 6.54e-08 +/- 4.84e-08
Energy Flux (Free Index): 1.49e-05 +/- 9.32e-06

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/378640/cmap_HighResolution_250473601_250732801_4FGL_J1422.3+3223_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.49e-05', photon_flux_error='3.30e-08', dlogl='1.75e-01', energy_flux='1.49e-05', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-09 11:40:09.562244', photon_index_error2='0.69', photon_index2='2.78', ts='4.55', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='9.32e-06', EG='0.94', time_epoch_completed='1631212809.56', return_code='0', job_id='378640', GAL2='1.21', EG2='0.91', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.84e-08', ts2='4.96', photon_index='2.40' WHERE bin_id='43' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:40:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 378640: <4FGL_J1422.3+3223_daily_bin43> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin43> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:26:16 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:26:18 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:26:18 2021
Terminated at Thu Sep  9 11:40:10 2021
Results reported at Thu Sep  9 11:40:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin43 215.577 32.3911 250473601 250732801 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 :                                   638.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

