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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin709
RA = 65.5343, Dec = -6.741
tmin = 423100801, tmax = 423360001
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='397583', job_status='RUN', time_executed='2021-08-20 12:54:41.429039', time_epoch_executed='1629489281.43' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397583/ft1_4FGL_J0422.1-0644_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397583/ft1_4FGL_J0422.1-0644_daily_bin709.fits outfile=/scratch/kocevski/397583/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin709.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=423100801.0 tmax=423360001.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 6.44
user 4.70
sys 1.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.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/397583/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.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 2.66
user 0.32
sys 1.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/397583/ltcube_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.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/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits
.....................!
real 13.65
user 11.59
sys 2.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/397583/ltcube_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.fits outfile=/scratch/kocevski/397583/expmap_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.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/397583/ltcube_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.fits
.....................!
real 193.68
user 185.90
sys 7.32

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/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.fits scfile=/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits outfile=/scratch/kocevski/397583/cmap_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.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 2.02
user 0.39
sys 1.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.fits scfile=/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits outfile=/scratch/kocevski/397583/cmap_HighResolution_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.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 2.00
user 0.38
sys 1.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/397583/ft2_4FGL_J0422.1-0644_daily_bin709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397583/Model_4FGL_J0422.1-0644_daily_bin709.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/397583/ft1_filtered_4FGL_J0422.1-0644_daily_bin709.fits.....................!
real 114.20
user 110.79
sys 3.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0135       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1838       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4343       1.0000         .10000E-03   10000.    
     7 'norm      '    .58357E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9798       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62031       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6503       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7458       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0096       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=   8239.147     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     2427 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0136        1.9023        .83366E-04   -.47184E-04
   2  Prefactor     28.889        26.194        .74531E-04   -.18951E-03
   3  Prefactor     3.1824        4.4071        .21443E-03    .12120E-03
   4  norm          .10000E-03    5.0826        .18142E-02** at limit **
   5  Prefactor     .10000E-03    6.7259        .18142E-02** at limit **
   6  norm          1.4369        3.9041        .28355E-03   -.69765E-05
   7  norm          .21687E-01    5.2720        .59300E-01    .18616E-03
   8  norm          2.9872        18.034        .23519E-03    .58972E-05
   9  norm          .10000E-03    1.6582        .11184E-02** at limit **
  10  Prefactor     .62093        .82659        .11454E-02   -.36388E-03
  11  Prefactor     45.508        30.039        .59432E-04   -.18731E-03
  12  Prefactor     .10000E-03    29.925        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.3868        .18142E-02** at limit **
  14  Prefactor     5.6402        17.809        .16899E-03   -.86513E-04
  15  norm          2.0115        2.2567        .13589E-03    .29332E-03
  16  Prefactor     .10000E-03    2.8073        .14786E-02** at limit **
  17  norm          2.7459        1.8871        .99355E-04   -.28149E-03
  18  Prefactor     .10000E-03    21.084        .18142E-02** at limit **
  19  Normalizat    1.0151        .20195        .31233E-03   -.89359E-03
  20  Prefactor     1.0095        .10862        .17666E-03   -.68077E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0136
  Prefactor  = 28.8894
  Prefactor  = 3.18239
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43689
  norm       = 0.0216868
  norm       = 2.98721
  norm       = 0.000100002
  Prefactor  = 0.620926
  Prefactor  = 45.5081
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.64025
  norm       = 2.01151
  Prefactor  = 0.0001
  norm       = 2.74593
  Prefactor  = 0.0001
  Normalizat = 1.01509
  Prefactor  = 1.00949
 **********
 **   18 **HESSE 
 **********

 FCN=   8239.147     FROM HESSE     STATUS=OK           283 CALLS     2710 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0136        1.9023        .33346E-05   -1.5307    
   2  Prefactor     28.889        26.193        .14906E-04   -1.4632    
   3  Prefactor     3.1824        4.4067        .85771E-05   -1.5351    
   4  norm          .10000E-03    5.0827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4369        3.9021        .11342E-04   -1.5468    
   7  norm          .21687E-01    5.0628        .61171E-01   -1.5679    
   8  norm          2.9872        18.018        .94077E-05   -1.5362    
   9  norm          .10000E-03    1.6665        .22369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .62093        .82582        .45817E-04   -1.5550    
  11  Prefactor     45.508        30.036        .11886E-04   -1.4358    
  12  Prefactor     .10000E-03    29.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6402        17.803        .67598E-05   -1.5233    
  15  norm          2.0115        2.2564        .54355E-05   -1.5424    
  16  Prefactor     .10000E-03    2.8079        .29572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7459        1.8871        .39742E-05   -1.5377    
  18  Prefactor     .10000E-03    21.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0151        .20202        .62467E-04   -.92527    
  20  Prefactor     1.0095        .10868        .35333E-04   -.92414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19856e-09
