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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin941
RA = 65.5343, Dec = -6.741
tmin = 483235201, tmax = 483494401
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='399269', job_status='RUN', time_executed='2021-08-20 12:58:33.270535', time_epoch_executed='1629489513.27' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399269/ft1_4FGL_J0422.1-0644_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399269/ft1_4FGL_J0422.1-0644_daily_bin941.fits outfile=/scratch/kocevski/399269/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin941.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=483235201.0 tmax=483494401.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 7.04
user 3.21
sys 3.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399269/ft1_filtered_4FGL_J0422.1-0644_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/399269/ltcube_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.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/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits
.....................!
real 17.79
user 13.62
sys 4.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399269/ft1_filtered_4FGL_J0422.1-0644_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/399269/ltcube_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.fits outfile=/scratch/kocevski/399269/expmap_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.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/399269/ltcube_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.fits
.....................!
real 197.56
user 187.12
sys 9.98

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/399269/ft1_filtered_4FGL_J0422.1-0644_daily_bin941.fits scfile=/scratch/kocevski/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits outfile=/scratch/kocevski/399269/cmap_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.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 3.87
user 0.37
sys 3.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399269/ft1_filtered_4FGL_J0422.1-0644_daily_bin941.fits scfile=/scratch/kocevski/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits outfile=/scratch/kocevski/399269/cmap_HighResolution_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.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 3.85
user 0.38
sys 3.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399269/ft1_filtered_4FGL_J0422.1-0644_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/399269/ft2_4FGL_J0422.1-0644_daily_bin941.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399269/Model_4FGL_J0422.1-0644_daily_bin941.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/399269/ft1_filtered_4FGL_J0422.1-0644_daily_bin941.fits.....................!
real 121.47
user 114.86
sys 5.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16256E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6884       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7641       1.0000         .10000E-03   10000.    
     7 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .40940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.103       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11936E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8561       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6768       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3503       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2732       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1443       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84138       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=   8567.958     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1816 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0429        1.8787        .58150E-02    .43895E-03
   2  Prefactor     .10000E-03    35.297        .90712E-02** at limit **
   3  Prefactor     4.6872        4.9331        .46463E-02    .44672E-03
   4  norm          .10000E-03    7.0278        .90712E-02** at limit **
   5  Prefactor     .10000E-03    10.489        .90712E-02** at limit **
   6  norm          1.7634        3.0940        .78852E-02    .12618E-02
   7  norm          .10004E-03    11.063        .90712E-02** at limit **
   8  norm          .10002E-03    11.609        .90712E-02** at limit **
   9  norm          .40971        .62305        .16371E-01    .54418E-03
  10  Prefactor     1.6222        1.4108        .83122E-02    .13073E-02
  11  Prefactor     14.135        26.604        .26664E-02    .10555E-02
  12  Prefactor     .10012E-03    161.09        .90712E-02** at limit **
  13  Prefactor     10.308        7.0781        .31200E-02    .23016E-02
  14  Prefactor     3.8558        16.737        .51376E-02   -.15747E-03
  15  norm          3.6772        1.9336        .52660E-02    .57010E-03
  16  Prefactor     3.3502        3.6232        .55277E-02    .63850E-04
  17  norm          6.2737        2.2588        .40067E-02    .58128E-04
  18  Prefactor     .10000E-03    18.740        .90712E-02** at limit **
  19  Normalizat    1.1445        .16511        .65073E-01    .43535E-04
  20  Prefactor     .84130        .88129E-01    .44253E-01    .45100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04289
  Prefactor  = 0.000100001
  Prefactor  = 4.68717
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.76339
  norm       = 0.000100036
  norm       = 0.000100023
  norm       = 0.409709
  Prefactor  = 1.62218
  Prefactor  = 14.135
  Prefactor  = 0.000100121
  Prefactor  = 10.3078
  Prefactor  = 3.85584
  norm       = 3.67716
  Prefactor  = 3.35016
  norm       = 6.27375
  Prefactor  = 0.000100001
  Normalizat = 1.14446
  Prefactor  = 0.841305
 **********
 **   18 **HESSE 
 **********

 FCN=   8567.958     FROM HESSE     STATUS=OK           297 CALLS     2113 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0429        1.8737        .95622E-04   -1.5359    
   2  Prefactor     .10000E-03    35.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6872        4.9466        .18585E-03   -1.5275    
   4  norm          .10000E-03    7.0421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7634        3.0515        .20647E-03   -1.5442    
   7  norm          .10004E-03    11.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    11.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .40971        .49023        .83957E-03   -1.5580    
  10  Prefactor     1.6222        1.3686        .95556E-04   -1.5453    
  11  Prefactor     14.135        26.600        .10666E-03   -1.4956    
  12  Prefactor     .10012E-03    166.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.308        7.0722        .62399E-03   -1.5066    
  14  Prefactor     3.8558        16.741        .20550E-03   -1.5315    
  15  norm          3.6772        1.9304        .89394E-04   -1.5324    
  16  Prefactor     3.3502        3.6213        .17835E-03   -1.5342    
  17  norm          6.2737        2.2578        .80313E-04   -1.5207    
  18  Prefactor     .10000E-03    18.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1445        .18638        .28786E-03   -.88337    
  20  Prefactor     .84130        .99685E-01    .18277E-03   -.98223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17446e-08
