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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin581
RA = 65.5343, Dec = -6.741
tmin = 389923201, tmax = 390182401
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='397377', job_status='RUN', time_executed='2021-08-20 12:54:46.717282', time_epoch_executed='1629489286.72' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397377/ft1_4FGL_J0422.1-0644_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397377/ft1_4FGL_J0422.1-0644_daily_bin581.fits outfile=/scratch/kocevski/397377/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin581.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=389923201.0 tmax=390182401.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 10.38
user 3.24
sys 7.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397377/ft1_filtered_4FGL_J0422.1-0644_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/397377/ltcube_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.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/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits
.....................!
real 20.47
user 11.68
sys 8.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397377/ft1_filtered_4FGL_J0422.1-0644_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/397377/ltcube_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.fits outfile=/scratch/kocevski/397377/expmap_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.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/397377/ltcube_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.fits
.....................!
real 200.09
user 185.41
sys 14.27

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/397377/ft1_filtered_4FGL_J0422.1-0644_daily_bin581.fits scfile=/scratch/kocevski/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits outfile=/scratch/kocevski/397377/cmap_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.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 8.06
user 0.38
sys 7.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397377/ft1_filtered_4FGL_J0422.1-0644_daily_bin581.fits scfile=/scratch/kocevski/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits outfile=/scratch/kocevski/397377/cmap_HighResolution_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.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 7.98
user 0.39
sys 7.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397377/ft1_filtered_4FGL_J0422.1-0644_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/397377/ft2_4FGL_J0422.1-0644_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397377/Model_4FGL_J0422.1-0644_daily_bin581.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/397377/ft1_filtered_4FGL_J0422.1-0644_daily_bin581.fits.....................!
real 106.97
user 94.45
sys 11.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6403       1.0000         .10000E-03   10000.    
     7 'norm      '    10.960       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7035       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6262       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0510       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=   6606.881     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2044 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9234        3.3846        .11726E-06   -.32976E-05
   2  Prefactor     27.115        39.926        .91826E-06   -.22498E-05
   3  Prefactor     .10000E-03    7.2893        .17290E-07** at limit **
   4  norm          .10000E-03    11.350        .11221E-06** at limit **
   5  Prefactor     .10000E-03    7.4621       -.49742E-08** at limit **
   6  norm          5.6398        4.6292       -.20514E-06    .92116E-05
   7  norm          10.962        13.278        .32347E-06    .67052E-05
   8  norm          .10000E-03    7.9287       -.17366E-06** at limit **
   9  norm          1.2725        1.4017       -.98181E-07   -.13457E-03
  10  Prefactor     1.2628        1.1955       -.10126E-06   -.41601E-04
  11  Prefactor     .10000E-03    15.625       -.11630E-06** at limit **
  12  Prefactor     30.112        44.023        .39438E-05    .13087E-04
  13  Prefactor     11.870        13.805       -.33202E-07    .13634E-04
  14  Prefactor     3.7052        36.711        .46037E-06   -.14475E-06
  15  norm          6.6265        2.8794       -.76340E-07    .83537E-05
  16  Prefactor     .10000E-03    3.3763        .22150E-07** at limit **
  17  norm          2.9181        2.7542        .10259E-05   -.53699E-04
  18  Prefactor     .10000E-03    64.956        .50879E-06** at limit **
  19  Normalizat    1.1074        .24150       -.71442E-06    .20706E-04
  20  Prefactor     1.0512        .11835       -.19201E-06   -.32658E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92337
  Prefactor  = 27.1153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.63983
  norm       = 10.9624
  norm       = 0.0001
  norm       = 1.27247
  Prefactor  = 1.26281
  Prefactor  = 0.0001
  Prefactor  = 30.1124
  Prefactor  = 11.8702
  Prefactor  = 3.70522
  norm       = 6.6265
  Prefactor  = 0.0001
  norm       = 2.9181
  Prefactor  = 0.0001
  Normalizat = 1.1074
  Prefactor  = 1.05119
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.881     FROM HESSE     STATUS=OK           295 CALLS     2339 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9234        3.3850        .44082E-03   -1.5110    
   2  Prefactor     27.115        40.089        .76927E-04   -1.4666    
   3  Prefactor     .10000E-03    7.5285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6398        4.6109        .15061E-03   -1.5233    
   7  norm          10.962        13.290        .12102E-03   -1.5046    
   8  norm          .10000E-03    7.9366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2725        1.3651        .89733E-04   -1.5482    
  10  Prefactor     1.2628        1.2133        .81363E-04   -1.5483    
  11  Prefactor     .10000E-03    15.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.112        44.030        .72986E-04   -1.4610    
  13  Prefactor     11.870        13.795        .11628E-03   -1.5019    
  14  Prefactor     3.7052        36.807        .20985E-03   -1.5323    
  15  norm          6.6265        2.8783        .86462E-04   -1.5193    
  16  Prefactor     .10000E-03    3.3908        .14586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9181        2.7565        .62363E-03   -1.5366    
  18  Prefactor     .10000E-03    66.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1074        .27146        .35559E-03   -.89514    
  20  Prefactor     1.0512        .13305        .19224E-03   -.91042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80937e-12
