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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin742
RA = 65.5343, Dec = -6.741
tmin = 431654401, tmax = 431913601
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='397627', job_status='RUN', time_executed='2021-08-20 12:54:44.655619', time_epoch_executed='1629489284.66' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397627/ft1_4FGL_J0422.1-0644_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397627/ft1_4FGL_J0422.1-0644_daily_bin742.fits outfile=/scratch/kocevski/397627/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin742.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=431654401.0 tmax=431913601.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.40
user 5.66
sys 0.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397627/ft1_filtered_4FGL_J0422.1-0644_daily_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/397627/ltcube_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.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/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits
.....................!
real 12.36
user 11.52
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397627/ft1_filtered_4FGL_J0422.1-0644_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/397627/ltcube_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.fits outfile=/scratch/kocevski/397627/expmap_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.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/397627/ltcube_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.fits
.....................!
real 191.23
user 185.62
sys 5.29

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/397627/ft1_filtered_4FGL_J0422.1-0644_daily_bin742.fits scfile=/scratch/kocevski/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits outfile=/scratch/kocevski/397627/cmap_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.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 0.97
user 0.35
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397627/ft1_filtered_4FGL_J0422.1-0644_daily_bin742.fits scfile=/scratch/kocevski/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits outfile=/scratch/kocevski/397627/cmap_HighResolution_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=65.5343 yref=-6.741 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.00
user 0.39
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397627/ft1_filtered_4FGL_J0422.1-0644_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/397627/ft2_4FGL_J0422.1-0644_daily_bin742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397627/Model_4FGL_J0422.1-0644_daily_bin742.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/397627/ft1_filtered_4FGL_J0422.1-0644_daily_bin742.fits.....................!
real 97.11
user 95.17
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7586       1.0000         .10000E-03   10000.    
     4 'norm      '    .41324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.305       1.0000         .10000E-03   10000.    
     6 'norm      '    10.227       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4678       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.725       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7992       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.081       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .58062       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1514       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=   6592.615     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2070 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8009        2.2034        .41166E-07   -.32313E-04
   2  Prefactor     .10000E-03    45.445       -.79772E-07** at limit **
   3  Prefactor     8.7557        8.7426       -.68384E-06   -.21967E-03
   4  norm          .20753        13.022       -.12504E-06    .27670E-04
   5  Prefactor     32.304        27.406       -.47608E-06   -.53088E-04
   6  norm          10.233        5.1968       -.77176E-07   -.34865E-04
   7  norm          .10000E-03    4.6070        .60985E-07** at limit **
   8  norm          .10000E-03    19.365       -.16674E-06** at limit **
   9  norm          .10000E-03    .26371        .55484E-08** at limit **
  10  Prefactor     .40556        1.0600        .31852E-06   -.10875E-03
  11  Prefactor     29.050        36.396       -.13193E-05   -.72986E-04
  12  Prefactor     .10000E-03    27.788       -.25811E-06** at limit **
  13  Prefactor     6.4661        8.9588        .50090E-06    .75078E-04
  14  Prefactor     28.720        25.254       -.32111E-06   -.39282E-04
  15  norm          3.7990        2.2562        .54808E-06   -.56623E-03
  16  Prefactor     .10000E-03    3.3509        .32142E-07** at limit **
  17  norm          10.416        3.2274       -.81735E-08   -.51311E-04
  18  Prefactor     28.065        33.512       -.71551E-06   -.45709E-04
  19  Normalizat    .58056        .22998        .30657E-06   -.29934E-04
  20  Prefactor     1.1515        .11954       -.15640E-06   -.16692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.80093
  Prefactor  = 0.0001
  Prefactor  = 8.75575
  norm       = 0.207533
  Prefactor  = 32.3044
  norm       = 10.2326
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.405561
  Prefactor  = 29.0495
  Prefactor  = 0.0001
  Prefactor  = 6.46607
  Prefactor  = 28.7196
  norm       = 3.79903
  Prefactor  = 0.0001
  norm       = 10.416
  Prefactor  = 28.0651
  Normalizat = 0.580563
  Prefactor  = 1.15145
 **********
 **   18 **HESSE 
 **********

 FCN=   6592.615     FROM HESSE     STATUS=OK           307 CALLS     2377 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8009        2.2000        .10277E-03   -1.5373    
   2  Prefactor     .10000E-03    45.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7557        9.0563        .13544E-03   -1.5116    
   4  norm          .20753        20.617        .10472       -1.5617    
   5  Prefactor     32.304        27.466        .70498E-04   -1.4571    
   6  norm          10.233        5.2023        .12529E-03   -1.5068    
   7  norm          .10000E-03    4.6324        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .26631        .40656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .40556        1.0190        .12882E-02   -1.5581    
  11  Prefactor     29.050        36.750        .74333E-04   -1.4629    
  12  Prefactor     .10000E-03    27.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4661        8.9845        .15781E-03   -1.5199    
  14  Prefactor     28.720        25.355        .74751E-04   -1.4636    
  15  norm          3.7990        2.3013        .45865E-03   -1.5318    
  16  Prefactor     .10000E-03    3.3903        .14515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.416        3.2261        .75840E-04   -1.5062    
  18  Prefactor     28.065        33.719        .75603E-04   -1.4648    
  19  Normalizat    .58056        .24417        .42549E-03   -1.0882    
  20  Prefactor     1.1515        .12911        .17269E-03   -.87839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13513e-08
