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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin548
RA = 65.5343, Dec = -6.741
tmin = 381369601, tmax = 381628801
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='397326', job_status='RUN', time_executed='2021-08-20 12:52:33.158532', time_epoch_executed='1629489153.16' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397326

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397326/ft1_4FGL_J0422.1-0644_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397326/ft1_4FGL_J0422.1-0644_daily_bin548.fits outfile=/scratch/kocevski/397326/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin548.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=381369601.0 tmax=381628801.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.62
user 3.33
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397326/ft1_filtered_4FGL_J0422.1-0644_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/397326/ltcube_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.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/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits
.....................!
real 12.24
user 11.81
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397326/ft1_filtered_4FGL_J0422.1-0644_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/397326/ltcube_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.fits outfile=/scratch/kocevski/397326/expmap_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.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/397326/ltcube_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.fits
.....................!
real 189.57
user 184.84
sys 4.35

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/397326/ft1_filtered_4FGL_J0422.1-0644_daily_bin548.fits scfile=/scratch/kocevski/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits outfile=/scratch/kocevski/397326/cmap_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.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.61
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397326/ft1_filtered_4FGL_J0422.1-0644_daily_bin548.fits scfile=/scratch/kocevski/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits outfile=/scratch/kocevski/397326/cmap_HighResolution_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.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.61
user 0.37
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397326/ft1_filtered_4FGL_J0422.1-0644_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/397326/ft2_4FGL_J0422.1-0644_daily_bin548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397326/Model_4FGL_J0422.1-0644_daily_bin548.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/397326/ft1_filtered_4FGL_J0422.1-0644_daily_bin548.fits.....................!
real 110.40
user 108.88
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94876       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4532       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .69783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.119       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12492E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7409       1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.286       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89765       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1159       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=   7877.660     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2098 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94827        1.8533       -.25642E-06   -.71352E-04
   2  Prefactor     .10000E-03    11.402       -.78519E-08** at limit **
   3  Prefactor     7.4534        6.5110       -.14480E-06    .40889E-03
   4  norm          .10000E-03    7.6132       -.35199E-07** at limit **
   5  Prefactor     .10000E-03    63.056       -.78393E-06** at limit **
   6  norm          .10000E-03    3.0361       -.44618E-06** at limit **
   7  norm          .10000E-03    6.0785       -.34945E-06** at limit **
   8  norm          .10000E-03    10.616       -.42318E-06** at limit **
   9  norm          .69813        1.0664        .40207E-06   -.15318E-03
  10  Prefactor     .10000E-03    1.6852        .21802E-05** at limit **
  11  Prefactor     23.393        33.760        .96366E-06   -.16586E-04
  12  Prefactor     61.186        49.959       -.24255E-06   -.13872E-03
  13  Prefactor     3.5605        9.0140        .22745E-06   -.25176E-04
  14  Prefactor     .10000E-03    11.876       -.12132E-06** at limit **
  15  norm          .10000E-03    1.0976        .39647E-06** at limit **
  16  Prefactor     .10000E-03    1.9587       -.59644E-07** at limit **
  17  norm          1.7423        2.0478       -.70875E-07   -.64313E-04
  18  Prefactor     57.277        29.965        .37552E-06    .95052E-05
  19  Normalizat    .89761        .19186        .52307E-06    .25272E-04
  20  Prefactor     1.1160        .10265        .66456E-06    .81034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.948274
  Prefactor  = 0.0001
  Prefactor  = 7.45339
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.698132
  Prefactor  = 0.0001
  Prefactor  = 23.3925
  Prefactor  = 61.1861
  Prefactor  = 3.56047
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.74229
  Prefactor  = 57.2767
  Normalizat = 0.897606
  Prefactor  = 1.11597
 **********
 **   18 **HESSE 
 **********

 FCN=   7877.660     FROM HESSE     STATUS=OK           293 CALLS     2391 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94827        1.8323        .16213E-03   -1.5513    
   2  Prefactor     .10000E-03    11.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4534        6.5469        .73453E-03   -1.5162    
   4  norm          .10000E-03    7.6319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    63.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1075        .15167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.2187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .69813        1.0574        .48214E-04   -1.5541    
  10  Prefactor     .10000E-03    1.6948        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.393        33.750        .82814E-04   -1.4740    
  12  Prefactor     61.186        50.208        .25662E-03   -1.4142    
  13  Prefactor     3.5605        8.9849        .21414E-03   -1.5331    
  14  Prefactor     .10000E-03    11.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.5146        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9647        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7423        2.0204        .12954E-03   -1.5444    
  18  Prefactor     57.277        29.898        .53003E-04   -1.4193    
  19  Normalizat    .89761        .21260        .34615E-03   -.96544    
  20  Prefactor     1.1160        .11482        .17486E-03   -.88958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28353e-09
Minuit parameter uncertainties:
  1  1.83243
  2  1.18732e-05
  3  6.54758
  4  1.2447e-05
  5  0.000399178
  6  5.3531e-05
  7  4.82369e-05
  8  2.85466e-05
  9  1.0574
  10  6.01938e-06
  11  33.7774
  12  50.2431
  13  8.98826
  14  5.84955e-05
  15  0.000288035
  16  5.14043e-06
  17  2.02047
  18  29.9063
  19  0.212801
  20  0.11485
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  4.824e-05  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.116e+00  1.149e-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.976e-01  2.128e-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: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397326/likelihoodResults_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.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) = 7877.66092831
delta logL = -0.000766462735555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7877.66016377
delta logL = -1.92366769625e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4027       1.0000          .0000       5.0000    
     3 'Normalizat'    .89719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1162       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=   7877.660     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      263 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.490        .89140E-01** at limit **
   2  alpha         1.6643        4.1653        .50000       -.64756E-07
   3  Normalizat    .89761        .93493E-02    .34615E-03    .45629E-03
   4  Prefactor     1.1160        .52427E-02    .17486E-03    .92727E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66429
  Normalizat = 0.897608
  Prefactor  = 1.11597
 **********
 **   18 **HESSE 
 **********

 FCN=   7877.660     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    744.69        .33287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6643        3.3107        .50000       -.34084    
   3  Normalizat    .89761        .31895E-01    .13846E-04   -.96544    
   4  Prefactor     1.1160        .17887E-01    .34972E-04   -.88958    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.96204e-10
Minuit parameter uncertainties:
  1  0.000206847
  2  861.986
  3  0.0318961
  4  0.0178875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397326': 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): 102
logL (Free Index) = 7877.66015618
delta logL = 5.66645576328e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.116e+00  1.789e-02  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.976e-01  3.190e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.534 -6.741

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/397326/cmap_HighResolution_381369601_381628801_4FGL_J0422.1-0644_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-08-20 13:03:29.083084', job_id='397326', GAL2='1.12', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1629489809.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='548' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:03:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 397326: <4FGL_J0422.1-0644_daily_bin548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin548 65.5343 -6.741 381369601 381628801 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 :                                   656.56 sec.
    Max Memory :                                 1037 MB
    Average Memory :                             312.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