Minuit parameter uncertainties:
  1  1.87369
  2  0.00045058
  3  4.94704
  4  4.85206e-05
  5  0.000174029
  6  3.05174
  7  0.00127887
  8  0.0010254
  9  0.490236
  10  1.36858
  11  26.6223
  12  0.00897791
  13  7.07275
  14  16.0762
  15  1.93043
  16  3.62152
  17  2.25788
  18  0.000252523
  19  0.186483
  20  0.0997059
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.279e-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:  8.413e-01  9.971e-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:  1.144e+00  1.865e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399269/likelihoodResults_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.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) = 8567.95815262
delta logL = -0.000418711617385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8567.95773463
delta logL = -7.23222910892e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13610E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3384       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84113       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=   8566.732     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      266 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88570        1.0697        .90712E-02   -.23308E-03
   2  alpha         .67454        .40217        .41261       -.70596E-04
   3  Normalizat    1.1377        .15634        .65190E-01   -.44854E-04
   4  Prefactor     .84215        .87001E-01    .44250E-01    .24681E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.885699
  alpha      = 0.67454
  Normalizat = 1.13768
  Prefactor  = 0.84215
 **********
 **   18 **HESSE 
 **********

 FCN=   8566.732     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88570        1.9650        .96087E-04   -1.5520    
   2  alpha         .67454        .69127        .20092E-01   -.81859    
   3  Normalizat    1.1377        .17613        .28838E-03   -.88551    
   4  Prefactor     .84215        .98110E-01    .18263E-03   -.98193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67872e-11
Minuit parameter uncertainties:
  1  1.96519
  2  0.711677
  3  0.176216
  4  0.0981303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399269': 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) = 8566.73181874
delta logL = 1.22591516527

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.857e-01  1.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  6.745e-01  7.117e-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.422e-01  9.813e-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:  1.138e+00  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 0.67 +/- 0.71
Photon Flux (Free Index): 3.65e-09 +/- 4.66e-09
Energy Flux (Free Index): 4.55e-05 +/- 6.58e-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/399269/cmap_HighResolution_483235201_483494401_4FGL_J0422.1-0644_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', comment='SUCCESS', energy_flux2='4.55e-05', dlogl='1.23e+00', photon_flux2='3.65e-09', job_status='DONE', time_completed='2021-08-20 13:10:38.560843', photon_index_error2='0.71', photon_index2='0.67', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='7.62e-08', energy_flux_error2='6.58e-05', EG='1.14', time_epoch_completed='1629490238.56', return_code='0', job_id='399269', GAL2='0.84', EG2='1.14', return_code2='0', photon_flux_error2='4.66e-09', ts2='2.45', photon_index='2.45' WHERE bin_id='941' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 399269: <4FGL_J0422.1-0644_daily_bin941> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin941 65.5343 -6.741 483235201 483494401 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

