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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin997
RA = 65.5343, Dec = -6.741
tmin = 497750401, tmax = 498009601
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='399345', job_status='RUN', time_executed='2021-08-20 12:58:25.877848', time_epoch_executed='1629489505.88' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399345

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399345/ft1_4FGL_J0422.1-0644_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399345/ft1_4FGL_J0422.1-0644_daily_bin997.fits outfile=/scratch/kocevski/399345/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin997.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=497750401.0 tmax=498009601.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 12.84
user 4.42
sys 8.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399345/ft1_filtered_4FGL_J0422.1-0644_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/399345/ltcube_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.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/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits
.....................!
real 21.93
user 12.17
sys 9.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399345/ft1_filtered_4FGL_J0422.1-0644_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/399345/ltcube_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.fits outfile=/scratch/kocevski/399345/expmap_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.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/399345/ltcube_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.fits
.....................!
real 204.66
user 186.39
sys 16.40

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/399345/ft1_filtered_4FGL_J0422.1-0644_daily_bin997.fits scfile=/scratch/kocevski/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits outfile=/scratch/kocevski/399345/cmap_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.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 8.56
user 0.37
sys 8.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399345/ft1_filtered_4FGL_J0422.1-0644_daily_bin997.fits scfile=/scratch/kocevski/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits outfile=/scratch/kocevski/399345/cmap_HighResolution_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.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 8.69
user 0.38
sys 8.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399345/ft1_filtered_4FGL_J0422.1-0644_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/399345/ft2_4FGL_J0422.1-0644_daily_bin997.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399345/Model_4FGL_J0422.1-0644_daily_bin997.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/399345/ft1_filtered_4FGL_J0422.1-0644_daily_bin997.fits.....................!
real 125.34
user 112.43
sys 11.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.572       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.167       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6048       1.0000         .10000E-03   10000.    
     9 'norm      '    .14321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3252       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.988       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7118       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59623       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.330       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0344       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90884       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=   8558.435     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     2075 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4782        1.8698        .25773E-07   -.34490E-04
   2  Prefactor     .10000E-03    9.2718        .87777E-07** at limit **
   3  Prefactor     .10000E-03    4.8471        .16830E-06** at limit **
   4  norm          .10000E-03    4.8480        .46959E-07** at limit **
   5  Prefactor     39.567        25.432       -.53698E-06   -.70584E-04
   6  norm          .10000E-03    .99616       -.45475E-08** at limit **
   7  norm          28.171        11.230        .20482E-07   -.56086E-05
   8  norm          1.5956        30.482        .13109E-05   -.36737E-04
   9  norm          .14334        .52781        .78703E-06    .16041E-03
  10  Prefactor     .10000E-03    .43081       -.22136E-06** at limit **
  11  Prefactor     .10000E-03    5.8232       -.72306E-07** at limit **
  12  Prefactor     17.036        27.900       -.11573E-05   -.60196E-04
  13  Prefactor     5.3266        6.8844        .10402E-08   -.10567E-03
  14  Prefactor     26.972        24.134       -.98323E-07   -.14810E-03
  15  norm          2.7119        1.6747        .46797E-08   -.13484E-03
  16  Prefactor     .59529        4.5050        .55722E-06   -.18312E-03
  17  norm          1.0577        1.7199        .49722E-06    .47814E-05
  18  Prefactor     19.331        19.399       -.20903E-06   -.10741E-04
  19  Normalizat    1.0341        .17484       -.69629E-06   -.11702E-03
  20  Prefactor     .90901        .90818E-01   -.96793E-07   -.18854E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.47817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.5673
  norm       = 0.0001
  norm       = 28.1714
  norm       = 1.59557
  norm       = 0.143336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0362
  Prefactor  = 5.32658
  Prefactor  = 26.9721
  norm       = 2.71194
  Prefactor  = 0.595294
  norm       = 1.05772
  Prefactor  = 19.3312
  Normalizat = 1.03413
  Prefactor  = 0.909007
 **********
 **   18 **HESSE 
 **********

 FCN=   8558.435     FROM HESSE     STATUS=OK           297 CALLS     2372 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4782        1.8698        .78805E-04   -1.5285    
   2  Prefactor     .10000E-03    9.2886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.8496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.567        25.401        .63718E-04   -1.4449    
   6  norm          .10000E-03    1.0002        .90155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.171        11.261        .75487E-04   -1.4646    
   8  norm          1.5956        30.782        .33454E-03   -1.5455    
   9  norm          .14334        .52927        .12552E-03   -1.5632    
  10  Prefactor     .10000E-03    .43431        .58985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.036        27.820        .97029E-04   -1.4882    
  13  Prefactor     5.3266        6.8677        .17416E-03   -1.5246    
  14  Prefactor     26.972        24.124        .77114E-04   -1.4669    
  15  norm          2.7119        1.6682        .90044E-04   -1.5379    
  16  Prefactor     .59529        12.446        .37198E-02   -1.5554    
  17  norm          1.0577        1.6887        .14617E-03   -1.5502    
  18  Prefactor     19.331        19.328        .91098E-04   -1.4828    
  19  Normalizat    1.0341        .19775        .31359E-03   -.91896    
  20  Prefactor     .90901        .10314        .17922E-03   -.95827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10093e-08
