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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin1124
RA = 65.5343, Dec = -6.741
tmin = 530668801, tmax = 530928001
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='400901', job_status='RUN', time_executed='2021-08-20 13:03:15.964004', time_epoch_executed='1629489795.96' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400901/ft1_4FGL_J0422.1-0644_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400901/ft1_4FGL_J0422.1-0644_daily_bin1124.fits outfile=/scratch/kocevski/400901/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin1124.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=530668801.0 tmax=530928001.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 13.49
user 3.37
sys 10.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.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/400901/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.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 11.23
user 0.34
sys 9.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/400901/ltcube_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.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/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits
.....................!
real 24.17
user 11.61
sys 12.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/400901/ltcube_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.fits outfile=/scratch/kocevski/400901/expmap_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.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/400901/ltcube_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.fits
.....................!
real 203.46
user 185.41
sys 17.34

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/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.fits scfile=/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits outfile=/scratch/kocevski/400901/cmap_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.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 10.17
user 0.37
sys 9.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.fits scfile=/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits outfile=/scratch/kocevski/400901/cmap_HighResolution_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.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 10.23
user 0.39
sys 9.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/400901/ft2_4FGL_J0422.1-0644_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400901/Model_4FGL_J0422.1-0644_daily_bin1124.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/400901/ft1_filtered_4FGL_J0422.1-0644_daily_bin1124.fits.....................!
real 98.80
user 84.33
sys 13.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    29.743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.177       1.0000         .10000E-03   10000.    
     8 'norm      '    13.332       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2878       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88935       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0301       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=   5906.706     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2043 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6848        2.1283       -.46315E-07    .22127E-04
   2  Prefactor     14.019        23.606       -.45905E-06   -.40278E-05
   3  Prefactor     .10000E-03    13.148       -.14844E-06** at limit **
   4  norm          29.743        20.497       -.16376E-06   -.52215E-05
   5  Prefactor     .10000E-03    9.8319        .59920E-07** at limit **
   6  norm          .10000E-03    2.4645        .44769E-08** at limit **
   7  norm          11.176        12.548       -.65716E-06   -.72747E-04
   8  norm          13.334        23.494        .19878E-05   -.34000E-04
   9  norm          1.2873        1.1022        .92424E-06    .35360E-03
  10  Prefactor     1.7892        1.5200        .86693E-06    .24863E-03
  11  Prefactor     4.2611        34.470        .52832E-06   -.34953E-04
  12  Prefactor     21.144        45.001       -.35276E-04   -.49766E-04
  13  Prefactor     .10000E-03    10.033        .32525E-06** at limit **
  14  Prefactor     .10000E-03    95.605        .21980E-05** at limit **
  15  norm          .10000E-03    .86676        .17101E-06** at limit **
  16  Prefactor     .10000E-03    4.3085       -.33532E-07** at limit **
  17  norm          1.8721        1.5585       -.26809E-07   -.69045E-04
  18  Prefactor     .10000E-03    53.183       -.72062E-06** at limit **
  19  Normalizat    .88933        .21322        .26535E-05   -.10914E-03
  20  Prefactor     1.0302        .11279       -.75289E-08   -.21095E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.68477
  Prefactor  = 14.0194
  Prefactor  = 0.0001
  norm       = 29.7429
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.1756
  norm       = 13.3337
  norm       = 1.28727
  Prefactor  = 1.78915
  Prefactor  = 4.26114
  Prefactor  = 21.1438
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87205
  Prefactor  = 0.0001
  Normalizat = 0.889328
  Prefactor  = 1.03017
 **********
 **   18 **HESSE 
 **********

 FCN=   5906.706     FROM HESSE     STATUS=OK           295 CALLS     2338 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6848        2.1291        .73315E-04   -1.5275    
   2  Prefactor     14.019        23.637        .10698E-03   -1.4959    
   3  Prefactor     .10000E-03    13.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.743        20.501        .73465E-04   -1.4617    
   5  Prefactor     .10000E-03    9.8347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4850        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.176        12.586        .11983E-03   -1.5039    
   8  norm          13.334        23.440        .10970E-03   -1.4977    
   9  norm          1.2873        1.1024        .68084E-04   -1.5481    
  10  Prefactor     1.7892        1.5065        .80464E-04   -1.5440    
  11  Prefactor     4.2611        34.258        .19516E-03   -1.5295    
  12  Prefactor     21.144        44.969        .87051E-04   -1.4788    
  13  Prefactor     .10000E-03    10.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    98.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .89278        .13972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3330        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8721        1.5530        .84842E-04   -1.5434    
  18  Prefactor     .10000E-03    53.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88933        .23939        .33904E-03   -.96836    
  20  Prefactor     1.0302        .12774        .17258E-03   -.91731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7191e-10
Minuit parameter uncertainties:
  1  2.12912
  2  23.653
  3  6.30378e-05
  4  20.5056
  5  4.61423e-06
  6  1.31123e-06
  7  12.589
  8  23.4565
  9  1.10243
  10  1.5065
  11  24.1831
  12  45.0412
  13  0.000120033
  14  0.000547369
  15  1.64982e-05
  16  7.0782e-06
  17  1.55305
  18  7.42601e-05
  19  0.23968
  20  0.127773
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.118e+01  1.259e+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.030e+00  1.278e-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:  8.893e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/400901/likelihoodResults_530668801_530928001_4FGL_J0422.1-0644_daily_bin1124.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) = 5905.68859577
delta logL = 1.01715290711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.68107409
delta logL = 1.02467459558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4458       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9880       1.0000          .0000       5.0000    
     3 'Normalizat'    .78502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0652       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=   5905.681     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      249 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4318        55.975        .47745E-02    .40148E-03
   2  alpha         3.9901        4.4110        .36924        .44366E-04
   3  Normalizat    .78511        .86758E-01    .80977E-01    .24353E-04
   4  Prefactor     1.0651        .47091E-01    .39094E-01   -.40817E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.43181
  alpha      = 3.99012
  Normalizat = 0.785112
  Prefactor  = 1.06514
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.681     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4318        8.5033        .96005E-04   -1.5287    
   2  alpha         3.9901        1.2744        .16509E-02    .63857    
   3  Normalizat    .78511        .24534        .35854E-03   -1.0062    
   4  Prefactor     1.0651        .12923        .17001E-03   -.90589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79768e-13
Minuit parameter uncertainties:
  1  8.50558
  2  1.38067
  3  0.245686
  4  0.129271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400901': 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) = 5905.68107245
delta logL = 1.02467623649

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.432e+00  8.506e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.990e+00  1.381e+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.065e+00  1.293e-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:  7.851e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.99 +/- 1.38
Photon Flux (Free Index): 1.36e-07 +/- 9.04e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.39e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-05', comment='SUCCESS', energy_flux2='2.09e-05', dlogl='1.02e+00', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-20 13:15:09.582894', photon_index_error2='1.38', photon_index2='3.99', ts='1.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.39e-05', EG='0.89', time_epoch_completed='1629490509.58', return_code='0', job_id='400901', GAL2='1.07', EG2='0.79', return_code2='0', photon_flux_error2='9.04e-08', ts2='3.37', photon_index='2.45' WHERE bin_id='1124' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 400901: <4FGL_J0422.1-0644_daily_bin1124> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin1124> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 13:00:24 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:00:25 2021
Terminated at Fri Aug 20 13:15:11 2021
Results reported at Fri Aug 20 13:15:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin1124 65.5343 -6.741 530668801 530928001 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 :                                   855.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

