/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 45 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin69
RA = 65.5343, Dec = -6.741
tmin = 257212801, tmax = 257472001
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='394253', job_status='RUN', time_executed='2021-08-20 12:41:40.683171', time_epoch_executed='1629488500.68' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394253/ft1_4FGL_J0422.1-0644_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394253/ft1_4FGL_J0422.1-0644_daily_bin69.fits outfile=/scratch/kocevski/394253/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin69.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=257212801.0 tmax=257472001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.14
user 2.11
sys 0.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.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/394253/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin69.fits evtable="EVENTS" outfile="/scratch/kocevski/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.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.28
user 0.33
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/394253/ltcube_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.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/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits
.....................!
real 13.53
user 12.27
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/394253/ltcube_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.fits outfile=/scratch/kocevski/394253/expmap_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.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/394253/ltcube_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.fits
.....................!
real 192.19
user 185.60
sys 6.15

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/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.fits scfile=/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits outfile=/scratch/kocevski/394253/cmap_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.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.31
user 0.36
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.fits scfile=/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits outfile=/scratch/kocevski/394253/cmap_HighResolution_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.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.32
user 0.37
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/394253/ft2_4FGL_J0422.1-0644_daily_bin69.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394253/Model_4FGL_J0422.1-0644_daily_bin69.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/394253/ft1_filtered_4FGL_J0422.1-0644_daily_bin69.fits.....................!
real 135.24
user 132.71
sys 2.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49084       1.0000         .10000E-03   10000.    
     4 'norm      '    21.446       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.399       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14353E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.051       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15712       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.271       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84621       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99065       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=   9963.897     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2119 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3672        1.1046        .35420E-07    .23734E-04
   2  Prefactor     .10000E-03    5.1240       -.16515E-07** at limit **
   3  Prefactor     .49161        3.6311        .68718E-06   -.19987E-03
   4  norm          21.446        12.496        .51085E-08    .53684E-05
   5  Prefactor     15.407        14.381       -.18307E-06    .11990E-03
   6  norm          .10000E-03    1.0771       -.83585E-08** at limit **
   7  norm          .10007E-03    5.1473        .22257E-05** at limit **
   8  norm          .10000E-03    13.152        .25626E-06** at limit **
   9  norm          4.3927        1.1276       -.13392E-06   -.20873E-03
  10  Prefactor     .10000E-03    .38120        .43712E-07** at limit **
  11  Prefactor     28.188        20.806       -.29617E-07    .43423E-04
  12  Prefactor     .10000E-03    10.650        .15740E-07** at limit **
  13  Prefactor     2.8978        7.6014        .66592E-05    .21431E-03
  14  Prefactor     36.047        21.937        .51369E-06   -.14301E-03
  15  norm          2.9325        1.7698       -.49236E-07    .29329E-04
  16  Prefactor     .19638        3.3499       -.19123E-06   -.62565E-04
  17  norm          1.7295        1.2375        .10886E-06    .45295E-03
  18  Prefactor     19.286        19.340       -.85229E-06    .30909E-03
  19  Normalizat    .84606        .16719       -.10013E-05    .23113E-04
  20  Prefactor     .99065        .84526E-01   -.47598E-07   -.24342E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36719
  Prefactor  = 0.0001
  Prefactor  = 0.491615
  norm       = 21.4458
  Prefactor  = 15.4068
  norm       = 0.0001
  norm       = 0.000100066
  norm       = 0.0001
  norm       = 4.39267
  Prefactor  = 0.0001
  Prefactor  = 28.1881
  Prefactor  = 0.0001
  Prefactor  = 2.89783
  Prefactor  = 36.047
  norm       = 2.93248
  Prefactor  = 0.196382
  norm       = 1.72946
  Prefactor  = 19.2865
  Normalizat = 0.846061
  Prefactor  = 0.99065
 **********
 **   18 **HESSE 
 **********

 FCN=   9963.897     FROM HESSE     STATUS=OK           301 CALLS     2420 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3672        1.1045        .37312E-04   -1.5474    
   2  Prefactor     .10000E-03    5.1255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49161        10.147        .35342E-02   -1.5568    
   4  norm          21.446        12.497        .86490E-04   -1.4781    
   5  Prefactor     15.407        14.395        .10207E-03   -1.4923    
   6  norm          .10000E-03    1.0823        .10113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10007E-03    27.066        .39454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3927        1.1267        .50336E-04   -1.5289    
  10  Prefactor     .10000E-03    .38970        .12015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.188        20.811        .75460E-04   -1.4646    
  12  Prefactor     .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8978        7.7116        .11932E-02   -1.5367    
  14  Prefactor     36.047        21.981        .66746E-04   -1.4506    
  15  norm          2.9325        1.7634        .97957E-04   -1.5365    
  16  Prefactor     .19638        25.819        .35368E-02   -1.5619    
  17  norm          1.7295        1.2371        .90129E-04   -1.5445    
  18  Prefactor     19.286        19.460        .91238E-04   -1.4829    
  19  Normalizat    .84606        .18593        .33627E-03   -.98382    
  20  Prefactor     .99065        .96101E-01    .17225E-03   -.93042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42106e-07
Minuit parameter uncertainties:
  1  1.10449
  2  5.66043e-07
  3  4.46734
  4  12.4983
  5  14.3983
  6  1.2841e-06
  7  0.00267978
  8  1.85341e-05
  9  1.12675
  10  1.45457e-06
  11  20.8162
  12  6.15689e-06
  13  7.71419
  14  21.9855
  15  1.76346
  16  4.50436
  17  1.23707
  18  19.4665
  19  0.186069
  20  0.0961173
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.001e-04  2.680e-03  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.907e-01  9.612e-02  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.461e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394253/likelihoodResults_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.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) = 9963.89762559
delta logL = -0.000173098951564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9963.89739461
delta logL = 5.78825074626e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26317E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6035       1.0000          .0000       5.0000    
     3 'Normalizat'    .84612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99062       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=   9963.467     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      242 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1724        35.909        .99831E-02    .17442E-02
   2  alpha         4.0962        3.1563        .41196        .75224E-04
   3  Normalizat    .79585        .48001E-01    .78109E-01    .48522E-04
   4  Prefactor     1.0049        .26596E-01    .46150E-01   -.10943E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17237
  alpha      = 4.09618
  Normalizat = 0.795846
  Prefactor  = 1.00494
 **********
 **   18 **HESSE 
 **********

 FCN=   9963.467     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1724        3.1858        .11909E-03   -1.5491    
   2  alpha         4.0962        1.5639        .39212E-02    .69251    
   3  Normalizat    .79585        .17941        .34577E-03   -1.0022    
   4  Prefactor     1.0049        .96259E-01    .17114E-03   -.92565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22156e-11
Minuit parameter uncertainties:
  1  3.18623
  2  1.82584
  3  0.179541
  4  0.0962758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394253': 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) = 9963.46680092
delta logL = 0.430651571263

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.172e+00  3.186e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  4.096e+00  1.826e+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.005e+00  9.628e-02  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:  7.958e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/394253/cmap_HighResolution_257212801_257472001_4FGL_J0422.1-0644_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-08-20 12:54:14.179403', job_id='394253', GAL2='1.00', fit_tolerance='1e-08', EG2='0.80', EG='0.85', time_epoch_completed='1629489254.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.31e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='69' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:54:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 394253: <4FGL_J0422.1-0644_daily_bin69> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin69> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:31 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:32 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:40:32 2021
Terminated at Fri Aug 20 12:54:17 2021
Results reported at Fri Aug 20 12:54:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin69 65.5343 -6.741 257212801 257472001 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            826 sec.

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

