/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 149 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin414
RA = 65.5343, Dec = -6.741
tmin = 346636801, tmax = 346896001
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='395929', job_status='RUN', time_executed='2021-08-20 12:48:32.983075', time_epoch_executed='1629488912.98' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395929/ft1_4FGL_J0422.1-0644_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395929/ft1_4FGL_J0422.1-0644_daily_bin414.fits outfile=/scratch/kocevski/395929/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin414.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=346636801.0 tmax=346896001.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 4.65
user 3.29
sys 1.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395929/ft1_filtered_4FGL_J0422.1-0644_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/395929/ltcube_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.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/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits
.....................!
real 18.08
user 16.67
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395929/ft1_filtered_4FGL_J0422.1-0644_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/395929/ltcube_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.fits outfile=/scratch/kocevski/395929/expmap_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.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/395929/ltcube_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.fits
.....................!
real 199.19
user 192.24
sys 6.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/395929/ft1_filtered_4FGL_J0422.1-0644_daily_bin414.fits scfile=/scratch/kocevski/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits outfile=/scratch/kocevski/395929/cmap_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.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.54
user 0.43
sys 1.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395929/ft1_filtered_4FGL_J0422.1-0644_daily_bin414.fits scfile=/scratch/kocevski/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits outfile=/scratch/kocevski/395929/cmap_HighResolution_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.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.42
user 0.41
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395929/ft1_filtered_4FGL_J0422.1-0644_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/395929/ft2_4FGL_J0422.1-0644_daily_bin414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395929/Model_4FGL_J0422.1-0644_daily_bin414.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/395929/ft1_filtered_4FGL_J0422.1-0644_daily_bin414.fits.....................!
real 99.91
user 97.06
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    50.542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1012       1.0000         .10000E-03   10000.    
     8 'norm      '    .10486E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0301       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8882       1.0000         .10000E-03   10000.    
    17 'norm      '    .16412E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.928       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1069       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=   6816.464     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2053 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1636        2.8120       -.18470E-06   -.78334E-04
   2  Prefactor     .10000E-03    18.590       -.23416E-06** at limit **
   3  Prefactor     .10000E-03    4.3725       -.65403E-07** at limit **
   4  norm          50.532        30.648       -.47633E-05    .11790E-05
   5  Prefactor     .10000E-03    13.367        .37731E-05** at limit **
   6  norm          .10000E-03    4.9673        .15773E-06** at limit **
   7  norm          4.0993        7.1467       -.21559E-05   -.16417E-03
   8  norm          .10000E-03    74.158        .67859E-05** at limit **
   9  norm          6.0290        1.8019       -.84376E-09   -.16330E-03
  10  Prefactor     1.5427        1.8046       -.54285E-07   -.55657E-03
  11  Prefactor     14.322        30.623       -.10831E-04   -.26057E-04
  12  Prefactor     .10000E-03    50.129       -.27855E-05** at limit **
  13  Prefactor     .10000E-03    6.6179        .71361E-07** at limit **
  14  Prefactor     .10000E-03    13.253       -.35971E-05** at limit **
  15  norm          3.2715        2.1291        .12039E-09   -.34591E-03
  16  Prefactor     9.8887        7.1394        .26883E-06    .19792E-04
  17  norm          .10000E-03    1.4695        .13106E-05** at limit **
  18  Prefactor     27.898        32.430       -.21364E-04   -.16483E-03
  19  Normalizat    .79650        .21154        .22325E-05   -.10592E-03
  20  Prefactor     1.1069        .11509        .14270E-05   -.38325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.16356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.5325
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.09927
  norm       = 0.0001
  norm       = 6.02897
  Prefactor  = 1.54267
  Prefactor  = 14.3224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2715
  Prefactor  = 9.88873
  norm       = 0.000100004
  Prefactor  = 27.898
  Normalizat = 0.796499
  Prefactor  = 1.10687
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.464     FROM HESSE     STATUS=OK           291 CALLS     2344 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1636        2.8108        .83171E-04   -1.5173    
   2  Prefactor     .10000E-03    18.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4484        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          50.532        30.593        .56410E-04   -1.4285    
   5  Prefactor     .10000E-03    13.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0797        .35875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0993        7.1438        .19907E-03   -1.5303    
   8  norm          .10000E-03    75.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0290        1.7918        .56004E-04   -1.5217    
  10  Prefactor     1.5427        1.7763        .11180E-03   -1.5460    
  11  Prefactor     14.322        30.549        .10579E-03   -1.4951    
  12  Prefactor     .10000E-03    50.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2715        2.1226        .93536E-04   -1.5346    
  16  Prefactor     9.8887        7.1399        .12743E-03   -1.5079    
  17  norm          .10000E-03    3.4937        .19277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.898        32.492        .75809E-04   -1.4651    
  19  Normalizat    .79650        .23133        .38510E-03   -1.0020    
  20  Prefactor     1.1069        .12684        .18057E-03   -.89247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44736e-09
