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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin489
RA = 65.5343, Dec = -6.741
tmin = 366076801, tmax = 366336001
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='397232', job_status='RUN', time_executed='2021-08-20 12:53:00.213786', time_epoch_executed='1629489180.21' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397232

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397232/ft1_4FGL_J0422.1-0644_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397232/ft1_4FGL_J0422.1-0644_daily_bin489.fits outfile=/scratch/kocevski/397232/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin489.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=366076801.0 tmax=366336001.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 6.31
user 5.14
sys 1.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.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/397232/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.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 1.44
user 0.32
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/397232/ltcube_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.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/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits
.....................!
real 13.24
user 11.84
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/397232/ltcube_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.fits outfile=/scratch/kocevski/397232/expmap_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.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/397232/ltcube_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.fits
.....................!
real 194.86
user 187.52
sys 6.90

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 144 point sources and 0 extended sources

Setting source of interest to:
4FGL J0422.1-0644 @ 65.5343 -6.741

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits scfile=/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits outfile=/scratch/kocevski/397232/cmap_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.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=65.5343 yref=-6.741 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 1.46
user 0.36
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits scfile=/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits outfile=/scratch/kocevski/397232/cmap_HighResolution_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.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=65.5343 yref=-6.741 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 1.46
user 0.38
sys 1.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397232/Model_4FGL_J0422.1-0644_daily_bin489.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/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits....................!
real 93.61
user 90.81
sys 2.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits', '/scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits', expMap='/scratch/kocevski/397232/expmap_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.fits', expCube='/scratch/kocevski/397232/ltcube_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397232/Model_4FGL_J0422.1-0644_daily_bin489.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0422.1-0644'

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/397232/ft1_filtered_4FGL_J0422.1-0644_daily_bin489.fits
Spacecraft file(s): /scratch/kocevski/397232/ft2_4FGL_J0422.1-0644_daily_bin489.fits
Exposure map: /scratch/kocevski/397232/expmap_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.fits
Exposure cube: /scratch/kocevski/397232/ltcube_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397232/Model_4FGL_J0422.1-0644_daily_bin489.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) = 6721.34207866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84066E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0770       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.616       1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.9975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.5490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.746       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6721.308     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1770 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88743E-01    .87629        .42646E-01    .25288E-02
   2  Prefactor     .10001E-03    10.799        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.1106        .90712E-02** at limit **
   4  norm          .10000E-03    7.7891        .90712E-02** at limit **
   5  Prefactor     9.0765        13.807        .33257E-02   -.78035E-04
   6  norm          .10000E-03    2.1989        .90712E-02** at limit **
   7  norm          11.615        10.732        .29385E-02   -.68967E-04
   8  norm          .10002E-03    8.5906        .90712E-02** at limit **
   9  norm          6.9973        1.6022        .37914E-02    .10297E-03
  10  Prefactor     .56620        .87220        .11538E-02    .16918E-03
  11  Prefactor     1.1221        83.040        .10555E-01    .14640E-03
  12  Prefactor     .10000E-03    14.945        .90712E-02** at limit **
  13  Prefactor     .10000E-03    2.8049        .90712E-02** at limit **
  14  Prefactor     .10000E-03    6.6052        .90712E-02** at limit **
  15  norm          1.9960        1.8858        .73300E-02    .47907E-03
  16  Prefactor     .10000E-03    3.4086        .90712E-02** at limit **
  17  norm          8.5488        3.1961        .34275E-02    .19196E-03
  18  Prefactor     46.744        35.642        .14661E-02    .21254E-02
  19  Normalizat    1.2155        .20738        .72695E-01    .69426E-05
  20  Prefactor     .93073        .10838        .45396E-01   -.79700E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.088743
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 9.07648
  norm       = 0.0001
  norm       = 11.615
  norm       = 0.000100018
  norm       = 6.9973
  Prefactor  = 0.566198
  Prefactor  = 1.12211
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99599
  Prefactor  = 0.0001
  norm       = 8.54875
  Prefactor  = 46.7438
  Normalizat = 1.21546
  Prefactor  = 0.930726
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.308     FROM HESSE     STATUS=OK           293 CALLS     2063 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88743E-01    5.1780        .14768E-02   -1.5648    
   2  Prefactor     .10001E-03    10.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1362        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.7967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0765        13.808        .13303E-03   -1.5105    
   6  norm          .10000E-03    2.2154        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.615        10.753        .11754E-03   -1.5026    
   8  norm          .10002E-03    8.6143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.9973        1.6018        .47491E-04   -1.5179    
  10  Prefactor     .56620        .87163        .46152E-04   -1.5557    
  11  Prefactor     1.1221        86.384        .42221E-03   -1.5496    
  12  Prefactor     .10000E-03    14.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8095        .13407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9960        1.8728        .10513E-03   -1.5425    
  16  Prefactor     .10000E-03    3.4242        .14782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.5488        3.1965        .83019E-04   -1.5123    
  18  Prefactor     46.744        35.678        .58645E-04   -1.4340    
  19  Normalizat    1.2155        .23323        .32168E-03   -.86126    
  20  Prefactor     .93073        .12212        .19183E-03   -.95076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31873e-08
