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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin364
RA = 215.577, Dec = 32.3911
tmin = 333676801, tmax = 333936001
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='380050', job_status='RUN', time_executed='2021-09-09 11:31:45.381936', time_epoch_executed='1631212305.38' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380050/ft1_4FGL_J1422.3+3223_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380050/ft2_4FGL_J1422.3+3223_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380050/ft1_4FGL_J1422.3+3223_daily_bin364.fits outfile=/scratch/kocevski/380050/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin364.fits ra=215.577 dec=32.3911 rad=12.0 tmin=333676801.0 tmax=333936001.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.83
user 3.58
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380050/ft2_4FGL_J1422.3+3223_daily_bin364.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/380050/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin364.fits evtable="EVENTS" outfile="/scratch/kocevski/380050/ft1_filtered_4FGL_J1422.3+3223_daily_bin364.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.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380050/ft1_filtered_4FGL_J1422.3+3223_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/380050/ft2_4FGL_J1422.3+3223_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/380050/ltcube_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.fits outfile=/scratch/kocevski/380050/expmap_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.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/380050/ltcube_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.fits
.....................!
real 193.04
user 186.64
sys 5.96

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/380050/ft1_filtered_4FGL_J1422.3+3223_daily_bin364.fits scfile=/scratch/kocevski/380050/ft2_4FGL_J1422.3+3223_daily_bin364.fits outfile=/scratch/kocevski/380050/cmap_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380050/ft1_filtered_4FGL_J1422.3+3223_daily_bin364.fits scfile=/scratch/kocevski/380050/ft2_4FGL_J1422.3+3223_daily_bin364.fits outfile=/scratch/kocevski/380050/cmap_HighResolution_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.619       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0167       1.0000         .10000E-03   10000.    
     5 'norm      '    9.9436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16639       1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.411       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1262       1.0000         .10000E-03   10000.    
    21 'norm      '    .17570       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70453       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3610       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6130.138     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2223 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.624        1.6982        .22539E-05    .39720E-03
   2  Prefactor     35.997        19.668       -.24421E-04   -.37168E-02
   3  Prefactor     26.938        16.663        .25181E-04   -.78516E-02
   4  Prefactor     5.0186        4.5267       -.20090E-05   -.81139E-03
   5  norm          9.9597        3.1489        .35770E-05    .29764E-02
   6  Prefactor     .10000E-03    8.7321       -.95101E-05** at limit **
   7  norm          6.9135        4.2287        .15591E-05    .69731E-03
   8  Prefactor     11.789        3.4077        .65604E-05   -.17506E-03
   9  Prefactor     19.551        3.2301       -.56116E-05    .40796E-03
  10  Prefactor     .16263        .54519        .44468E-05    .11072E-02
  11  norm          .10000E-03    8.3736        .41133E-05** at limit **
  12  norm          9.6470        3.5645       -.72115E-07   -.20718E-03
  13  Prefactor     40.378        16.484       -.19524E-04   -.13864E-02
  14  norm          4.1730        1.5173       -.33000E-05   -.46730E-02
  15  Prefactor     .10003E-03    24.831       -.28616E-04** at limit **
  16  norm          18.613        1.2201        .11136E-05    .37538E-02
  17  Prefactor     .10000E-03    31.632        .28625E-04** at limit **
  18  norm          .10000E-03    5.2202        .78173E-06** at limit **
  19  Prefactor     .10002E-03    15.384        .23932E-05** at limit **
  20  Prefactor     5.1041        3.0381        .83497E-05    .59186E-02
  21  norm          .18226        3.2507       -.69444E-05   -.61412E-03
  22  Normalizat    .70345        .22408        .31845E-06   -.36484E-04
  23  Prefactor     1.3621        .23825        .30460E-05   -.56452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6238
  Prefactor  = 35.9968
  Prefactor  = 26.9381
  Prefactor  = 5.01863
  norm       = 9.95971
  Prefactor  = 0.000100004
  norm       = 6.91349
  Prefactor  = 11.7885
  Prefactor  = 19.5512
  Prefactor  = 0.162631
  norm       = 0.000100001
  norm       = 9.64698
  Prefactor  = 40.3783
  norm       = 4.17302
  Prefactor  = 0.000100027
  norm       = 18.613
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 5.10407
  norm       = 0.182262
  Normalizat = 0.703453
  Prefactor  = 1.36211
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.138     FROM HESSE     STATUS=OK           438 CALLS     2661 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.624        13.465        .25336E-02   -1.4917    
   2  Prefactor     35.997        27.340        .16690E-02   -1.4507    
   3  Prefactor     26.938        80.213        .19307E-02   -1.4669    
   4  Prefactor     5.0186        4.6006        .44884E-02   -1.5260    
   5  norm          9.9597        16.321        .31769E-02   -1.5077    
   6  Prefactor     .10000E-03    8.8778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9135        4.3131        .38149E-02   -1.5182    
   8  Prefactor     11.789        27.997        .29184E-02   -1.5021    
   9  Prefactor     19.551        32.726        .22645E-02   -1.4823    
  10  Prefactor     .16263        1.9794        .60215E-01   -1.5627    
  11  norm          .10000E-03    8.4327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6470        3.5630        .32252E-02   -1.5087    
  13  Prefactor     40.378        29.702        .15764E-02   -1.4436    
  14  norm          4.1730        5.5303        .49338E-02   -1.5299    
  15  Prefactor     .10003E-03    25.824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.613        7.6670        .23206E-02   -1.4845    
  17  Prefactor     .10000E-03    32.740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    15.439        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1041        7.7630        .44393E-02   -1.5256    
  21  norm          .18226        1.1835        .41419E-01   -1.5623    
  22  Normalizat    .70345        .20333        .69385E-01   -1.0376    
  23  Prefactor     1.3621        .20166        .55047E-01   -.81479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64892e-06