Minuit parameter uncertainties:
  1  2.8109
  2  3.23637e-05
  3  1.88657e-05
  4  30.6022
  5  3.77245e-06
  6  2.88482e-05
  7  7.1453
  8  0.000180129
  9  1.79177
  10  1.77635
  11  30.5822
  12  4.54714e-05
  13  2.9766e-06
  14  2.78373e-05
  15  2.12263
  16  7.14047
  17  0.000239692
  18  32.5127
  19  0.231611
  20  0.126878
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.099e+00  7.145e+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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.107e+00  1.269e-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.965e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395929/likelihoodResults_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.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) = 6816.20107758
delta logL = 0.263136514555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6816.19453144
delta logL = 0.269682651377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4631       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5366       1.0000          .0000       5.0000    
     3 'Normalizat'    .80899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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=   6816.195     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4664        4.8647        .54328E-02    .94529E-04
   2  alpha         1.5361        .66575        .45896       -.44802E-04
   3  Normalizat    .80903        .20657        .86316E-01   -.46421E-04
   4  Prefactor     1.1028        .11297        .37480E-01    .61471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4664
  alpha      = 1.5361
  Normalizat = 0.809026
  Prefactor  = 1.1028
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.195     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4664        5.7493        .21036E-03   -1.5336    
   2  alpha         1.5361        .96237        .23580E-01   -.39581    
   3  Normalizat    .80903        .22732        .38229E-03   -.99735    
   4  Prefactor     1.1028        .12467        .18082E-03   -.89377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78734e-11
Minuit parameter uncertainties:
  1  5.7502
  2  0.992736
  3  0.227588
  4  0.124698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395929': 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) = 6816.19453081
delta logL = 0.269683284781

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.466e+00  5.750e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.536e+00  9.927e-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.103e+00  1.247e-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.090e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.54 +/- 0.99
Photon Flux (Free Index): 7.99e-09 +/- 1.44e-08
Energy Flux (Free Index): 1.09e-05 +/- 2.13e-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/395929/cmap_HighResolution_346636801_346896001_4FGL_J0422.1-0644_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='2.70e-01', photon_flux2='7.99e-09', job_status='DONE', time_completed='2021-08-20 12:59:09.417127', photon_index_error2='0.99', photon_index2='1.54', ts='0.50', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='2.13e-05', EG='0.80', time_epoch_completed='1629489549.42', return_code='0', job_id='395929', GAL2='1.10', EG2='0.81', return_code2='0', photon_flux_error2='1.44e-08', ts2='1.04', photon_index='2.45' WHERE bin_id='414' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 395929: <4FGL_J0422.1-0644_daily_bin414> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin414> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:36 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:39 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:45:39 2021
Terminated at Fri Aug 20 12:59:10 2021
Results reported at Fri Aug 20 12:59:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin414 65.5343 -6.741 346636801 346896001 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 :                                   646.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            814 sec.

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