Minuit parameter uncertainties:
  1  1.86979
  2  4.08169e-06
  3  1.93077e-06
  4  2.73512e-06
  5  25.4075
  6  1.04435e-06
  7  11.2619
  8  14.0243
  9  0.529285
  10  1.20959e-07
  11  1.80624e-06
  12  27.8416
  13  6.86871
  14  24.1324
  15  1.66822
  16  5.44482
  17  1.68882
  18  19.3345
  19  0.197892
  20  0.103162
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.817e+01  1.126e+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:  9.090e-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.034e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.23
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.97e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 1.47e-05

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) = 8555.57465985
delta logL = 2.86045463152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8555.57124977
delta logL = 2.86386471173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.549       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6215       1.0000          .0000       5.0000    
     3 'Normalizat'    .93515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94379       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=   8555.571     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      287 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.550        9.2376        .93243E-04   -.95639E-03
   2  alpha         3.6215        .59257        .91174E-03   -.89429E-04
   3  Normalizat    .93514        .19324        .32691E-03    .33107E-04
   4  Prefactor     .94379        .10246        .17621E-03    .32982E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5498
  alpha      = 3.62146
  Normalizat = 0.935142
  Prefactor  = 0.943795
 **********
 **   18 **HESSE 
 **********

 FCN=   8555.571     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.550        9.0084        .37297E-05   -1.5028    
   2  alpha         3.6215        .57818        .36470E-04    .46518    
   3  Normalizat    .93514        .19335        .13076E-04   -.95236    
   4  Prefactor     .94379        .10251        .35241E-04   -.94627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19258e-10
Minuit parameter uncertainties:
  1  9.0095
  2  0.584835
  3  0.193498
  4  0.102527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399345': 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) = 8555.57124976
delta logL = 2.86386472473

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.155e+01  9.009e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.621e+00  5.848e-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:  9.438e-01  1.025e-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.351e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.76
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.62 +/- 0.58
Photon Flux (Free Index): 2.13e-07 +/- 6.98e-08
Energy Flux (Free Index): 3.55e-05 +/- 1.16e-05

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/399345/cmap_HighResolution_497750401_498009601_4FGL_J0422.1-0644_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.55e-05', photon_flux_error='4.97e-08', dlogl='2.86e+00', energy_flux='3.68e-05', photon_flux2='2.13e-07', job_status='DONE', time_completed='2021-08-20 13:11:02.440002', photon_index_error2='0.58', photon_index2='3.62', ts='11.23', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='1.03', time_epoch_completed='1629490262.44', return_code='0', job_id='399345', GAL2='0.94', EG2='0.94', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.98e-08', ts2='17.76', photon_index='2.45' WHERE bin_id='997' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 399345: <4FGL_J0422.1-0644_daily_bin997> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin997 65.5343 -6.741 497750401 498009601 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 :                                   879.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

