/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 7 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 = 7381
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin255
RA = 65.5343, Dec = -6.741
tmin = 305424001, tmax = 305683201
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='395695', job_status='RUN', time_executed='2021-08-20 12:47:51.795713', time_epoch_executed='1629488871.8' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395695/ft1_4FGL_J0422.1-0644_daily_bin255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395695/ft1_4FGL_J0422.1-0644_daily_bin255.fits outfile=/scratch/kocevski/395695/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin255.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=305424001.0 tmax=305683201.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 11.92
user 3.31
sys 8.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.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/395695/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin255.fits evtable="EVENTS" outfile="/scratch/kocevski/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.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 8.90
user 0.36
sys 8.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.fits" evtable="EVENTS" scfile=/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits sctable="SC_DATA" outfile=/scratch/kocevski/395695/ltcube_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.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/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits
.....................!
real 22.82
user 13.18
sys 9.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.fits evtable="EVENTS" scfile=/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits sctable="SC_DATA" expcube=/scratch/kocevski/395695/ltcube_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.fits outfile=/scratch/kocevski/395695/expmap_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.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/395695/ltcube_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.fits
.....................!
real 203.77
user 186.29
sys 16.16

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/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.fits scfile=/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits outfile=/scratch/kocevski/395695/cmap_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.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.77
user 0.38
sys 8.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.fits scfile=/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits outfile=/scratch/kocevski/395695/cmap_HighResolution_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.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.87
user 0.42
sys 8.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.fits evtable="EVENTS" scfile=/scratch/kocevski/395695/ft2_4FGL_J0422.1-0644_daily_bin255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395695/Model_4FGL_J0422.1-0644_daily_bin255.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/395695/ft1_filtered_4FGL_J0422.1-0644_daily_bin255.fits.....................!
real 103.55
user 91.17
sys 11.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.914       1.0000         .10000E-03   10000.    
     8 'norm      '    23.099       1.0000         .10000E-03   10000.    
     9 'norm      '    .76250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1700       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.646       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.167       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9714       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.1304       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94252       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0320       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=   6217.781     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2026 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7285        1.7989       -.10057E-07   -.13799E-04
   2  Prefactor     .10001E-03    47.902        .68536E-05** at limit **
   3  Prefactor     .10000E-03    15.765        .72231E-06** at limit **
   4  norm          .10000E-03    5.7481        .24432E-08** at limit **
   5  Prefactor     .10000E-03    17.811       -.97008E-06** at limit **
   6  norm          .10000E-03    1.2973       -.19636E-07** at limit **
   7  norm          26.933        13.987       -.79456E-06   -.26979E-03
   8  norm          23.105        34.723       -.14908E-05   -.14175E-05
   9  norm          .76284        .75123       -.65894E-07    .11331E-03
  10  Prefactor     2.1699        1.9011        .98500E-06   -.50230E-03
  11  Prefactor     51.642        42.964       -.10335E-05   -.43764E-04
  12  Prefactor     .10000E-03    21.969        .95034E-06** at limit **
  13  Prefactor     .10171E-03    8.1515       -.12781E-05** at limit **
  14  Prefactor     51.153        33.702       -.10221E-05   -.11456E-03
  15  norm          2.9717        2.3677        .11575E-05   -.58231E-03
  16  Prefactor     .10000E-03    2.7616        .50457E-08** at limit **
  17  norm          9.1288        3.2496       -.16051E-06    .15821E-03
  18  Prefactor     .10001E-03    42.398       -.57967E-05** at limit **
  19  Normalizat    .94265        .23394        .21874E-05    .50432E-04
  20  Prefactor     1.0321        .11820       -.74477E-06    .23972E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72855
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.933
  norm       = 23.1047
  norm       = 0.762838
  Prefactor  = 2.1699
  Prefactor  = 51.6421
  Prefactor  = 0.0001
  Prefactor  = 0.00010171
  Prefactor  = 51.1529
  norm       = 2.9717
  Prefactor  = 0.0001
  norm       = 9.12882
  Prefactor  = 0.000100007
  Normalizat = 0.942651
  Prefactor  = 1.03208
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.781     FROM HESSE     STATUS=OK           295 CALLS     2321 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7285        1.7967        .83214E-04   -1.5378    
   2  Prefactor     .10001E-03    49.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2992        .87701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.933        14.261        .77221E-04   -1.4670    
   8  norm          23.105        34.692        .83344E-04   -1.4746    
   9  norm          .76284        .75371        .64599E-04   -1.5533    
  10  Prefactor     2.1699        1.9101        .46769E-03   -1.5413    
  11  Prefactor     51.642        42.975        .55807E-04   -1.4269    
  12  Prefactor     .10000E-03    22.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10171E-03    15.646        .62284E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.153        33.912        .56066E-04   -1.4276    
  15  norm          2.9717        2.4029        .52560E-03   -1.5363    
  16  Prefactor     .10000E-03    2.7650        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.1288        3.2473        .81191E-04   -1.5104    
  18  Prefactor     .10001E-03    44.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94265        .25875        .36468E-03   -.94977    
  20  Prefactor     1.0321        .13163        .18507E-03   -.91668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16888e-09
