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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin547
RA = 65.5343, Dec = -6.741
tmin = 381110401, tmax = 381369601
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='397325', job_status='RUN', time_executed='2021-08-20 12:52:46.960074', time_epoch_executed='1629489166.96' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397325/ft1_4FGL_J0422.1-0644_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397325/ft2_4FGL_J0422.1-0644_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397325/ft1_4FGL_J0422.1-0644_daily_bin547.fits outfile=/scratch/kocevski/397325/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin547.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=381110401.0 tmax=381369601.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 5.29
user 4.42
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397325/ft1_filtered_4FGL_J0422.1-0644_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/397325/ft2_4FGL_J0422.1-0644_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/397325/ltcube_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.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/397325/ft2_4FGL_J0422.1-0644_daily_bin547.fits
.....................!
real 12.36
user 11.34
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397325/ft1_filtered_4FGL_J0422.1-0644_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/397325/ft2_4FGL_J0422.1-0644_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/397325/ltcube_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.fits outfile=/scratch/kocevski/397325/expmap_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.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/397325/ltcube_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.fits
.....................!
real 191.48
user 184.94
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/397325/ft1_filtered_4FGL_J0422.1-0644_daily_bin547.fits scfile=/scratch/kocevski/397325/ft2_4FGL_J0422.1-0644_daily_bin547.fits outfile=/scratch/kocevski/397325/cmap_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.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.10
user 0.36
sys 0.73

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397325/ft1_filtered_4FGL_J0422.1-0644_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/397325/ft2_4FGL_J0422.1-0644_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397325/Model_4FGL_J0422.1-0644_daily_bin547.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/397325/ft1_filtered_4FGL_J0422.1-0644_daily_bin547.fits.....................!
real 100.86
user 98.41
sys 2.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3762       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7503       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .61555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.046       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0284       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3623       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .58750       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2606       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=   7102.536     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2092 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3939        2.0902       -.70485E-08   -.51043E-05
   2  Prefactor     .10000E-03    13.356       -.36673E-05** at limit **
   3  Prefactor     5.3764        6.9009       -.58762E-07   -.15516E-04
   4  norm          .10000E-03    8.0066       -.19355E-07** at limit **
   5  Prefactor     .10000E-03    11.763        .15238E-05** at limit **
   6  norm          .10000E-03    1.7744        .50005E-07** at limit **
   7  norm          8.7507        10.332       -.59354E-07   -.14981E-04
   8  norm          .10000E-03    14.820        .23107E-05** at limit **
   9  norm          .61550        .93856        .11257E-06   -.11371E-02
  10  Prefactor     .10000E-03    .89437        .11962E-06** at limit **
  11  Prefactor     32.758        36.316       -.30548E-06   -.24742E-04
  12  Prefactor     18.935        38.027       -.43128E-05   -.39166E-04
  13  Prefactor     4.5673        4.1222        .36055E-07   -.83586E-03
  14  Prefactor     45.046        27.299       -.35746E-06   -.25391E-05
  15  norm          .10000E-03    .62330       -.17891E-07** at limit **
  16  Prefactor     3.0282        3.9131        .17838E-07   -.18655E-03
  17  norm          1.3622        1.6615       -.95395E-08   -.86852E-04
  18  Prefactor     .10000E-03    30.633       -.42253E-06** at limit **
  19  Normalizat    .58751        .22391        .56447E-06   -.16033E-04
  20  Prefactor     1.2606        .11985        .28471E-07   -.57009E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.39387
  Prefactor  = 0.0001
  Prefactor  = 5.37635
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.7507
  norm       = 0.0001
  norm       = 0.615501
  Prefactor  = 0.0001
  Prefactor  = 32.7576
  Prefactor  = 18.9355
  Prefactor  = 4.56733
  Prefactor  = 45.0457
  norm       = 0.0001
  Prefactor  = 3.02825
  norm       = 1.3622
  Prefactor  = 0.0001
  Normalizat = 0.587508
  Prefactor  = 1.26056
 **********
 **   18 **HESSE 
 **********

 FCN=   7102.536     FROM HESSE     STATUS=OK           297 CALLS     2389 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3939        2.0912        .81471E-04   -1.5289    
   2  Prefactor     .10000E-03    13.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3764        6.9081        .17332E-03   -1.5244    
   4  norm          .10000E-03    8.0343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7833        .10959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7507        10.331        .13550E-03   -1.5116    
   8  norm          .10000E-03    14.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .61550        .97554        .23468E-03   -1.5551    
  10  Prefactor     .10000E-03    1.3221        .15124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.758        36.317        .70011E-04   -1.4563    
  12  Prefactor     18.935        38.118        .92035E-04   -1.4837    
  13  Prefactor     4.5673        7.6700        .94180E-03   -1.5281    
  14  Prefactor     45.046        27.328        .59737E-04   -1.4365    
  15  norm          .10000E-03    .62772        .64935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0282        3.9433        .93177E-03   -1.5360    
  17  norm          1.3622        1.6402        .11573E-03   -1.5475    
  18  Prefactor     .10000E-03    31.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .58751        .23988        .42914E-03   -1.0852    
  20  Prefactor     1.2606        .12891        .16935E-03   -.84488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08936e-09
