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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin973
RA = 65.5343, Dec = -6.741
tmin = 491529601, tmax = 491788801
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='399319', job_status='RUN', time_executed='2021-08-20 12:58:23.854379', time_epoch_executed='1629489503.85' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399319/ft1_4FGL_J0422.1-0644_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399319/ft1_4FGL_J0422.1-0644_daily_bin973.fits outfile=/scratch/kocevski/399319/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin973.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=491529601.0 tmax=491788801.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.70
user 3.27
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.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/399319/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin973.fits evtable="EVENTS" outfile="/scratch/kocevski/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.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 0.73
user 0.30
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/399319/ltcube_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.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/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits
.....................!
real 12.03
user 11.46
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/399319/ltcube_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.fits outfile=/scratch/kocevski/399319/expmap_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.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/399319/ltcube_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.fits
.....................!
real 190.83
user 185.28
sys 5.24

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/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.fits scfile=/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits outfile=/scratch/kocevski/399319/cmap_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.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 0.80
user 0.35
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.fits scfile=/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits outfile=/scratch/kocevski/399319/cmap_HighResolution_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.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 0.74
user 0.37
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/399319/ft2_4FGL_J0422.1-0644_daily_bin973.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399319/Model_4FGL_J0422.1-0644_daily_bin973.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/399319/ft1_filtered_4FGL_J0422.1-0644_daily_bin973.fits.....................!
real 136.03
user 134.30
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2967       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4457       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    39.717       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0630       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17198E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1776       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.748       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1292       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98337       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=   9954.635     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2056 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7880        1.8396        .45967E-02    .12042E-03
   2  Prefactor     .10000E-03    66.747        .90712E-02** at limit **
   3  Prefactor     9.2967        6.7726        .32860E-02    .10660E-02
   4  norm          5.4457        7.4005        .43047E-02    .11742E-04
   5  Prefactor     .10000E-03    21.086        .90712E-02** at limit **
   6  norm          .10000E-03    1.3169        .90712E-02** at limit **
   7  norm          39.718        11.438        .15900E-02   -.13112E-02
   8  norm          3.0624        9.1267        .57947E-02    .24678E-03
   9  norm          .10000E-03    .24909        .26325E-01** at limit **
  10  Prefactor     .10000E-03    .26727        .90712E-02** at limit **
  11  Prefactor     .10000E-03    6.2724        .90712E-02** at limit **
  12  Prefactor     .10000E-03    8.0500        .90712E-02** at limit **
  13  Prefactor     23.645        9.3000        .20595E-02   -.19617E-02
  14  Prefactor     .10000E-03    4.0770        .90712E-02** at limit **
  15  norm          .10000E-03    .68833        .50160E-01** at limit **
  16  Prefactor     .10000E-03    2.2187        .90712E-02** at limit **
  17  norm          2.1779        2.2446        .69751E-02    .93777E-03
  18  Prefactor     53.749        29.668        .13678E-02   -.50271E-03
  19  Normalizat    1.1291        .17480        .73416E-01   -.80012E-03
  20  Prefactor     .98341        .90261E-01    .46059E-01   -.14829E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.78796
  Prefactor  = 0.000100001
  Prefactor  = 9.2967
  norm       = 5.44571
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 39.7178
  norm       = 3.06236
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.6451
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17794
  Prefactor  = 53.7492
  Normalizat = 1.12908
  Prefactor  = 0.983407
 **********
 **   18 **HESSE 
 **********

 FCN=   9954.635     FROM HESSE     STATUS=OK           285 CALLS     2341 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7880        1.8395        .81102E-04   -1.5270    
   2  Prefactor     .10000E-03    67.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2967        6.8062        .13144E-03   -1.5098    
   4  norm          5.4457        7.3965        .17219E-03   -1.5241    
   5  Prefactor     .10000E-03    21.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3307        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          39.718        11.449        .63602E-04   -1.4447    
   8  norm          3.0624        9.1128        .23179E-03   -1.5358    
   9  norm          .10000E-03    .39183        .96312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .26904        .50341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.645        9.2780        .82378E-04   -1.4735    
  14  Prefactor     .10000E-03    4.0811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3043        .15837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2345        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1779        2.2181        .13714E-03   -1.5413    
  18  Prefactor     53.749        29.516        .54710E-04   -1.4240    
  19  Normalizat    1.1291        .19805        .32489E-03   -.88824    
  20  Prefactor     .98341        .10251        .18763E-03   -.93285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31917e-09
Minuit parameter uncertainties:
  1  1.83952
  2  0.0005811
  3  6.80678
  4  7.39773
  5  0.000253397
  6  2.5035e-05
  7  11.4493
  8  9.11691
  9  6.04533e-06
  10  1.44257e-05
  11  5.47083e-05
  12  0.000180357
  13  9.27859
  14  7.70497e-05
  15  1.14686e-05
  16  6.10857e-05
  17  2.21818
  18  29.524
  19  0.198178
  20  0.102531
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.834e-01  1.025e-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.129e+00  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.73
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 5.05e-08
Energy Flux (Fixed Index): 5.19e-05 +/- 1.50e-05

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) = 9954.00456456
delta logL = 0.630522782412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9953.93947425
delta logL = 0.695613099044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.388       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1080       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97133       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=   9953.939     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.388        17.922        .15044E-02   -.10023E-02
   2  alpha         2.1082        .35247        .24249        .10611E-04
   3  Normalizat    1.1647        .16715        .72493E-01    .35195E-04
   4  Prefactor     .97136        .89966E-01    .45908E-01    .23621E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.3877
  alpha      = 2.1082
  Normalizat = 1.16468
  Prefactor  = 0.971362
 **********
 **   18 **HESSE 
 **********

 FCN=   9953.939     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.388        13.214        .60176E-04   -1.4374    
   2  alpha         2.1082        .27824        .99835E-02   -.15737    
   3  Normalizat    1.1647        .18917        .32079E-03   -.87701    
   4  Prefactor     .97136        .10153        .18863E-03   -.93690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45862e-10
Minuit parameter uncertainties:
  1  13.2149
  2  0.278837
  3  0.189279
  4  0.101548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399319': 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) = 9953.93947376
delta logL = 0.695613591111

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.439e+01  1.321e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.108e+00  2.788e-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:  9.714e-01  1.015e-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.165e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.05
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.11 +/- 0.28
Photon Flux (Free Index): 1.43e-07 +/- 5.17e-08
Energy Flux (Free Index): 6.26e-05 +/- 2.21e-05

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/399319/cmap_HighResolution_491529601_491788801_4FGL_J0422.1-0644_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='6.26e-05', photon_flux_error='5.05e-08', dlogl='6.96e-01', energy_flux='5.19e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-20 13:09:54.248451', photon_index_error2='0.28', photon_index2='2.11', ts='29.73', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='1.13', time_epoch_completed='1629490194.25', return_code='0', job_id='399319', GAL2='0.97', EG2='1.16', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.17e-08', ts2='31.05', photon_index='2.45' WHERE bin_id='973' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 399319: <4FGL_J0422.1-0644_daily_bin973> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin973> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:55:57 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:55:58 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:55:58 2021
Terminated at Fri Aug 20 13:09:55 2021
Results reported at Fri Aug 20 13:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin973 65.5343 -6.741 491529601 491788801 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 :                                   693.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

