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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin723
RA = 65.5343, Dec = -6.741
tmin = 426729601, tmax = 426988801
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='397605', job_status='RUN', time_executed='2021-08-20 12:55:46.030996', time_epoch_executed='1629489346.03' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397605/ft1_4FGL_J0422.1-0644_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397605/ft1_4FGL_J0422.1-0644_daily_bin723.fits outfile=/scratch/kocevski/397605/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin723.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=426729601.0 tmax=426988801.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 9.50
user 5.28
sys 4.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397605/ft1_filtered_4FGL_J0422.1-0644_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/397605/ltcube_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.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/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits
.....................!
real 16.67
user 11.97
sys 4.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397605/ft1_filtered_4FGL_J0422.1-0644_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/397605/ltcube_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.fits outfile=/scratch/kocevski/397605/expmap_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.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/397605/ltcube_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.fits
.....................!
real 196.43
user 186.38
sys 9.63

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/397605/ft1_filtered_4FGL_J0422.1-0644_daily_bin723.fits scfile=/scratch/kocevski/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits outfile=/scratch/kocevski/397605/cmap_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.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 4.82
user 0.37
sys 4.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397605/ft1_filtered_4FGL_J0422.1-0644_daily_bin723.fits scfile=/scratch/kocevski/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits outfile=/scratch/kocevski/397605/cmap_HighResolution_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.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 4.37
user 0.39
sys 3.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397605/ft1_filtered_4FGL_J0422.1-0644_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/397605/ft2_4FGL_J0422.1-0644_daily_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397605/Model_4FGL_J0422.1-0644_daily_bin723.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/397605/ft1_filtered_4FGL_J0422.1-0644_daily_bin723.fits.....................!
real 90.08
user 83.18
sys 6.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0275       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      '    3.4159       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    94.299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.534       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1957       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.634       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87755       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=   5563.125     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2003 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0919        2.4142        .49825E-02    .14498E-03
   2  Prefactor     .10000E-03    20.819        .90712E-02** at limit **
   3  Prefactor     8.0253        11.739        .35378E-02    .36126E-03
   4  norm          .10000E-03    7.5329        .90712E-02** at limit **
   5  Prefactor     .10003E-03    17.100        .90712E-02** at limit **
   6  norm          .10000E-03    1.2001        .90712E-02** at limit **
   7  norm          3.4160        11.962        .54719E-02    .18932E-03
   8  norm          .10000E-03    20.536        .90712E-02** at limit **
   9  norm          .10000E-03    .37451        .90712E-02** at limit **
  10  Prefactor     .10000E-03    .74126        .90712E-02** at limit **
  11  Prefactor     94.298        43.778        .10347E-02    .14503E-02
  12  Prefactor     .10002E-03    15.893        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.3594        .90712E-02** at limit **
  14  Prefactor     31.534        27.854        .17838E-02    .14348E-03
  15  norm          4.1957        2.5900        .49186E-02    .17040E-03
  16  Prefactor     .10000E-03    3.9333        .90712E-02** at limit **
  17  norm          9.8334        3.2781        .31947E-02    .24914E-03
  18  Prefactor     14.633        30.938        .26175E-02    .10143E-02
  19  Normalizat    1.0198        .22862        .73502E-01    .11933E-04
  20  Prefactor     .87753        .11001        .44718E-01   -.18393E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.09189
  Prefactor  = 0.000100004
  Prefactor  = 8.02534
  norm       = 0.0001
  Prefactor  = 0.000100033
  norm       = 0.0001
  norm       = 3.41599
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.298
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 31.5336
  norm       = 4.19573
  Prefactor  = 0.0001
  norm       = 9.83339
  Prefactor  = 14.6334
  Normalizat = 1.01975
  Prefactor  = 0.877533
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.125     FROM HESSE     STATUS=OK           287 CALLS     2290 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0919        2.4140        .85785E-04   -1.5303    
   2  Prefactor     .10000E-03    20.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0253        11.857        .14151E-03   -1.5141    
   4  norm          .10000E-03    7.5393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    17.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2016        .79793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4160        11.983        .21888E-03   -1.5338    
   8  norm          .10000E-03    20.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .39289        .89058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .75906        .12528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     94.298        43.769        .41388E-04   -1.3763    
  12  Prefactor     .10002E-03    15.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3842        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.534        27.927        .71353E-04   -1.4584    
  15  norm          4.1957        2.5893        .89610E-04   -1.5298    
  16  Prefactor     .10000E-03    3.9528        .14446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8334        3.2777        .72474E-04   -1.5081    
  18  Prefactor     14.633        30.927        .10470E-03   -1.4943    
  19  Normalizat    1.0198        .25850        .32525E-03   -.92372    
  20  Prefactor     .87753        .12419        .18135E-03   -.96931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48918e-08
Minuit parameter uncertainties:
  1  2.41403
  2  0.000547932
  3  11.8605
  4  7.01172e-06
  5  0.00149415
  6  5.15417e-08
  7  11.9917
  8  5.98032e-05
  9  6.55038e-07
  10  1.99438e-06
  11  43.7843
  12  0.00104785
  13  3.94104e-07
  14  27.9384
  15  2.5894
  16  3.18263e-06
  17  3.27777
  18  30.9612
  19  0.258819
  20  0.124234
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.416e+00  1.199e+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:  8.775e-01  1.242e-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.020e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/397605/likelihoodResults_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.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) = 5562.99239336
delta logL = 0.132890609108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5562.9527624
delta logL = 0.172521563885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7357       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8918       1.0000          .0000       5.0000    
     3 'Normalizat'    .98213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88920       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=   5562.953     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7410        92.363        .79636E-02    .75627E-03
   2  alpha         3.8937        2.8568        .50000        .46270E-04
   3  Normalizat    .98197        .65299E-01    .74784E-01    .11626E-04
   4  Prefactor     .88925        .34268E-01    .44867E-01   -.11652E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74101
  alpha      = 3.89369
  Normalizat = 0.981969
  Prefactor  = 0.889245
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.953     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      254 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7410        207.70        .14664E-03   -1.5444    
   2  alpha         3.8937        3.7516        .36070E-01    .59134    
   3  Normalizat    .98197        .22348        .33092E-03   -.93637    
   4  Prefactor     .88925        .11710        .18031E-03   -.96518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07266e-09
Minuit parameter uncertainties:
  1  38.167
  2  15.2223
  3  0.223692
  4  0.117129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397605': 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) = 5562.95275642
delta logL = 0.172527540643

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.741e+00  3.817e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.894e+00  1.522e+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:  8.892e-01  1.171e-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.820e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/397605/cmap_HighResolution_426729601_426988801_4FGL_J0422.1-0644_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-08-20 13:06:03.398584', job_id='397605', GAL2='0.89', fit_tolerance='1e-08', EG2='0.98', EG='1.02', time_epoch_completed='1629489963.4', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.73e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='723' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 397605: <4FGL_J0422.1-0644_daily_bin723> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin723 65.5343 -6.741 426729601 426988801 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 :                                   682.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