Minuit parameter uncertainties:
  1  13.4678
  2  27.3492
  3  80.5365
  4  4.60091
  5  16.3283
  6  0.00038356
  7  4.31328
  8  28.028
  9  32.7562
  10  1.13445
  11  0.000187655
  12  3.56309
  13  29.7125
  14  5.531
  15  0.00166109
  16  7.66739
  17  0.000790701
  18  1.4517e-05
  19  0.00117905
  20  7.76448
  21  0.928664
  22  0.203547
  23  0.201781
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.626e-01  1.134e+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.362e+00  2.018e-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.035e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/380050/likelihoodResults_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.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) = 6130.13339789
delta logL = 0.00458776132109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6130.13063677
delta logL = 0.00734887217004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36508       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0528       1.0000          .0000       10.000    
     3 'Normalizat'    .70398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3607       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6130.131     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      305 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36919        5.5195        .34723E-03    .36997E-05
   2  Index         2.0591        2.1878        .20670E-01   -.22799E-04
   3  Normalizat    .70395        .21920        .30696E-03    .22222E-06
   4  Prefactor     1.3608        .23539        .24349E-03    .46691E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.369187
  Index      = 2.05908
  Normalizat = 0.703951
  Prefactor  = 1.36076
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.131     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36919        5.4687        .13889E-04   -1.5586    
   2  Index         2.0591        2.1815        .41340E-02   -.62881    
   3  Normalizat    .70395        .21943        .12278E-04   -1.0374    
   4  Prefactor     1.3608        .23560        .97395E-05   -.81518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42554e-13
Minuit parameter uncertainties:
  1  2.84173
  2  2.30424
  3  0.219699
  4  0.235791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380050': 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) = 6130.13063221
delta logL = 0.00735343312772

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.361e+00  2.358e-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.040e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 215.577 32.391

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/380050/cmap_HighResolution_333676801_333936001_4FGL_J1422.3+3223_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-09 11:42:09.970992', job_id='380050', GAL2='1.36', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1631212929.97', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='7.35e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='364' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:42:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 380050: <4FGL_J1422.3+3223_daily_bin364> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin364> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:31 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:32 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:32 2021
Terminated at Thu Sep  9 11:42:10 2021
Results reported at Thu Sep  9 11:42:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin364 215.577 32.3911 333676801 333936001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1422.3+3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            639 sec.

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