Minuit parameter uncertainties:
  1  1.90231
  2  26.2035
  3  4.4071
  4  4.2643e-05
  5  3.43074e-05
  6  3.90283
  7  0.661237
  8  14.6792
  9  0.000103151
  10  0.825838
  11  30.046
  12  0.000643142
  13  4.5585e-05
  14  17.8199
  15  2.25645
  16  1.86769e-07
  17  1.8871
  18  0.000169136
  19  0.202174
  20  0.1087
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.169e-02  6.612e-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.009e+00  1.087e-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.015e+00  2.022e-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: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397583/likelihoodResults_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.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): 102
logL (Free Index) = 8239.14668991
delta logL = 3.33784555551e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8239.14661514
delta logL = 7.47713274905e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13022E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7364       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8239.146     FROM MIGRAD    STATUS=FAILED       130 CALLS      332 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13542        6257.5        .33548E-02    .20356E-02
   2  alpha         2.7393        2.5264        .50000        .93118E-04
   3  Normalizat    1.0144        .51027E-01    .31244E-03    .25398E-04
   4  Prefactor     1.0096        .28310E-01    .17666E-03    .22396E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8239.146     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      441 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13542        6257.5        .72403E-03    .20356E-02
   2  alpha         2.7393        2.5264        .37320E-03    .93118E-04
   3  Normalizat    1.0144        .51027E-01    .94789E-05    .25398E-04
   4  Prefactor     1.0096        .28310E-01    .21642E-05    .22396E-05
                               ERR DEF=  .500    

 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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8239.146     FROM MIGRAD    STATUS=FAILED        76 CALLS      517 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13542        6696.5        .26838E-04   -.93192E-05
   2  alpha         2.7393        3.1638        .50000        .93078E-04
   3  Normalizat    1.0144        .61059E-01    .24995E-05    .25471E-04
   4  Prefactor     1.0096        .34357E-01    .70662E-05    .25742E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.135416
  alpha      = 2.73935
  Normalizat = 1.0144
  Prefactor  = 1.00959
 **********
 **   18 **HESSE 
 **********

 FCN=   8239.146     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      544 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13542        6689.4        .10735E-05   -1.5634    
   2  alpha         2.7393        3.2695        .50000        .95886E-01
   3  Normalizat    1.0144        .58931E-01    .49990E-06   -.92550    
   4  Prefactor     1.0096        .34859E-01    .14132E-05   -.92411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.4345e-06
Minuit parameter uncertainties:
  1  45.9072
  2  72.5692
  3  0.0589352
  4  0.0348603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397583': 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): 1
logL (Free Index) = 8239.14624556
delta logL = 0.000444349743702

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.354e-01  4.591e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.739e+00  7.257e+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.010e+00  3.486e-02  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.014e+00  5.894e-02  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/397583/cmap_HighResolution_423100801_423360001_4FGL_J0422.1-0644_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-08-20 13:07:05.333015', job_id='397583', GAL2='1.01', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1629490025.33', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.44e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='709' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 397583: <4FGL_J0422.1-0644_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin709 65.5343 -6.741 423100801 423360001 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 :                                   763.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