Minuit parameter uncertainties:
  1  3.38504
  2  40.1288
  3  2.53029e-06
  4  4.47944e-06
  5  1.05666e-06
  6  4.61119
  7  13.2935
  8  5.07233e-06
  9  1.36512
  10  1.21331
  11  1.02346e-05
  12  44.0772
  13  13.7987
  14  23.3747
  15  2.87832
  16  1.20439e-06
  17  2.75657
  18  2.14083e-05
  19  0.271806
  20  0.133093
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.096e+01  1.329e+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.051e+00  1.331e-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.107e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/397377/likelihoodResults_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.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) = 6606.25994906
delta logL = 0.621120307881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6606.2471771
delta logL = 0.63389226805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8304       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9081       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0817       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=   6606.247     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      253 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8256        71.291        .45760E-02    .42886E-03
   2  alpha         3.9088        4.2488        .45830        .50127E-04
   3  Normalizat    1.0146        .85361E-01    .83422E-01    .19597E-04
   4  Prefactor     1.0817        .44302E-01    .38327E-01   -.35295E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.82558
  alpha      = 3.90881
  Normalizat = 1.0146
  Prefactor  = 1.08168
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.247     FROM HESSE     STATUS=OK            29 CALLS      282 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8256        10.597        .12267E-03   -1.5269    
   2  alpha         3.9088        1.4843        .19930E-02    .59864    
   3  Normalizat    1.0146        .26549        .36931E-03   -.92543    
   4  Prefactor     1.0817        .13543        .18985E-03   -.90054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40655e-12
Minuit parameter uncertainties:
  1  10.6009
  2  1.65625
  3  0.265838
  4  0.135472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397377': 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) = 6606.24717694
delta logL = 0.633892423827

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.826e+00  1.060e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.909e+00  1.656e+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.082e+00  1.355e-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.015e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.91 +/- 1.66
Photon Flux (Free Index): 1.32e-07 +/- 1.05e-07
Energy Flux (Free Index): 2.06e-05 +/- 1.58e-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/397377/cmap_HighResolution_389923201_390182401_4FGL_J0422.1-0644_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-05', comment='SUCCESS', energy_flux2='2.06e-05', dlogl='6.34e-01', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-20 13:06:29.918541', photon_index_error2='1.66', photon_index2='3.91', ts='0.88', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.58e-05', EG='1.11', time_epoch_completed='1629489989.92', return_code='0', job_id='397377', GAL2='1.08', EG2='1.01', return_code2='0', photon_flux_error2='1.05e-07', ts2='2.36', photon_index='2.45' WHERE bin_id='581' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 397377: <4FGL_J0422.1-0644_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin581 65.5343 -6.741 389923201 390182401 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 :                                   815.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             224.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            951 sec.

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