Minuit parameter uncertainties:
  1  1.79678
  2  0.00125677
  3  1.5196e-05
  4  6.04584e-08
  5  0.00013371
  6  6.98679e-08
  7  14.2626
  8  34.7218
  9  0.753717
  10  1.91013
  11  43.0011
  12  0.000111109
  13  0.0103482
  14  33.9253
  15  2.40296
  16  6.61421e-08
  17  3.24736
  18  0.00114192
  19  0.259096
  20  0.131668
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.693e+01  1.426e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.032e+00  1.317e-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.427e-01  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.94
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 1.86e-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) = 6217.27963139
delta logL = 0.501052446149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6217.27314006
delta logL = 0.507543771483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.134       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0714       1.0000          .0000       5.0000    
     3 'Normalizat'    .86927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0560       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.

 FCN=   6217.273     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.112        146.86        .22316E-02    .41429E-04
   2  alpha         3.0692        4.0282        .27444        .57360E-04
   3  Normalizat    .86897        .13507        .85312E-01   -.20667E-03
   4  Prefactor     1.0564        .61794E-01    .39568E-01   -.33581E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.1118
  alpha      = 3.06918
  Normalizat = 0.868968
  Prefactor  = 1.0564
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.273     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.112        14.816        .89262E-04   -1.4811    
   2  alpha         3.0692        .67627        .11340E-01    .22969    
   3  Normalizat    .86897        .25779        .37777E-03   -.97559    
   4  Prefactor     1.0564        .13249        .18317E-03   -.90872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72573e-10
Minuit parameter uncertainties:
  1  14.8184
  2  0.685282
  3  0.258155
  4  0.132534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395695': 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) = 6217.2731041
delta logL = 0.507579728315

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.011e+01  1.482e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.069e+00  6.853e-01  0.000e+00  5.000e+00 ( 1.000e+00)
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.056e+00  1.325e-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:  8.690e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.21
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.07 +/- 0.69
Photon Flux (Free Index): 1.81e-07 +/- 9.31e-08
Energy Flux (Free Index): 3.61e-05 +/- 1.61e-05

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/395695/cmap_HighResolution_305424001_305683201_4FGL_J0422.1-0644_daily_bin255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='3.61e-05', photon_flux_error='6.29e-08', dlogl='5.08e-01', energy_flux='3.52e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-08-20 12:59:01.520711', photon_index_error2='0.69', photon_index2='3.07', ts='8.94', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.94', time_epoch_completed='1629489541.52', return_code='0', job_id='395695', GAL2='1.06', EG2='0.87', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='9.31e-08', ts2='10.21', photon_index='2.45' WHERE bin_id='255' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 395695: <4FGL_J0422.1-0644_daily_bin255> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin255> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:20 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:21 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:45:21 2021
Terminated at Fri Aug 20 12:59:03 2021
Results reported at Fri Aug 20 12:59:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin255 65.5343 -6.741 305424001 305683201 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 :                                   794.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

