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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin297
RA = 65.5343, Dec = -6.741
tmin = 316310401, tmax = 316569601
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='395755', job_status='RUN', time_executed='2021-08-20 12:49:09.901715', time_epoch_executed='1629488949.9' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395755

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395755/ft1_4FGL_J0422.1-0644_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395755/ft1_4FGL_J0422.1-0644_daily_bin297.fits outfile=/scratch/kocevski/395755/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin297.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=316310401.0 tmax=316569601.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.00
user 3.28
sys 3.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395755/ft1_filtered_4FGL_J0422.1-0644_daily_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/395755/ltcube_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.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/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits
.....................!
real 16.40
user 12.03
sys 4.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395755/ft1_filtered_4FGL_J0422.1-0644_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/395755/ltcube_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.fits outfile=/scratch/kocevski/395755/expmap_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.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/395755/ltcube_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.fits
.....................!
real 196.13
user 186.01
sys 9.70

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/395755/ft1_filtered_4FGL_J0422.1-0644_daily_bin297.fits scfile=/scratch/kocevski/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits outfile=/scratch/kocevski/395755/cmap_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.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 3.98
user 0.38
sys 3.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395755/ft1_filtered_4FGL_J0422.1-0644_daily_bin297.fits scfile=/scratch/kocevski/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits outfile=/scratch/kocevski/395755/cmap_HighResolution_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.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 3.97
user 0.38
sys 3.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395755/ft1_filtered_4FGL_J0422.1-0644_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/395755/ft2_4FGL_J0422.1-0644_daily_bin297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395755/Model_4FGL_J0422.1-0644_daily_bin297.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/395755/ft1_filtered_4FGL_J0422.1-0644_daily_bin297.fits.....................!
real 109.45
user 103.49
sys 5.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.5082       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7595       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7644       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65002E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.426       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2105       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8789       1.0000         .10000E-03   10000.    
    17 'norm      '    .61874       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.683       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1960       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88515       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=   7414.006     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2100 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8829        1.8323        .72289E-07   -.80248E-04
   2  Prefactor     .10000E-03    24.996        .32295E-06** at limit **
   3  Prefactor     .10000E-03    4.7067        .92352E-09** at limit **
   4  norm          9.5084        9.6734       -.98400E-07    .12212E-04
   5  Prefactor     .10000E-03    12.536       -.34390E-06** at limit **
   6  norm          5.7579        4.9320        .18858E-05   -.21237E-02
   7  norm          .10000E-03    5.1389        .52858E-07** at limit **
   8  norm          .10000E-03    30.843       -.65418E-07** at limit **
   9  norm          2.7667        1.5662       -.12729E-06    .41798E-03
  10  Prefactor     .10000E-03    .86314       -.47909E-07** at limit **
  11  Prefactor     .10000E-03    12.981        .29183E-06** at limit **
  12  Prefactor     10.626        72.324        .24869E-05    .48572E-04
  13  Prefactor     20.559        11.190       -.50529E-07    .33243E-04
  14  Prefactor     18.427        22.896        .41875E-05    .39653E-03
  15  norm          2.2101        2.3471        .21560E-06   -.49856E-04
  16  Prefactor     2.8782        4.9111        .90249E-07   -.12391E-03
  17  norm          .61842        1.5222        .31323E-06   -.54019E-03
  18  Prefactor     34.680        24.340        .38742E-05    .64976E-03
  19  Normalizat    1.1960        .19842       -.15038E-05    .11728E-03
  20  Prefactor     .88524        .99566E-01   -.17045E-06    .63873E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.88285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.50843
  Prefactor  = 0.0001
  norm       = 5.75791
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.76673
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 10.6255
  Prefactor  = 20.5588
  Prefactor  = 18.4272
  norm       = 2.2101
  Prefactor  = 2.87818
  norm       = 0.618421
  Prefactor  = 34.6803
  Normalizat = 1.19598
  Prefactor  = 0.885241
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.006     FROM HESSE     STATUS=OK           297 CALLS     2397 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8829        1.8289        .89770E-04   -1.5368    
   2  Prefactor     .10000E-03    25.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.5084        9.6799        .12996E-03   -1.5091    
   5  Prefactor     .10000E-03    12.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7579        5.9536        .83680E-03   -1.5228    
   7  norm          .10000E-03    5.1846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    31.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7667        1.5697        .68017E-04   -1.5375    
  10  Prefactor     .10000E-03    17.070        .13699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.626        61.357        .12376E-03   -1.5056    
  13  Prefactor     20.559        11.236        .88329E-04   -1.4801    
  14  Prefactor     18.427        23.444        .93304E-04   -1.4849    
  15  norm          2.2101        2.3232        .12603E-03   -1.5411    
  16  Prefactor     2.8782        4.8993        .23954E-03   -1.5369    
  17  norm          .61842        1.5053        .15908E-03   -1.5551    
  18  Prefactor     34.680        25.461        .68046E-04   -1.4529    
  19  Normalizat    1.1960        .22409        .31215E-03   -.86727    
  20  Prefactor     .88524        .11274        .18774E-03   -.96659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58029e-09
Minuit parameter uncertainties:
  1  1.82894
  2  7.58639e-05
  3  9.25698e-06
  4  9.68152
  5  3.68493e-05
  6  5.95418
  7  6.44196e-06
  8  3.3417e-06
  9  1.56976
  10  0.000564808
  11  3.38636e-05
  12  51.146
  13  11.237
  14  23.4556
  15  2.32329
  16  4.90002
  17  1.50536
  18  25.469
  19  0.224267
  20  0.112769
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  6.442e-06  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:  8.852e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.196e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 7.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395755/likelihoodResults_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.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) = 7414.00697229
delta logL = -0.00091947236433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7414.00605282
delta logL = 2.3619577405e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4496       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88524       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=   7414.006     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2694        .90712E-02** at limit **
   2  alpha         2.4540        3.5495        .41162       -.43841E-05
   3  Normalizat    1.1960        .18646        .70547E-01    .71636E-03
   4  Prefactor     .88524        .98649E-01    .44817E-01    .12662E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.454
  Normalizat = 1.19598
  Prefactor  = 0.885243
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.006     FROM HESSE     STATUS=OK            27 CALLS      223 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4540        3.5412        .16465       -.18402E-01
   3  Normalizat    1.1960        .21042        .31215E-03   -.86727    
   4  Prefactor     .88524        .11147        .18774E-03   -.96659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10321e-09
Minuit parameter uncertainties:
  1  0.000171149
  2  2.49987
  3  0.210573
  4  0.111494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395755': 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) = 7414.00605281
delta logL = 1.48065737449e-08

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.711e-04  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.454e+00  2.500e+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:  8.852e-01  1.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.196e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.534 -6.741

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/395755/cmap_HighResolution_316310401_316569601_4FGL_J0422.1-0644_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-08-20 13:00:29.075381', job_id='395755', GAL2='0.89', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1629489629.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='297' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:00:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 395755: <4FGL_J0422.1-0644_daily_bin297> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin297> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:25 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:26 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:26 2021
Terminated at Fri Aug 20 13:00:30 2021
Results reported at Fri Aug 20 13:00:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin297 65.5343 -6.741 316310401 316569601 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 :                                   732.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