Minuit parameter uncertainties:
  1  1.3551
  2  0.00064118
  3  3.16732e-05
  4  0.000328556
  5  13.8126
  6  1.91001e-06
  7  10.7549
  8  0.000798019
  9  1.60177
  10  0.871646
  11  19.7195
  12  0.000306187
  13  4.16315e-06
  14  8.9913e-05
  15  1.87289
  16  4.50988e-06
  17  3.19655
  18  35.6941
  19  0.233426
  20  0.122153
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.161e+01  1.075e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.307e-01  1.222e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.215e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.13e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.41e-05

TS (Fixed Index): 1.81
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397232/likelihoodResults_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.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) = 6720.88396468
delta logL = 0.424186736353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6720.87927453
delta logL = 0.428876892354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1302       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.879     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1287        11.306        .15023E-03    .41903E-03
   2  alpha         3.3328        1.2188        .17101E-01    .33587E-04
   3  Normalizat    1.1714        .23535        .32665E-03   -.19643E-03
   4  Prefactor     .94498        .12215        .19053E-03   -.35506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.12874
  alpha      = 3.33284
  Normalizat = 1.1714
  Prefactor  = 0.944979
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.879     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1287        9.3947        .60090E-05   -1.5174    
   2  alpha         3.3328        1.0271        .68404E-03    .33963    
   3  Normalizat    1.1714        .23520        .13066E-04   -.87491    
   4  Prefactor     .94498        .12200        .38105E-04   -.94587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82094e-10
Minuit parameter uncertainties:
  1  9.39659
  2  1.06279
  3  0.235413
  4  0.122036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397232': 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) = 6720.87927362
delta logL = 0.428877799802

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.129e+00  9.397e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.333e+00  1.063e+00  0.000e+00  5.000e+00 ( 1.000e+00)
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.450e-01  1.220e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.171e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.33 +/- 1.06
Photon Flux (Free Index): 8.98e-08 +/- 7.22e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/397232/cmap_HighResolution_366076801_366336001_4FGL_J0422.1-0644_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-05', comment='SUCCESS', photon_flux='5.13e-08', energy_flux2='1.62e-05', photon_flux_error='4.75e-08', dlogl='4.29e-01', energy_flux='1.52e-05', photon_flux2='8.98e-08', job_status='DONE', time_completed='2021-08-20 13:03:11.570284', photon_index_error2='1.06', photon_index2='3.33', ts='1.81', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.22e-05', EG='1.22', time_epoch_completed='1629489791.57', return_code='0', job_id='397232', GAL2='0.94', EG2='1.17', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='7.22e-08', ts2='2.74', photon_index='2.45' WHERE bin_id='489' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:03:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 397232: <4FGL_J0422.1-0644_daily_bin489> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin489> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:50:28 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:50:31 2021
Terminated at Fri Aug 20 13:03:13 2021
Results reported at Fri Aug 20 13:03:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin489 65.5343 -6.741 366076801 366336001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0422.1-0644 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.38 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             315.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            765 sec.

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

