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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1438
RA = 215.577, Dec = 32.3911
tmin = 612057601, tmax = 612316801
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='384828', job_status='RUN', time_executed='2021-09-09 11:47:14.337553', time_epoch_executed='1631213234.34' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384828/ft1_4FGL_J1422.3+3223_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384828/ft2_4FGL_J1422.3+3223_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384828/ft1_4FGL_J1422.3+3223_daily_bin1438.fits outfile=/scratch/kocevski/384828/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1438.fits ra=215.577 dec=32.3911 rad=12.0 tmin=612057601.0 tmax=612316801.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.53
user 4.26
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384828/ft1_filtered_4FGL_J1422.3+3223_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/384828/ft2_4FGL_J1422.3+3223_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/384828/ltcube_612057601_612316801_4FGL_J1422.3+3223_daily_bin1438.fits outfile=/scratch/kocevski/384828/expmap_612057601_612316801_4FGL_J1422.3+3223_daily_bin1438.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/384828/ltcube_612057601_612316801_4FGL_J1422.3+3223_daily_bin1438.fits
.....................!
real 190.48
user 185.50
sys 4.48

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/384828/ft1_filtered_4FGL_J1422.3+3223_daily_bin1438.fits scfile=/scratch/kocevski/384828/ft2_4FGL_J1422.3+3223_daily_bin1438.fits outfile=/scratch/kocevski/384828/cmap_612057601_612316801_4FGL_J1422.3+3223_daily_bin1438.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/384828/ft1_filtered_4FGL_J1422.3+3223_daily_bin1438.fits scfile=/scratch/kocevski/384828/ft2_4FGL_J1422.3+3223_daily_bin1438.fits outfile=/scratch/kocevski/384828/cmap_HighResolution_612057601_612316801_4FGL_J1422.3+3223_daily_bin1438.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/384828/ft1_filtered_4FGL_J1422.3+3223_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/384828/ft2_4FGL_J1422.3+3223_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384828/Model_4FGL_J1422.3+3223_daily_bin1438.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/384828/ft1_filtered_4FGL_J1422.3+3223_daily_bin1438.fits.....................!
real 45.15
user 43.77
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18384E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9191       1.0000         .10000E-03   10000.    
     7 'norm      '    .21780E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.936       1.0000         .10000E-03   10000.    
    11 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.8167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.021       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7557       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.322       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75214       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1714       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=   5875.343     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2280 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9937       -.11375E-06** at limit **
   2  Prefactor     .10000E-03    12.788       -.29294E-06** at limit **
   3  Prefactor     .10000E-03    302.66        .41925E-05** at limit **
   4  Prefactor     .10003E-03    2.2218       -.72778E-06** at limit **
   5  norm          .10000E-03    5.1472       -.15008E-06** at limit **
   6  Prefactor     2.9176        13.288       -.30017E-05    .53156E-04
   7  norm          .10008E-03    2.4176       -.20027E-06** at limit **
   8  Prefactor     .14277        80.412       -.47450E-05    .82701E-04
   9  Prefactor     .10000E-03    4.3384       -.16703E-06** at limit **
  10  Prefactor     17.933        4.8321       -.20685E-06    .49714E-03
  11  norm          .10000E-03    7.7073        .19161E-06** at limit **
  12  norm          7.8165        3.5131       -.27301E-06    .12662E-03
  13  Prefactor     .10000E-03    11.293        .16590E-06** at limit **
  14  norm          .10000E-03    5.1635       -.38217E-06** at limit **
  15  Prefactor     .10000E-03    11.880        .11362E-06** at limit **
  16  norm          .10000E-03    3.0365       -.29283E-06** at limit **
  17  Prefactor     19.009        23.926        .14127E-06   -.22675E-04
  18  norm          6.7554        6.7867       -.10228E-06    .47543E-04
  19  Prefactor     .10000E-03    10.275       -.11714E-05** at limit **
  20  Prefactor     18.323        8.5033        .18534E-06    .37326E-03
  21  norm          .10000E-03    .92719       -.50836E-06** at limit **
  22  Normalizat    .75223        .16378        .89488E-06    .41093E-03
  23  Prefactor     1.1715        .18226        .16069E-05    .30474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 2.91757
  norm       = 0.000100076
  Prefactor  = 0.142775
  Prefactor  = 0.0001
  Prefactor  = 17.9334
  norm       = 0.0001
  norm       = 7.81648
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.0091
  norm       = 6.75543
  Prefactor  = 0.0001
  Prefactor  = 18.3229
  norm       = 0.0001
  Normalizat = 0.752229
  Prefactor  = 1.17153
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.343     FROM HESSE     STATUS=OK           378 CALLS     2658 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    307.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    50.574        .20752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1643        .16986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9176        12.870        .23778E-03   -1.5366    
   7  norm          .10008E-03    18.217        .19825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14277        7.8554        .63617E-01   -1.5632    
   9  Prefactor     .10000E-03    4.3440        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.933        4.8278        .83287E-04   -1.4861    
  11  norm          .10000E-03    7.7367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.8165        3.5175        .92191E-04   -1.5149    
  13  Prefactor     .10000E-03    11.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3962        .34054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.6427        .25966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.009        23.951        .91835E-04   -1.4836    
  18  norm          6.7554        6.7850        .15437E-03   -1.5188    
  19  Prefactor     .10000E-03    10.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.323        8.3456        .93569E-04   -1.4852    
  21  norm          .10000E-03    1.6849        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75223        .19467        .25176E-03   -1.0187    
  23  Prefactor     1.1715        .21519        .22906E-03   -.87212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.254e-09