Minuit parameter uncertainties:
  1  2.09121
  2  2.9894e-05
  3  6.90908
  4  7.61646e-07
  5  1.33258e-05
  6  2.6079e-07
  7  10.3326
  8  2.89279e-05
  9  0.975561
  10  2.42362e-05
  11  36.3413
  12  38.1669
  13  7.67166
  14  27.336
  15  9.21165e-07
  16  3.94368
  17  1.64027
  18  9.75695e-06
  19  0.240302
  20  0.128943
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.751e+00  1.033e+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.261e+00  1.289e-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:  5.875e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/397325/likelihoodResults_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.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) = 7102.19655341
delta logL = 0.339746723979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7102.13401244
delta logL = 0.402287696448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.333       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6993       1.0000          .0000       5.0000    
     3 'Normalizat'    .60656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2502       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7102.134     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.336        11.665        .11406E-03   -.34306E-03
   2  alpha         1.6993        .62403        .15363E-01   -.14762E-03
   3  Normalizat    .60658        .22493        .42245E-03   -.27632E-03
   4  Prefactor     1.2502        .12678        .16986E-03   -.60930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3361
  alpha      = 1.69934
  Normalizat = 0.606579
  Prefactor  = 1.25018
 **********
 **   18 **HESSE 
 **********

 FCN=   7102.134     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.336        11.788        .45626E-05   -1.5005    
   2  alpha         1.6993        .63071        .30726E-02   -.32601    
   3  Normalizat    .60658        .22501        .16898E-04   -1.0771    
   4  Prefactor     1.2502        .12681        .33971E-04   -.84801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80198e-10
Minuit parameter uncertainties:
  1  11.7903
  2  0.638411
  3  0.225353
  4  0.126842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397325': 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) = 7102.1340124
delta logL = 0.402287736465

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.234e+01  1.179e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.699e+00  6.384e-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:  1.250e+00  1.268e-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:  6.066e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.70 +/- 0.64
Photon Flux (Free Index): 3.02e-08 +/- 3.28e-08
Energy Flux (Free Index): 2.80e-05 +/- 3.44e-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/397325/cmap_HighResolution_381110401_381369601_4FGL_J0422.1-0644_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-05', comment='SUCCESS', energy_flux2='2.80e-05', dlogl='4.02e-01', photon_flux2='3.02e-08', job_status='DONE', time_completed='2021-08-20 13:03:08.693111', photon_index_error2='0.64', photon_index2='1.70', ts='0.99', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='3.44e-05', EG='0.59', time_epoch_completed='1629489788.69', return_code='0', job_id='397325', GAL2='1.25', EG2='0.61', return_code2='0', photon_flux_error2='3.28e-08', ts2='1.79', photon_index='2.45' WHERE bin_id='547' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:03:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 397325: <4FGL_J0422.1-0644_daily_bin547> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin547 65.5343 -6.741 381110401 381369601 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 :                                   629.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

