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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin738
RA = 65.5343, Dec = -6.741
tmin = 430617601, tmax = 430876801
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='397623', job_status='RUN', time_executed='2021-08-20 12:53:55.366276', time_epoch_executed='1629489235.37' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397623/ft1_4FGL_J0422.1-0644_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397623/ft1_4FGL_J0422.1-0644_daily_bin738.fits outfile=/scratch/kocevski/397623/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin738.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=430617601.0 tmax=430876801.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.06
user 5.06
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.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/397623/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.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.23
user 0.34
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/397623/ltcube_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.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/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits
.....................!
real 13.06
user 11.86
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/397623/ltcube_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.fits outfile=/scratch/kocevski/397623/expmap_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.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/397623/ltcube_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.fits
.....................!
real 191.87
user 186.39
sys 5.16

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/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits scfile=/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits outfile=/scratch/kocevski/397623/cmap_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.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.28
user 0.36
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits scfile=/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits outfile=/scratch/kocevski/397623/cmap_HighResolution_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.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.27
user 0.38
sys 0.89

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397623/Model_4FGL_J0422.1-0644_daily_bin738.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/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits.....................!
real 71.82
user 69.56
sys 2.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits', '/scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits', expMap='/scratch/kocevski/397623/expmap_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.fits', expCube='/scratch/kocevski/397623/ltcube_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397623/Model_4FGL_J0422.1-0644_daily_bin738.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/397623/ft1_filtered_4FGL_J0422.1-0644_daily_bin738.fits
Spacecraft file(s): /scratch/kocevski/397623/ft2_4FGL_J0422.1-0644_daily_bin738.fits
Exposure map: /scratch/kocevski/397623/expmap_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.fits
Exposure cube: /scratch/kocevski/397623/ltcube_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397623/Model_4FGL_J0422.1-0644_daily_bin738.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) = 4879.43801741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1761       1.0000         .10000E-03   10000.    
     8 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .58768E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20480E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4603       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.539       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91469       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0056       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.

 FCN=   4879.414     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2088 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9117        2.1322       -.10220E-06    .83970E-04
   2  Prefactor     .10000E-03    23.357        .23480E-05** at limit **
   3  Prefactor     13.124        13.704       -.35721E-06   -.52571E-04
   4  norm          .10000E-03    6.8949       -.71244E-07** at limit **
   5  Prefactor     .10000E-03    11.978       -.14171E-05** at limit **
   6  norm          .10000E-03    1.9046        .17617E-06** at limit **
   7  norm          1.1702        28.379       -.56572E-05   -.25138E-03
   8  norm          .10001E-03    33.233       -.12611E-04** at limit **
   9  norm          .10169E-03    .59726        .54649E-06** at limit **
  10  Prefactor     2.7185        2.0064        .12712E-06   -.24930E-03
  11  Prefactor     66.434        39.889       -.57920E-05    .27314E-03
  12  Prefactor     .10000E-03    163.99       -.34657E-05** at limit **
  13  Prefactor     2.0577        6.7360       -.12566E-04    .34096E-04
  14  Prefactor     .10000E-03    10.315        .44748E-06** at limit **
  15  norm          .10000E-03    1.5911        .21324E-07** at limit **
  16  Prefactor     .10000E-03    2.7934        .74752E-07** at limit **
  17  norm          5.4605        2.9602        .49001E-06   -.35883E-04
  18  Prefactor     28.510        36.029       -.11971E-04    .26717E-03
  19  Normalizat    .91486        .24627        .53631E-05   -.12712E-04
  20  Prefactor     1.0057        .12217        .41373E-06    .13522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.91173
  Prefactor  = 0.0001
  Prefactor  = 13.1238
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.17021
  norm       = 0.000100006
  norm       = 0.000101693
  Prefactor  = 2.71845
  Prefactor  = 66.434
  Prefactor  = 0.000100002
  Prefactor  = 2.05772
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.46052
  Prefactor  = 28.5098
  Normalizat = 0.914858
  Prefactor  = 1.00567
 **********
 **   18 **HESSE 
 **********

 FCN=   4879.414     FROM HESSE     STATUS=OK           297 CALLS     2385 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9117        2.1342        .73118E-04   -1.5312    
   2  Prefactor     .10000E-03    23.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.124        13.835        .11055E-03   -1.4983    
   4  norm          .10000E-03    6.8955        .17915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9101        .94121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1702        29.556        .42227E-03   -1.5492    
   8  norm          .10001E-03    33.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10169E-03    1.4657        .18276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7185        1.9979        .79442E-04   -1.5378    
  11  Prefactor     66.434        39.724        .49235E-04   -1.4076    
  12  Prefactor     .10000E-03    165.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0577        6.8557        .28836E-03   -1.5421    
  14  Prefactor     .10000E-03    10.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4024        .16962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7966        .11402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4605        2.9529        .82242E-04   -1.5241    
  18  Prefactor     28.510        35.826        .74995E-04   -1.4640    
  19  Normalizat    .91486        .27497        .34027E-03   -.95940    
  20  Prefactor     1.0057        .13796        .17574E-03   -.92541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39296e-09