Minuit parameter uncertainties:
  1  3.04744e-06
  2  1.96525e-05
  3  0.00128119
  4  0.00237203
  5  3.45286e-06
  6  12.2598
  7  0.00235052
  8  2.11761
  9  3.48864e-06
  10  4.82787
  11  3.97926e-06
  12  3.5176
  13  4.05459e-05
  14  1.19049e-05
  15  1.81888e-05
  16  0.000108211
  17  23.9633
  18  6.78581
  19  5.21782e-07
  20  8.34611
  21  2.92089e-05
  22  0.194846
  23  0.215349
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.793e+01  4.828e+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.172e+00  2.153e-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:  7.522e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.93
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 4.35e-08
Energy Flux (Fixed Index): 5.29e-05 +/- 1.42e-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) = 5873.60304811
delta logL = 1.73981634862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.44713681
delta logL = 1.89572764912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.502       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9149       1.0000          .0000       10.000    
     3 'Normalizat'    .81916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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=   5873.447     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.493        6.8306        .21595E-02   -.18426E-04
   2  Index         1.9146        .24722        .10101       -.12813E-03
   3  Normalizat    .81937        .16107        .43860E-01   -.18983E-03
   4  Prefactor     1.1254        .17669        .52749E-01   -.23274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4926
  Index      = 1.91463
  Normalizat = 0.819366
  Prefactor  = 1.12537
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.447     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.493        6.3720        .86379E-04   -1.4780    
   2  Index         1.9146        .24180        .42523E-02   -.66502    
   3  Normalizat    .81937        .19361        .24273E-03   -.99354    
   4  Prefactor     1.1254        .21177        .23321E-03   -.88660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04282e-10
Minuit parameter uncertainties:
  1  6.37218
  2  0.241954
  3  0.193774
  4  0.211929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384828': 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) = 5873.44713447
delta logL = 1.89572999235

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.149e+01  6.372e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.915e+00  2.420e-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.125e+00  2.119e-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:  8.194e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 48.43
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.91 +/- 0.24
Photon Flux (Free Index): 1.11e-07 +/- 4.29e-08
Energy Flux (Free Index): 9.58e-05 +/- 4.82e-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/384828/cmap_HighResolution_612057601_612316801_4FGL_J1422.3+3223_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='9.58e-05', photon_flux_error='4.35e-08', dlogl='1.90e+00', energy_flux='5.29e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-09 11:56:43.625574', photon_index_error2='0.24', photon_index2='1.91', ts='44.93', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='0.75', time_epoch_completed='1631213803.63', return_code='0', job_id='384828', GAL2='1.13', EG2='0.82', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.29e-08', ts2='48.43', photon_index='2.40' WHERE bin_id='1438' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:56:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 384828: <4FGL_J1422.3+3223_daily_bin1438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1438 215.577 32.3911 612057601 612316801 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 :                                   543.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            590 sec.

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

