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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin132
RA = 65.5343, Dec = -6.741
tmin = 273542401, tmax = 273801601
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='394341', job_status='RUN', time_executed='2021-08-20 12:40:53.893240', time_epoch_executed='1629488453.89' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394341/ft1_4FGL_J0422.1-0644_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394341/ft1_4FGL_J0422.1-0644_daily_bin132.fits outfile=/scratch/kocevski/394341/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin132.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=273542401.0 tmax=273801601.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 3.53
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394341/ft1_filtered_4FGL_J0422.1-0644_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/394341/ltcube_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.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/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits
.....................!
real 12.18
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394341/ft1_filtered_4FGL_J0422.1-0644_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/394341/ltcube_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.fits outfile=/scratch/kocevski/394341/expmap_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.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/394341/ltcube_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.fits
.....................!
real 190.83
user 185.39
sys 5.11

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/394341/ft1_filtered_4FGL_J0422.1-0644_daily_bin132.fits scfile=/scratch/kocevski/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits outfile=/scratch/kocevski/394341/cmap_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394341/ft1_filtered_4FGL_J0422.1-0644_daily_bin132.fits scfile=/scratch/kocevski/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits outfile=/scratch/kocevski/394341/cmap_HighResolution_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.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 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394341/ft1_filtered_4FGL_J0422.1-0644_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/394341/ft2_4FGL_J0422.1-0644_daily_bin132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394341/Model_4FGL_J0422.1-0644_daily_bin132.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/394341/ft1_filtered_4FGL_J0422.1-0644_daily_bin132.fits....................!
real 87.22
user 85.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11725E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0690       1.0000         .10000E-03   10000.    
     4 'norm      '    10.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .77031       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1453       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0413       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.978       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95613       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=   5958.448     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2023 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5390       -.15347E-06** at limit **
   2  Prefactor     .10000E-03    14.977       -.16992E-04** at limit **
   3  Prefactor     6.0719        8.9497        .32409E-06   -.29186E-04
   4  norm          10.227        17.006       -.16584E-06    .32918E-05
   5  Prefactor     .10000E-03    59.570       -.44468E-05** at limit **
   6  norm          .10000E-03    1.3179        .47253E-07** at limit **
   7  norm          .81849        8.4390       -.39987E-05    .26513E-03
   8  norm          .10000E-03    20.792        .73882E-05** at limit **
   9  norm          2.6105        1.2179        .35594E-06    .39193E-03
  10  Prefactor     2.1451        1.7106        .57393E-06    .12829E-03
  11  Prefactor     .10000E-03    10.270       -.15536E-05** at limit **
  12  Prefactor     45.526        44.370       -.16378E-04    .19628E-05
  13  Prefactor     .10000E-03    2.6328        .43625E-07** at limit **
  14  Prefactor     .10000E-03    13.154        .11546E-04** at limit **
  15  norm          1.0425        1.9234        .19204E-06   -.60451E-03
  16  Prefactor     .10000E-03    4.1036       -.71511E-07** at limit **
  17  norm          2.3506        2.1763       -.18560E-06   -.33322E-03
  18  Prefactor     22.980        27.428        .16300E-05    .51916E-05
  19  Normalizat    1.2494        .22547        .18835E-05    .20608E-03
  20  Prefactor     .95614        .11307        .85861E-07    .33353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07186
  norm       = 10.2272
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.818492
  norm       = 0.0001
  norm       = 2.61049
  Prefactor  = 2.14505
  Prefactor  = 0.0001
  Prefactor  = 45.5262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04248
  Prefactor  = 0.0001
  norm       = 2.35056
  Prefactor  = 22.9803
  Normalizat = 1.24945
  Prefactor  = 0.956139
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.448     FROM HESSE     STATUS=OK           291 CALLS     2314 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5841        .18495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0719        8.9890        .16298E-03   -1.5215    
   4  norm          10.227        17.005        .12530E-03   -1.5068    
   5  Prefactor     .10000E-03    60.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3192        .86533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .81849        23.030        .41900E-02   -1.5527    
   8  norm          .10000E-03    20.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6105        1.2159        .54823E-04   -1.5385    
  10  Prefactor     2.1451        1.6986        .84153E-04   -1.5415    
  11  Prefactor     .10000E-03    10.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.526        44.203        .59412E-04   -1.4357    
  13  Prefactor     .10000E-03    2.6354        .12231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0425        1.8673        .13815E-03   -1.5504    
  16  Prefactor     .10000E-03    4.1215        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3506        2.1649        .10357E-03   -1.5401    
  18  Prefactor     22.980        27.385        .83561E-04   -1.4749    
  19  Normalizat    1.2494        .25410        .31553E-03   -.85088    
  20  Prefactor     .95614        .12840        .18681E-03   -.94206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23437e-09
Minuit parameter uncertainties:
  1  1.88377e-05
  2  6.79172e-06
  3  8.991
  4  17.0134
  5  2.83717e-05
  6  2.31763e-06
  7  8.68647
  8  2.52664e-05
  9  1.21588
  10  1.69862
  11  1.08796e-05
  12  44.2353
  13  9.12249e-06
  14  2.10147e-05
  15  1.86737
  16  4.50816e-06
  17  2.16498
  18  27.4004
  19  0.254356
  20  0.128443
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.185e-01  8.686e+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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.561e-01  1.284e-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.249e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394341/likelihoodResults_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.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) = 5958.39952921
delta logL = 0.0484236910352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5958.3847095
delta logL = 0.0632433938154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6638       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2531       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95966       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=   5958.385     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6603        315.76        .81748E-02    .82020E-03
   2  alpha         3.2538        2.7937        .43803        .37939E-04
   3  Normalizat    1.2340        .69716E-01    .71688E-01   -.13676E-05
   4  Prefactor     .95963        .37090E-01    .45761E-01    .40939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66034
  alpha      = 3.25383
  Normalizat = 1.23403
  Prefactor  = 0.959627
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.385     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6603        7.8457        .27330E-03   -1.5450    
   2  alpha         3.2538        3.7163        .46095E-01    .30630    
   3  Normalizat    1.2340        .24566        .31721E-03   -.85558    
   4  Prefactor     .95963        .12767        .18650E-03   -.94088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26567e-11
Minuit parameter uncertainties:
  1  7.2198
  2  2.48498
  3  0.245887
  4  0.127709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394341': 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) = 5958.38470928
delta logL = 0.0632436211999

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.660e+00  7.220e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.254e+00  2.485e+00  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.596e-01  1.277e-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.234e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/394341/cmap_HighResolution_273542401_273801601_4FGL_J0422.1-0644_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-20 12:50:12.289999', job_id='394341', GAL2='0.96', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1629489012.29', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.32e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='132' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:50:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 394341: <4FGL_J0422.1-0644_daily_bin132> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin132> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:37 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:39 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:40:39 2021
Terminated at Fri Aug 20 12:50:13 2021
Results reported at Fri Aug 20 12:50:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin132 65.5343 -6.741 273542401 273801601 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             397.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            576 sec.

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

