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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin681
RA = 65.5343, Dec = -6.741
tmin = 415843201, tmax = 416102401
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='397538', job_status='RUN', time_executed='2021-08-20 12:53:31.207541', time_epoch_executed='1629489211.21' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397538/ft1_4FGL_J0422.1-0644_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397538/ft1_4FGL_J0422.1-0644_daily_bin681.fits outfile=/scratch/kocevski/397538/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin681.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=415843201.0 tmax=416102401.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.73
user 5.58
sys 1.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397538/ft1_filtered_4FGL_J0422.1-0644_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/397538/ltcube_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.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/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits
.....................!
real 16.54
user 15.15
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397538/ft1_filtered_4FGL_J0422.1-0644_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/397538/ltcube_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.fits outfile=/scratch/kocevski/397538/expmap_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.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/397538/ltcube_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.fits
.....................!
real 192.69
user 185.66
sys 6.68

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/397538/ft1_filtered_4FGL_J0422.1-0644_daily_bin681.fits scfile=/scratch/kocevski/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits outfile=/scratch/kocevski/397538/cmap_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.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.43
user 0.37
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397538/ft1_filtered_4FGL_J0422.1-0644_daily_bin681.fits scfile=/scratch/kocevski/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits outfile=/scratch/kocevski/397538/cmap_HighResolution_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.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.44
user 0.37
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397538/ft1_filtered_4FGL_J0422.1-0644_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/397538/ft2_4FGL_J0422.1-0644_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397538/Model_4FGL_J0422.1-0644_daily_bin681.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/397538/ft1_filtered_4FGL_J0422.1-0644_daily_bin681.fits.....................!
real 90.79
user 88.28
sys 2.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.398       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8767       1.0000         .10000E-03   10000.    
     7 'norm      '    13.949       1.0000         .10000E-03   10000.    
     8 'norm      '    .23335E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .58673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82343       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83549       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.898       1.0000         .10000E-03   10000.    
    17 'norm      '    12.978       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.136       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .35911       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2461       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=   6340.992     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2382 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3896        2.5254       -.90499E-08   -.64154E-04
   2  Prefactor     53.498        38.060       -.25449E-06   -.45055E-05
   3  Prefactor     22.400        12.497        .24980E-06   -.70600E-04
   4  norm          .10000E-03    7.7704        .29468E-07** at limit **
   5  Prefactor     .10000E-03    12.782        .11268E-06** at limit **
   6  norm          1.8763        3.1052        .48549E-07   -.19130E-03
   7  norm          13.947        12.433       -.18878E-06   -.13665E-03
   8  norm          .10004E-03    31.158        .12318E-05** at limit **
   9  norm          .58626        1.2371        .65931E-06   -.12909E-03
  10  Prefactor     .82226        2.7533       -.98256E-06   -.38690E-03
  11  Prefactor     13.457        32.334        .84054E-06   -.44476E-04
  12  Prefactor     18.694        66.677       -.10167E-05   -.75700E-04
  13  Prefactor     .83816        10.854        .45352E-06   -.32332E-03
  14  Prefactor     .10000E-03    46.801       -.12595E-06** at limit **
  15  norm          3.3016        2.5845        .10815E-06   -.29897E-03
  16  Prefactor     12.902        10.207       -.11194E-06   -.71954E-05
  17  norm          12.978        3.4400       -.19113E-08   -.11828E-03
  18  Prefactor     32.139        35.215       -.11814E-06   -.13224E-04
  19  Normalizat    .35921        .28067        .14393E-05   -.11211E-03
  20  Prefactor     1.2460        .13762       -.21710E-06   -.25903E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.38965
  Prefactor  = 53.4983
  Prefactor  = 22.3997
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8763
  norm       = 13.947
  norm       = 0.000100039
  norm       = 0.586256
  Prefactor  = 0.822262
  Prefactor  = 13.4572
  Prefactor  = 18.6943
  Prefactor  = 0.838163
  Prefactor  = 0.0001
  norm       = 3.30164
  Prefactor  = 12.9023
  norm       = 12.978
  Prefactor  = 32.1388
  Normalizat = 0.359215
  Prefactor  = 1.24602
 **********
 **   18 **HESSE 
 **********

 FCN=   6340.992     FROM HESSE     STATUS=OK           303 CALLS     2685 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3896        2.5174        .76344E-04   -1.5202    
   2  Prefactor     53.498        37.895        .54835E-04   -1.4244    
   3  Prefactor     22.400        12.223        .84636E-04   -1.4761    
   4  norm          .10000E-03    7.7750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8763        3.0583        .17260E-03   -1.5434    
   7  norm          13.947        12.259        .10724E-03   -1.4961    
   8  norm          .10004E-03    219.24        .77210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .58626        1.2290        .11142E-03   -1.5555    
  10  Prefactor     .82226        2.6710        .16847E-03   -1.5527    
  11  Prefactor     13.457        31.381        .10915E-03   -1.4974    
  12  Prefactor     18.694        63.411        .92549E-04   -1.4843    
  13  Prefactor     .83816        31.075        .43242E-02   -1.5525    
  14  Prefactor     .10000E-03    47.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3016        2.5576        .10518E-03   -1.5345    
  16  Prefactor     12.902        10.179        .11153E-03   -1.4989    
  17  norm          12.978        3.4339        .71577E-04   -1.4987    
  18  Prefactor     32.139        35.137        .70683E-04   -1.4574    
  19  Normalizat    .35921        .25496        .54576E-03   -1.1946    
  20  Prefactor     1.2460        .13086        .16939E-03   -.84927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34645e-10