Minuit parameter uncertainties:
  1  2.13421
  2  0.000160075
  3  13.8387
  4  4.71184e-07
  5  4.9648e-05
  6  1.28585e-06
  7  11.7681
  8  0.000918594
  9  0.00315069
  10  1.99798
  11  39.7403
  12  0.0011055
  13  6.85832
  14  3.60944e-05
  15  1.39812e-05
  16  5.82758e-06
  17  2.95297
  18  35.8527
  19  0.275391
  20  0.138009
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.170e+00  1.177e+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:  1.006e+00  1.380e-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:  9.149e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/397623/likelihoodResults_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.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): 102
logL (Free Index) = 4879.08072688
delta logL = 0.333089150385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4879.03757478
delta logL = 0.376241244564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90348       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6021       1.0000          .0000       5.0000    
     3 'Normalizat'    .84194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0272       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=   4879.038     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90143        39.757        .12820E-01    .18274E-02
   2  alpha         4.6046        4.6835        .50000        .21122E-04
   3  Normalizat    .84224        .90168E-01    .79834E-01    .11747E-03
   4  Prefactor     1.0271        .45895E-01    .41484E-01   -.49582E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.901433
  alpha      = 4.60458
  Normalizat = 0.842242
  Prefactor  = 1.02712
 **********
 **   18 **HESSE 
 **********

 FCN=   4879.038     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90143        66.370        .79532E-04   -1.5518    
   2  alpha         4.6046        4.7630        .53185E-01    1.0007    
   3  Normalizat    .84224        .22486        .35343E-03   -.98520    
   4  Prefactor     1.0271        .11964        .17412E-03   -.91831    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41747e-10
Minuit parameter uncertainties:
  1  15.4867
  2  11.609
  3  0.225107
  4  0.119668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397623': 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): 102
logL (Free Index) = 4879.03757254
delta logL = 0.376243487281

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  9.014e-01  1.549e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  4.605e+00  1.161e+01  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:  1.027e+00  1.197e-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:  8.422e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 65.534 -6.741

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/397623/cmap_HighResolution_430617601_430876801_4FGL_J0422.1-0644_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-20 13:02:51.191565', job_id='397623', GAL2='1.03', fit_tolerance='1e-08', EG2='0.84', EG='0.91', time_epoch_completed='1629489771.19', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.76e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='738' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:02:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 397623: <4FGL_J0422.1-0644_daily_bin738> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin738> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:51:00 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:51:01 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:51:01 2021
Terminated at Fri Aug 20 13:02:52 2021
Results reported at Fri Aug 20 13:02:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin738 65.5343 -6.741 430617601 430876801 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 :                                   547.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

