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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin534
RA = 65.5343, Dec = -6.741
tmin = 377740801, tmax = 378000001
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='397307', job_status='RUN', time_executed='2021-08-20 12:52:44.435906', time_epoch_executed='1629489164.44' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397307/ft1_4FGL_J0422.1-0644_daily_bin534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397307/ft1_4FGL_J0422.1-0644_daily_bin534.fits outfile=/scratch/kocevski/397307/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin534.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=377740801.0 tmax=378000001.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 4.93
user 4.17
sys 0.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.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/397307/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin534.fits evtable="EVENTS" outfile="/scratch/kocevski/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.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 1.01
user 0.31
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.fits" evtable="EVENTS" scfile=/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits sctable="SC_DATA" outfile=/scratch/kocevski/397307/ltcube_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.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/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits
.....................!
real 12.52
user 11.61
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.fits evtable="EVENTS" scfile=/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits sctable="SC_DATA" expcube=/scratch/kocevski/397307/ltcube_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.fits outfile=/scratch/kocevski/397307/expmap_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.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/397307/ltcube_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.fits
.....................!
real 191.04
user 184.92
sys 5.78

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/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.fits scfile=/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits outfile=/scratch/kocevski/397307/cmap_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.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 1.00
user 0.36
sys 0.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.fits scfile=/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits outfile=/scratch/kocevski/397307/cmap_HighResolution_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.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.02
user 0.38
sys 0.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.fits evtable="EVENTS" scfile=/scratch/kocevski/397307/ft2_4FGL_J0422.1-0644_daily_bin534.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397307/Model_4FGL_J0422.1-0644_daily_bin534.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/397307/ft1_filtered_4FGL_J0422.1-0644_daily_bin534.fits.....................!
real 121.78
user 119.74
sys 1.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22013       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6082       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3037       1.0000         .10000E-03   10000.    
     7 'norm      '    .24341E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    34.026       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8245       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .24249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3229       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0982       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0608       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93221       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=   8864.714     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     2492 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6377        .15764E-02** at limit **
   2  Prefactor     .25965        18.115        .10541        .21362E-03
   3  Prefactor     6.6079        5.0023        .15611E-03    .17187E-04
   4  norm          3.8818        9.4087        .20478E-03    .40638E-04
   5  Prefactor     .10000E-03    11.740        .18142E-02** at limit **
   6  norm          3.3044        2.6926        .13513E-03    .13562E-03
   7  norm          .10002E-03    9.2784        .61220E-01** at limit **
   8  norm          34.026        24.769        .68698E-04   -.49316E-04
   9  norm          1.8251        .94577        .61479E-04    .55846E-04
  10  Prefactor     .10000E-03    2.0336        .16701E-02** at limit **
  11  Prefactor     80.946        33.912        .44637E-04   -.25999E-03
  12  Prefactor     53.123        41.284        .55046E-04    .32004E-03
  13  Prefactor     .10000E-03    3.2574        .16540E-02** at limit **
  14  Prefactor     .10000E-03    8.1607        .18142E-02** at limit **
  15  norm          .24139        1.9731        .17841E-02    .45356E-03
  16  Prefactor     1.3213        3.7879        .30292E-03    .62150E-04
  17  norm          4.0975        1.9544        .87664E-04    .14732E-03
  18  Prefactor     .10000E-03    8.9940        .18142E-02** at limit **
  19  Normalizat    1.0609        .19015        .30225E-03    .78413E-03
  20  Prefactor     .93242        .10312        .18124E-03   -.35880E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.259646
  Prefactor  = 6.60792
  norm       = 3.8818
  Prefactor  = 0.0001
  norm       = 3.3044
  norm       = 0.000100022
  norm       = 34.0261
  norm       = 1.82515
  Prefactor  = 0.0001
  Prefactor  = 80.9458
  Prefactor  = 53.1234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.241394
  Prefactor  = 1.32131
  norm       = 4.09752
  Prefactor  = 0.0001
  Normalizat = 1.06092
  Prefactor  = 0.932422
 **********
 **   18 **HESSE 
 **********

 FCN=   8864.714     FROM HESSE     STATUS=OK           293 CALLS     2785 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6460        .31529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25965        17.112        .10959       -1.5606    
   3  Prefactor     6.6079        5.0020        .62443E-05   -1.5194    
   4  norm          3.8818        9.4087        .81913E-05   -1.5314    
   5  Prefactor     .10000E-03    11.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3044        2.6926        .54051E-05   -1.5344    
   7  norm          .10002E-03    7.5817        .69842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          34.026        24.768        .27479E-05   -1.4541    
   9  norm          1.8251        .94570        .24592E-05   -1.5438    
  10  Prefactor     .10000E-03    2.0442        .33402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.946        33.914        .89274E-05   -1.3906    
  12  Prefactor     53.123        41.223        .11009E-04   -1.4249    
  13  Prefactor     .10000E-03    3.2580        .33081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .24139        1.9675        .71364E-04   -1.5610    
  16  Prefactor     1.3213        3.7877        .12117E-04   -1.5478    
  17  norm          4.0975        1.9542        .35066E-05   -1.5303    
  18  Prefactor     .10000E-03    8.9945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0609        .19017        .60451E-04   -.91017    
  20  Prefactor     .93242        .10318        .72497E-05   -.95017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82134e-09
