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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin206
RA = 65.5343, Dec = -6.741
tmin = 292723201, tmax = 292982401
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='394449', job_status='RUN', time_executed='2021-08-20 12:43:28.245769', time_epoch_executed='1629488608.25' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394449/ft1_4FGL_J0422.1-0644_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits


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

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

Done.
real 13.66
user 4.21
sys 9.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394449/ft1_filtered_4FGL_J0422.1-0644_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/394449/ltcube_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.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/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits
.....................!
real 23.17
user 12.21
sys 10.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394449/ft1_filtered_4FGL_J0422.1-0644_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/394449/ltcube_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.fits outfile=/scratch/kocevski/394449/expmap_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.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/394449/ltcube_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.fits
.....................!
real 203.85
user 186.83
sys 16.64

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/394449/ft1_filtered_4FGL_J0422.1-0644_daily_bin206.fits scfile=/scratch/kocevski/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits outfile=/scratch/kocevski/394449/cmap_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.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 9.76
user 0.39
sys 9.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394449/ft1_filtered_4FGL_J0422.1-0644_daily_bin206.fits scfile=/scratch/kocevski/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits outfile=/scratch/kocevski/394449/cmap_HighResolution_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.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 9.75
user 0.38
sys 9.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394449/ft1_filtered_4FGL_J0422.1-0644_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/394449/ft2_4FGL_J0422.1-0644_daily_bin206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394449/Model_4FGL_J0422.1-0644_daily_bin206.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/394449/ft1_filtered_4FGL_J0422.1-0644_daily_bin206.fits.....................!
real 100.79
user 87.25
sys 13.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89529       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3539       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5027       1.0000         .10000E-03   10000.    
     6 'norm      '    .31895E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    33.835       1.0000         .10000E-03   10000.    
     8 'norm      '    57.505       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0502       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77410       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2387       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=   6092.361     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2077 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89608        1.8453       -.11789E-05   -.24380E-03
   2  Prefactor     .10000E-03    41.952        .23002E-06** at limit **
   3  Prefactor     2.3535        7.1465       -.92052E-06    .29660E-03
   4  norm          .10000E-03    8.3890       -.28709E-07** at limit **
   5  Prefactor     4.4798        86.829        .57409E-05    .38847E-04
   6  norm          .10000E-03    21.202       -.99976E-05** at limit **
   7  norm          33.836        15.106       -.17773E-06    .18414E-03
   8  norm          57.508        36.545       -.50526E-06   -.88655E-04
   9  norm          .10000E-03    .52183       -.82634E-07** at limit **
  10  Prefactor     1.6483        1.4266       -.36886E-07   -.32016E-03
  11  Prefactor     19.351        30.205        .36472E-06    .40541E-05
  12  Prefactor     20.533        24.463       -.16744E-06    .14849E-04
  13  Prefactor     .10000E-03    12.934       -.55952E-06** at limit **
  14  Prefactor     12.578        21.697        .10687E-06    .24675E-04
  15  norm          3.0503        2.5074       -.13418E-06    .34665E-03
  16  Prefactor     .10000E-03    3.1658       -.53291E-07** at limit **
  17  norm          .10000E-03    1.0607       -.98053E-07** at limit **
  18  Prefactor     .10000E-03    32.263       -.73623E-06** at limit **
  19  Normalizat    .77415        .24096        .11439E-05    .16137E-03
  20  Prefactor     1.2387        .12911        .44141E-07    .55428E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.89608
  Prefactor  = 0.0001
  Prefactor  = 2.35347
  norm       = 0.0001
  Prefactor  = 4.4798
  norm       = 0.0001
  norm       = 33.836
  norm       = 57.5079
  norm       = 0.0001
  Prefactor  = 1.64827
  Prefactor  = 19.351
  Prefactor  = 20.5326
  Prefactor  = 0.0001
  Prefactor  = 12.5781
  norm       = 3.05035
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.774155
  Prefactor  = 1.23868
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.361     FROM HESSE     STATUS=OK           293 CALLS     2370 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89608        1.8419        .15686E-02   -1.5519    
   2  Prefactor     .10000E-03    42.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3535        7.1100        .26715E-03   -1.5401    
   4  norm          .10000E-03    8.3920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4798        89.421        .18974E-03   -1.5285    
   6  norm          .10000E-03    21.059        .27057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          33.836        15.049        .68891E-04   -1.4544    
   8  norm          57.508        36.544        .52903E-04   -1.4190    
   9  norm          .10000E-03    .53921        .10977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6483        1.4147        .82239E-04   -1.5451    
  11  Prefactor     19.351        30.186        .91039E-04   -1.4828    
  12  Prefactor     20.533        24.432        .88392E-04   -1.4801    
  13  Prefactor     .10000E-03    13.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.578        21.697        .11293E-03   -1.4999    
  15  norm          3.0503        2.5003        .10651E-03   -1.5359    
  16  Prefactor     .10000E-03    3.1708        .13563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1120        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77415        .25907        .39850E-03   -1.0103    
  20  Prefactor     1.2387        .14100        .17780E-03   -.85149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92348e-09
