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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin702
RA = 65.5343, Dec = -6.741
tmin = 421286401, tmax = 421545601
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='397572', job_status='RUN', time_executed='2021-08-20 12:55:46.426196', time_epoch_executed='1629489346.43' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397572

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397572/ft1_4FGL_J0422.1-0644_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397572/ft1_4FGL_J0422.1-0644_daily_bin702.fits outfile=/scratch/kocevski/397572/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin702.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=421286401.0 tmax=421545601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.80
user 3.44
sys 4.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.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/397572/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.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 4.57
user 0.35
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/397572/ltcube_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.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/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits
.....................!
real 17.07
user 12.12
sys 4.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/397572/ltcube_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.fits outfile=/scratch/kocevski/397572/expmap_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.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/397572/ltcube_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.fits
.....................!
real 196.17
user 186.26
sys 9.42

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/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.fits scfile=/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits outfile=/scratch/kocevski/397572/cmap_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.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 4.47
user 0.38
sys 4.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.fits scfile=/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits outfile=/scratch/kocevski/397572/cmap_HighResolution_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.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 4.47
user 0.38
sys 4.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/397572/ft2_4FGL_J0422.1-0644_daily_bin702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397572/Model_4FGL_J0422.1-0644_daily_bin702.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/397572/ft1_filtered_4FGL_J0422.1-0644_daily_bin702.fits....................!
real 91.38
user 84.74
sys 6.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.444       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    48.038       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3202       1.0000         .10000E-03   10000.    
     9 'norm      '    .61840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3251       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.830       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88654       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0586       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=   5900.986     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1850 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0079        .84775E-07** at limit **
   2  Prefactor     .10000E-03    21.958        .19101E-05** at limit **
   3  Prefactor     12.324        12.441       -.23255E-06   -.87576E-04
   4  norm          .10000E-03    6.5124        .93567E-07** at limit **
   5  Prefactor     22.444        21.617        .19997E-07    .15167E-05
   6  norm          .10000E-03    4.9605       -.12400E-06** at limit **
   7  norm          48.033        16.146       -.48498E-06   -.17395E-03
   8  norm          4.3144        33.948       -.17543E-05   -.57259E-04
   9  norm          .61819        .70966       -.53317E-07    .23422E-05
  10  Prefactor     1.3701        1.6663        .23698E-07    .76813E-04
  11  Prefactor     73.948        36.564       -.73676E-06   -.12103E-03
  12  Prefactor     .10000E-03    23.454       -.21309E-05** at limit **
  13  Prefactor     5.3245        6.6449        .17947E-05   -.29358E-03
  14  Prefactor     15.831        19.386        .23586E-07    .36943E-05
  15  norm          3.0986        1.9768       -.12213E-07   -.24074E-05
  16  Prefactor     .10000E-03    9.5187       -.69804E-07** at limit **
  17  norm          .10000E-03    .67343        .34762E-07** at limit **
  18  Prefactor     .10000E-03    23.199        .21987E-06** at limit **
  19  Normalizat    .88681        .23563        .29148E-06   -.14899E-04
  20  Prefactor     1.0584        .11956       -.10492E-06    .24764E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.3239
  norm       = 0.0001
  Prefactor  = 22.4442
  norm       = 0.0001
  norm       = 48.0335
  norm       = 4.31443
  norm       = 0.618187
  Prefactor  = 1.37015
  Prefactor  = 73.9476
  Prefactor  = 0.000100001
  Prefactor  = 5.32454
  Prefactor  = 15.8306
  norm       = 3.09861
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.886813
  Prefactor  = 1.05844
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.986     FROM HESSE     STATUS=OK           295 CALLS     2145 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7202        .14868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.324        12.611        .11408E-03   -1.5006    
   4  norm          .10000E-03    6.5151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.444        21.599        .84548E-04   -1.4760    
   6  norm          .10000E-03    5.0883        .33381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          48.033        16.245        .57854E-04   -1.4321    
   8  norm          4.3144        34.473        .19381E-03   -1.5293    
   9  norm          .61819        .68889        .66527E-04   -1.5551    
  10  Prefactor     1.3701        1.6232        .10137E-03   -1.5474    
  11  Prefactor     73.948        36.704        .46688E-04   -1.3986    
  12  Prefactor     .10000E-03    24.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3245        6.8826        .87082E-03   -1.5246    
  14  Prefactor     15.831        19.384        .10067E-03   -1.4912    
  15  norm          3.0986        1.9735        .83115E-04   -1.5356    
  16  Prefactor     .10000E-03    9.6971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1380        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88681        .26267        .36266E-03   -.96925    
  20  Prefactor     1.0584        .13409        .17900E-03   -.90806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03781e-10
Minuit parameter uncertainties:
  1  7.75648e-05
  2  0.000269103
  3  12.6142
  4  7.02704e-06
  5  21.6062
  6  4.91847e-06
  7  16.2461
  8  24.41
  9  0.688897
  10  1.62325
  11  36.7148
  12  0.000290487
  13  6.88366
  14  19.3919
  15  1.97356
  16  1.57893e-05
  17  4.06834e-06
  18  1.29749e-05
  19  0.26305
  20  0.134131
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.803e+01  1.625e+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.058e+00  1.341e-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.868e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.79
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.12e-07 +/- 7.17e-08
Energy Flux (Fixed Index): 6.28e-05 +/- 2.12e-05

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) = 5900.97198832
delta logL = 0.0143427647581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5900.96787719
delta logL = 0.0184538923813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.658       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5159       1.0000          .0000       5.0000    
     3 'Normalizat'    .87597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0622       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=   5900.968     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      248 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.653        17.666        .58700E-04   -.43577E-04
   2  alpha         2.5163        .37645        .89796E-02   -.66494E-05
   3  Normalizat    .87635        .25273        .36450E-03   -.83527E-04
   4  Prefactor     1.0618        .13212        .17875E-03   -.74643E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 46.6528
  alpha      = 2.51634
  Normalizat = 0.876354
  Prefactor  = 1.06183
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.968     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.653        17.429        .23480E-05   -1.4341    
   2  alpha         2.5163        .37115        .35918E-03    .65353E-02
   3  Normalizat    .87635        .25283        .14580E-04   -.97296    
   4  Prefactor     1.0618        .13216        .35750E-04   -.90696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44158e-11
Minuit parameter uncertainties:
  1  17.431
  2  0.372528
  3  0.253175
  4  0.1322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397572': 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) = 5900.9678724
delta logL = 0.0184586915402

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.665e+01  1.743e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.516e+00  3.725e-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.062e+00  1.322e-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.764e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.81
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.52 +/- 0.37
Photon Flux (Free Index): 2.22e-07 +/- 8.89e-08
Energy Flux (Free Index): 6.17e-05 +/- 2.12e-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/397572/cmap_HighResolution_421286401_421545601_4FGL_J0422.1-0644_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.12e-07', energy_flux2='6.17e-05', photon_flux_error='7.17e-08', dlogl='1.85e-02', energy_flux='6.28e-05', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-08-20 13:05:25.172669', photon_index_error2='0.37', photon_index2='2.52', ts='19.79', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.89', time_epoch_completed='1629489925.17', return_code='0', job_id='397572', GAL2='1.06', EG2='0.88', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='8.89e-08', ts2='19.81', photon_index='2.45' WHERE bin_id='702' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 397572: <4FGL_J0422.1-0644_daily_bin702> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin702 65.5343 -6.741 421286401 421545601 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

