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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin722
RA = 65.5343, Dec = -6.741
tmin = 426470401, tmax = 426729601
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='397603', job_status='RUN', time_executed='2021-08-20 12:55:07.969706', time_epoch_executed='1629489307.97' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397603

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397603/ft1_4FGL_J0422.1-0644_daily_bin722.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397603/ft1_4FGL_J0422.1-0644_daily_bin722.fits outfile=/scratch/kocevski/397603/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin722.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=426470401.0 tmax=426729601.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 9.88
user 4.03
sys 5.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.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/397603/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin722.fits evtable="EVENTS" outfile="/scratch/kocevski/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.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 6.12
user 0.33
sys 5.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.fits" evtable="EVENTS" scfile=/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits sctable="SC_DATA" outfile=/scratch/kocevski/397603/ltcube_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.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/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits
.....................!
real 20.60
user 13.91
sys 6.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits sctable="SC_DATA" expcube=/scratch/kocevski/397603/ltcube_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.fits outfile=/scratch/kocevski/397603/expmap_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.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/397603/ltcube_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.fits
.....................!
real 199.12
user 185.92
sys 12.84

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/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.fits scfile=/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits outfile=/scratch/kocevski/397603/cmap_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.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 6.17
user 0.37
sys 5.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.fits scfile=/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits outfile=/scratch/kocevski/397603/cmap_HighResolution_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.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 6.07
user 0.37
sys 5.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/397603/ft2_4FGL_J0422.1-0644_daily_bin722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397603/Model_4FGL_J0422.1-0644_daily_bin722.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/397603/ft1_filtered_4FGL_J0422.1-0644_daily_bin722.fits.....................!
real 101.17
user 92.30
sys 8.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0641       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0990       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.635       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4112       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3150       1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12183       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.364       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20709       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9398       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1152       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89085       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=   6524.656     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2087 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .54828        .91312E-07** at limit **
   2  Prefactor     5.0797        43.992       -.14855E-05   -.31633E-05
   3  Prefactor     4.0908        9.3120       -.65333E-06    .12068E-05
   4  norm          1.8667        20.547       -.94507E-06   -.21146E-04
   5  Prefactor     19.615        19.179        .80995E-06    .58320E-04
   6  norm          8.4130        4.9797       -.25867E-06    .18642E-04
   7  norm          .10000E-03    3.3010        .13339E-06** at limit **
   8  norm          3.3869        73.918       -.70178E-05   -.52298E-04
   9  norm          .10000E-03    .35850       -.21843E-06** at limit **
  10  Prefactor     .10848        5.7291       -.26307E-05   -.64201E-05
  11  Prefactor     55.445        34.538       -.41232E-06    .41719E-05
  12  Prefactor     28.538        52.543        .43559E-05    .80942E-04
  13  Prefactor     .20377        6.7468       -.17907E-05    .21876E-03
  14  Prefactor     .10000E-03    36.549        .59923E-06** at limit **
  15  norm          8.6773        3.0046       -.14941E-06    .12718E-03
  16  Prefactor     6.9381        5.8109       -.30540E-07    .13332E-05
  17  norm          4.3510        2.1982       -.32185E-06   -.54850E-03
  18  Prefactor     .10000E-03    11.979        .10202E-06** at limit **
  19  Normalizat    1.1152        .23485        .42172E-05   -.40020E-04
  20  Prefactor     .89090        .11834       -.23869E-05    .20399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.07966
  Prefactor  = 4.09077
  norm       = 1.86666
  Prefactor  = 19.6151
  norm       = 8.41296
  norm       = 0.0001
  norm       = 3.38686
  norm       = 0.0001
  Prefactor  = 0.108481
  Prefactor  = 55.4447
  Prefactor  = 28.5384
  Prefactor  = 0.203767
  Prefactor  = 0.0001
  norm       = 8.67729
  Prefactor  = 6.93808
  norm       = 4.35103
  Prefactor  = 0.0001
  Normalizat = 1.11517
  Prefactor  = 0.890904
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.656     FROM HESSE     STATUS=OK           301 CALLS     2388 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .55404        .58394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0797        43.896        .17868E-03   -1.5257    
   3  Prefactor     4.0908        9.3021        .19912E-03   -1.5303    
   4  norm          1.8667        20.563        .30489E-03   -1.5435    
   5  Prefactor     19.615        19.201        .90390E-04   -1.4822    
   6  norm          8.4130        4.9761        .13363E-03   -1.5128    
   7  norm          .10000E-03    3.3120        .14331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3869        76.741        .22234E-03   -1.5340    
   9  norm          .10000E-03    .37325        .94772E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10848        6.3549        .14233E-02   -1.5642    
  11  Prefactor     55.445        34.280        .53876E-04   -1.4217    
  12  Prefactor     28.538        54.420        .75225E-04   -1.4639    
  13  Prefactor     .20377        42.575        .36556E-02   -1.5618    
  14  Prefactor     .10000E-03    36.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6773        3.0019        .77284E-04   -1.5119    
  16  Prefactor     6.9381        5.8106        .15229E-03   -1.5181    
  17  norm          4.3510        2.2034        .41192E-03   -1.5291    
  18  Prefactor     .10000E-03    12.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1152        .24295        .31669E-03   -.89266    
  20  Prefactor     .89090        .12265        .18409E-03   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40577e-08
Minuit parameter uncertainties:
  1  4.05029e-07
  2  29.8939
  3  9.30541
  4  12.3961
  5  19.2065
  6  4.97634
  7  1.39703e-06
  8  32.2899
  9  3.47384e-06
  10  1.66001
  11  34.2921
  12  54.5144
  13  5.8936
  14  3.21943e-05
  15  3.00197
  16  5.81106
  17  2.20342
  18  1.14555e-05
  19  0.243198
  20  0.122683
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.397e-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.909e-01  1.227e-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.115e+00  2.432e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397603/likelihoodResults_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.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) = 6524.65698345
delta logL = -0.00143571565877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6524.65554819
delta logL = -4.59260263597e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4446       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89087       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=   6524.656     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      223 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    768.79        .14331E-02** at limit **
   2  alpha         2.4340        3.7160        .16466        .44913E-06
   3  Normalizat    1.1152        .18042        .31669E-03    .20857E-04
   4  Prefactor     .89090        .95469E-01    .18409E-03    .30693E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 2.43402
  Normalizat = 1.11517
  Prefactor  = 0.890903
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.656     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    3.3224        .28662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4340        3.4968        .32932E-01   -.26396E-01
   3  Normalizat    1.1152        .22264        .12668E-04   -.89266    
   4  Prefactor     .89090        .11785        .73635E-05   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84302e-09
Minuit parameter uncertainties:
  1  0.000281805
  2  264.676
  3  0.222827
  4  0.117884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397603': 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) = 6524.65554773
delta logL = 2.03817762667e-09

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  2.818e-04  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.434e+00  2.647e+02  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.909e-01  1.179e-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.115e+00  2.228e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/397603/cmap_HighResolution_426470401_426729601_4FGL_J0422.1-0644_daily_bin722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-08-20 13:06:27.392064', job_id='397603', GAL2='0.89', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1629489987.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.04e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='722' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 397603: <4FGL_J0422.1-0644_daily_bin722> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin722 65.5343 -6.741 426470401 426729601 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.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