Minuit parameter uncertainties:
  1  2.51747
  2  37.9119
  3  12.224
  4  1.91297e-06
  5  5.5726e-06
  6  3.05855
  7  12.2614
  8  0.00588665
  9  1.22901
  10  2.67136
  11  31.4191
  12  63.6413
  13  10.2121
  14  4.00972e-05
  15  2.5577
  16  10.1799
  17  3.4339
  18  35.16
  19  0.255792
  20  0.130899
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.395e+01  1.226e+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.246e+00  1.309e-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:  3.592e-01  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.60e-05

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

Saving results to:
/scratch/kocevski/397538/likelihoodResults_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.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) = 6340.82640062
delta logL = 0.165478885876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6340.76998078
delta logL = 0.22189872107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9481       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1202       1.0000          .0000       5.0000    
     3 'Normalizat'    .28866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2759       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=   6340.770     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9398        47.082        .59134E-02    .65178E-03
   2  alpha         4.1222        3.9606        .48200        .56494E-04
   3  Normalizat    .28871        .81181E-01    .13725        .50950E-04
   4  Prefactor     1.2759        .44687E-01    .33044E-01   -.42782E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93983
  alpha      = 4.12224
  Normalizat = 0.288708
  Prefactor  = 1.27589
 **********
 **   18 **HESSE 
 **********

 FCN=   6340.770     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9398        76.049        .96073E-04   -1.5365    
   2  alpha         4.1222        3.2612        .23063E-01    .70613    
   3  Normalizat    .28871        .21871        .60680E-03   -1.2352    
   4  Prefactor     1.2759        .12309        .16775E-03   -.84027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04012e-09
Minuit parameter uncertainties:
  1  29.9464
  2  7.39503
  3  0.219363
  4  0.123116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397538': 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) = 6340.76998026
delta logL = 0.221899245744

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.940e+00  2.995e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  4.122e+00  7.395e+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:  1.276e+00  1.231e-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:  2.887e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 4.12 +/- 7.40
Photon Flux (Free Index): 1.08e-07 +/- 8.63e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/397538/cmap_HighResolution_415843201_416102401_4FGL_J0422.1-0644_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-05', comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='1.63e-05', photon_flux_error='5.41e-08', dlogl='2.22e-01', energy_flux='1.82e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-20 13:03:56.012674', photon_index_error2='7.40', photon_index2='4.12', ts='1.92', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.92e-05', EG='0.36', time_epoch_completed='1629489836.01', return_code='0', job_id='397538', GAL2='1.28', EG2='0.29', return_code2='102', energy_flux_error='1.60e-05', photon_flux_error2='8.63e-08', ts2='2.59', photon_index='2.45' WHERE bin_id='681' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:03:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 397538: <4FGL_J0422.1-0644_daily_bin681> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin681 65.5343 -6.741 415843201 416102401 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 :                                   637.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

