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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin400
RA = 65.5343, Dec = -6.741
tmin = 343008001, tmax = 343267201
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='395908', job_status='RUN', time_executed='2021-08-20 12:48:22.417498', time_epoch_executed='1629488902.42' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395908/ft1_4FGL_J0422.1-0644_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395908/ft1_4FGL_J0422.1-0644_daily_bin400.fits outfile=/scratch/kocevski/395908/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin400.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=343008001.0 tmax=343267201.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.54
user 3.60
sys 0.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.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/395908/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.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.22
user 0.30
sys 0.91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/395908/ltcube_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.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/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits
.....................!
real 12.30
user 11.12
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/395908/ltcube_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.fits outfile=/scratch/kocevski/395908/expmap_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.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/395908/ltcube_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.fits
.....................!
real 190.98
user 185.05
sys 5.59

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/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.fits scfile=/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits outfile=/scratch/kocevski/395908/cmap_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.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.25
user 0.37
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.fits scfile=/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits outfile=/scratch/kocevski/395908/cmap_HighResolution_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.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.26
user 0.38
sys 0.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/395908/ft2_4FGL_J0422.1-0644_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395908/Model_4FGL_J0422.1-0644_daily_bin400.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/395908/ft1_filtered_4FGL_J0422.1-0644_daily_bin400.fits.....................!
real 90.52
user 88.13
sys 2.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.244       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .87116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2033       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.608       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6831       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6416       1.0000         .10000E-03   10000.    
     8 'norm      '    23.875       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12394E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29211E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91237       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1257       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=   6201.782     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2137 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.244        3.3995        .32446E-07   -.25093E-04
   2  Prefactor     .90846        42.236        .28562E-05    .48673E-03
   3  Prefactor     4.2008        9.6479        .30768E-05    .37107E-03
   4  norm          .10000E-03    11.310        .34301E-07** at limit **
   5  Prefactor     39.617        40.486        .15052E-05    .40772E-04
   6  norm          3.6830        5.0041       -.18149E-06   -.10357E-03
   7  norm          5.6399        8.0861        .13387E-05    .18368E-03
   8  norm          23.879        27.404       -.23503E-06   -.43425E-04
   9  norm          7.4153        2.0407        .44266E-07   -.24924E-03
  10  Prefactor     .10000E-03    1.5444        .70783E-07** at limit **
  11  Prefactor     2.2412        99.585       -.35564E-06   -.11874E-04
  12  Prefactor     .10000E-03    187.53        .73247E-05** at limit **
  13  Prefactor     .10000E-03    9.0236       -.14774E-06** at limit **
  14  Prefactor     .10000E-03    62.819        .28812E-05** at limit **
  15  norm          1.0590        2.3185       -.39592E-06   -.30696E-03
  16  Prefactor     .10000E-03    4.3972        .15010E-06** at limit **
  17  norm          .28637        2.2168       -.13076E-05   -.33799E-03
  18  Prefactor     .10143E-03    208.97       -.19830E-04** at limit **
  19  Normalizat    .91258        .25751        .13944E-05    .37783E-04
  20  Prefactor     1.1255        .13106       -.15278E-05   -.18708E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2442
  Prefactor  = 0.908465
  Prefactor  = 4.20079
  norm       = 0.0001
  Prefactor  = 39.6173
  norm       = 3.68303
  norm       = 5.63986
  norm       = 23.8792
  norm       = 7.41535
  Prefactor  = 0.0001
  Prefactor  = 2.24125
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.05896
  Prefactor  = 0.0001
  norm       = 0.286369
  Prefactor  = 0.000101434
  Normalizat = 0.912575
  Prefactor  = 1.12551
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.782     FROM HESSE     STATUS=OK           307 CALLS     2444 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.244        3.3993        .70601E-04   -1.4980    
   2  Prefactor     .90846        78.950        .62674E-02   -1.5517    
   3  Prefactor     4.2008        9.7581        .19656E-03   -1.5298    
   4  norm          .10000E-03    11.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.617        40.285        .63689E-04   -1.4448    
   6  norm          3.6830        4.9901        .19551E-03   -1.5324    
   7  norm          5.6399        8.0912        .16913E-03   -1.5233    
   8  norm          23.879        27.021        .81979E-04   -1.4730    
   9  norm          7.4153        1.9982        .53346E-04   -1.5163    
  10  Prefactor     .10000E-03    2.6893        .17933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2412        99.015        .27485E-03   -1.5409    
  12  Prefactor     .10000E-03    189.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.1171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0590        2.2743        .16587E-03   -1.5502    
  16  Prefactor     .10000E-03    4.4119        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28637        2.2777        .22270E-03   -1.5601    
  18  Prefactor     .10143E-03    25.789        .11194       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91258        .27990        .37907E-03   -.96020    
  20  Prefactor     1.1255        .14435        .18561E-03   -.88655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96068e-09
Minuit parameter uncertainties:
  1  3.39933
  2  16.9601
  3  9.76181
  4  5.95858e-06
  5  40.3128
  6  4.99064
  7  8.09281
  8  27.0347
  9  1.99823
  10  1.4446e-05
  11  29.8459
  12  0.00166186
  13  1.99485e-05
  14  0.000469371
  15  2.27444
  16  9.99033e-06
  17  1.61507
  18  0.0121676
  19  0.280351
  20  0.144395
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  5.640e+00  8.093e+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.126e+00  1.444e-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:  9.126e-01  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395908/likelihoodResults_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.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) = 6201.64641968
delta logL = 0.135799668908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6201.63241775
delta logL = 0.149801600785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6105       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1979       1.0000          .0000       5.0000    
     3 'Normalizat'    .88372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1345       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6201.632     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6060        8.8845        .92737E-03   -.54859E-04
   2  alpha         3.1982        1.5870        .26985E-01    .15005E-03
   3  Normalizat    .88380        .26814        .38457E-03   -.15490E-04
   4  Prefactor     1.1345        .14183        .18495E-03   -.23358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.60602
  alpha      = 3.19825
  Normalizat = 0.883797
  Prefactor  = 1.13447
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.632     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6060        7.4571        .37095E-04   -1.5279    
   2  alpha         3.1982        1.3662        .53970E-02    .28306    
   3  Normalizat    .88380        .26786        .15383E-04   -.97032    
   4  Prefactor     1.1345        .14170        .73981E-05   -.88372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90182e-12
Minuit parameter uncertainties:
  1  7.45864
  2  1.45339
  3  0.268265
  4  0.141747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395908': 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) = 6201.6324175
delta logL = 0.149801844967

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.606e+00  7.459e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.198e+00  1.453e+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.134e+00  1.417e-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.838e-01  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.20 +/- 1.45
Photon Flux (Free Index): 4.88e-08 +/- 6.63e-08
Energy Flux (Free Index): 9.23e-06 +/- 1.08e-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/395908/cmap_HighResolution_343008001_343267201_4FGL_J0422.1-0644_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-05', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='1.50e-01', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-08-20 12:58:19.956364', photon_index_error2='1.45', photon_index2='3.20', ts='0.78', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.08e-05', EG='0.91', time_epoch_completed='1629489499.96', return_code='0', job_id='395908', GAL2='1.13', EG2='0.88', return_code2='0', photon_flux_error2='6.63e-08', ts2='1.10', photon_index='2.45' WHERE bin_id='400' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:58:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 395908: <4FGL_J0422.1-0644_daily_bin400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin400 65.5343 -6.741 343008001 343267201 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 :                                   608.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