Minuit parameter uncertainties:
  1  2.20009
  2  0.000104464
  3  9.05776
  4  4.13745
  5  27.4765
  6  5.2025
  7  3.48403e-06
  8  1.72364e-05
  9  7.02717e-07
  10  1.01906
  11  36.7788
  12  6.28927e-05
  13  8.98642
  14  25.3649
  15  2.30131
  16  1.40106e-07
  17  3.22618
  18  33.7415
  19  0.244625
  20  0.129144
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  3.484e-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:  1.151e+00  1.291e-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:  5.806e-01  2.446e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397627/likelihoodResults_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.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) = 6592.61631042
delta logL = -0.0010275776558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6592.61528283
delta logL = 1.6873855202e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4199       1.0000          .0000       5.0000    
     3 'Normalizat'    .58056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1515       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=   6592.615     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    940.41        .17459E-01** at limit **
   2  alpha         1.8690        3.9307        .16471E-01    .22777E-07
   3  Normalizat    .58056        .86945E-01    .42548E-03    .23724E-03
   4  Prefactor     1.1515        .49059E-01    .17269E-03    .77746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.86898
  Normalizat = 0.580563
  Prefactor  = 1.15145
 **********
 **   18 **HESSE 
 **********

 FCN=   6592.615     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6907        .20265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8690        3.3937        .65885E-03   -.25517    
   3  Normalizat    .58056        .22348        .17019E-04   -1.0882    
   4  Prefactor     1.1515        .12548        .34538E-04   -.87839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28626e-10
Minuit parameter uncertainties:
  1  0.000154503
  2  205.737
  3  0.223831
  4  0.12551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397627': 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) = 6592.61527952
delta logL = 3.31880255544e-06

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.545e-04  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.869e+00  2.057e+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:  1.151e+00  1.255e-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:  5.806e-01  2.238e-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/397627/cmap_HighResolution_431654401_431913601_4FGL_J0422.1-0644_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-08-20 13:04:50.323343', job_id='397627', GAL2='1.15', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1629489890.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='742' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 397627: <4FGL_J0422.1-0644_daily_bin742> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin742> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:51:01 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:51:02 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:51:02 2021
Terminated at Fri Aug 20 13:04:51 2021
Results reported at Fri Aug 20 13:04:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin742 65.5343 -6.741 431654401 431913601 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 :                                   613.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