Minuit parameter uncertainties:
  1  9.41012e-06
  2  4.21617
  3  5.00231
  4  9.41231
  5  1.85856e-05
  6  2.69268
  7  0.000812459
  8  24.7756
  9  0.945709
  10  6.34262e-05
  11  33.9217
  12  41.2453
  13  1.16317e-06
  14  5.25305e-05
  15  1.3781
  16  3.78834
  17  1.95423
  18  1.60085e-05
  19  0.190295
  20  0.1032
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  8.125e-04  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:  9.324e-01  1.032e-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.061e+00  1.903e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397307/likelihoodResults_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.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) = 8864.7143289
delta logL = -4.74956850667e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8863.51693843
delta logL = 1.19734297218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59983       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96353       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=   8863.517     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      338 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59993        .45319        .50816E-03   -.56173E-03
   2  alpha         5.0000        3.3162        .71018E-01** at limit **
   3  Normalizat    .96144        .18789        .31554E-03   -.15853E-05
   4  Prefactor     .96356        .10317        .17859E-03    .46318E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.599928
  alpha      = 5
  Normalizat = 0.961441
  Prefactor  = 0.963556
 **********
 **   18 **HESSE 
 **********

 FCN=   8863.517     FROM HESSE     STATUS=OK            27 CALLS      365 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59993        .44410        .20326E-04   -1.5553    
   2  alpha         5.0000        3.3138        .28407E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96144        .18790        .12622E-04   -.94334    
   4  Prefactor     .96356        .10322        .35717E-04   -.93954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48437e-10
Minuit parameter uncertainties:
  1  0.444104
  2  4.28621e-05
  3  0.188027
  4  0.103239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397307': 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) = 8863.51693723
delta logL = 1.19734417139

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  5.999e-01  4.441e-01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  5.000e+00  4.286e-05  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:  9.636e-01  1.032e-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:  9.614e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.94e-08 +/- 5.85e-08
Energy Flux (Free Index): 1.07e-05 +/- 7.93e-06

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/397307/cmap_HighResolution_377740801_378000001_4FGL_J0422.1-0644_daily_bin534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.20e+00', photon_flux2='7.94e-08', job_status='DONE', time_completed='2021-08-20 13:05:20.401785', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='7.93e-06', EG='1.06', time_epoch_completed='1629489920.4', return_code='0', job_id='397307', GAL2='0.96', EG2='0.96', return_code2='0', photon_flux_error2='5.85e-08', ts2='2.64', photon_index='2.45' WHERE bin_id='534' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 397307: <4FGL_J0422.1-0644_daily_bin534> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin534 65.5343 -6.741 377740801 378000001 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 :                                   762.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             343.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