Minuit parameter uncertainties:
  1  1.84203
  2  6.8241e-05
  3  7.11251
  4  2.22586e-06
  5  40.0978
  6  0.000180825
  7  15.0506
  8  36.5582
  9  7.43922e-06
  10  1.4147
  11  30.2102
  12  24.4439
  13  1.88894e-05
  14  21.7101
  15  2.5004
  16  2.90692e-06
  17  2.27919e-06
  18  1.20197e-05
  19  0.259478
  20  0.141044
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.384e+01  1.505e+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.239e+00  1.410e-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.742e-01  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.12
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 6.64e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 1.97e-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) = 6092.06578653
delta logL = 0.29505685779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6092.04563895
delta logL = 0.315204439054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.076       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1030       1.0000          .0000       5.0000    
     3 'Normalizat'    .81069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2260       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=   6092.046     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.076        22.690        .16455E-02   -.20040E-02
   2  alpha         2.1030        .51289        .28245       -.40743E-05
   3  Normalizat    .81069        .23175        .88100E-01    .24564E-04
   4  Prefactor     1.2260        .12654        .34044E-01   -.45187E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 37.0765
  alpha      = 2.10297
  Normalizat = 0.810692
  Prefactor  = 1.22597
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.046     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.076        16.692        .65820E-04   -1.4489    
   2  alpha         2.1030        .41184        .11379E-01   -.15949    
   3  Normalizat    .81069        .25253        .39021E-03   -.99673    
   4  Prefactor     1.2260        .13774        .17853E-03   -.85536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05259e-09
Minuit parameter uncertainties:
  1  16.6942
  2  0.413771
  3  0.252893
  4  0.137782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394449': 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) = 6092.04563895
delta logL = 0.315204439687

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.708e+01  1.669e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.103e+00  4.138e-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.226e+00  1.378e-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.107e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.66
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.10 +/- 0.41
Photon Flux (Free Index): 1.19e-07 +/- 6.72e-08
Energy Flux (Free Index): 5.24e-05 +/- 2.71e-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/394449/cmap_HighResolution_292723201_292982401_4FGL_J0422.1-0644_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='5.24e-05', photon_flux_error='6.64e-08', dlogl='3.15e-01', energy_flux='4.42e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-08-20 12:54:43.127446', photon_index_error2='0.41', photon_index2='2.10', ts='9.12', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='2.71e-05', EG='0.77', time_epoch_completed='1629489283.13', return_code='0', job_id='394449', GAL2='1.23', EG2='0.81', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='6.72e-08', ts2='9.66', photon_index='2.45' WHERE bin_id='206' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 394449: <4FGL_J0422.1-0644_daily_bin206> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin206> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:44 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:46 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:40:46 2021
Terminated at Fri Aug 20 12:54:45 2021
Results reported at Fri Aug 20 12:54:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin206 65.5343 -6.741 292723201 292982401 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 :                                   818.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

