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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin393
RA = 65.5343, Dec = -6.741
tmin = 341193601, tmax = 341452801
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='395898', job_status='RUN', time_executed='2021-08-20 12:50:12.314383', time_epoch_executed='1629489012.31' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395898

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395898/ft1_4FGL_J0422.1-0644_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395898/ft1_4FGL_J0422.1-0644_daily_bin393.fits outfile=/scratch/kocevski/395898/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin393.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=341193601.0 tmax=341452801.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 7.41
user 3.24
sys 4.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.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/395898/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin393.fits evtable="EVENTS" outfile="/scratch/kocevski/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.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 4.45
user 0.35
sys 4.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/395898/ltcube_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.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/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits
.....................!
real 17.01
user 12.20
sys 4.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/395898/ltcube_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.fits outfile=/scratch/kocevski/395898/expmap_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.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/395898/ltcube_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.fits
.....................!
real 194.43
user 185.02
sys 9.07

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/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.fits scfile=/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits outfile=/scratch/kocevski/395898/cmap_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.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 4.40
user 0.38
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.fits scfile=/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits outfile=/scratch/kocevski/395898/cmap_HighResolution_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.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 4.43
user 0.40
sys 4.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/395898/ft2_4FGL_J0422.1-0644_daily_bin393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395898/Model_4FGL_J0422.1-0644_daily_bin393.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/395898/ft1_filtered_4FGL_J0422.1-0644_daily_bin393.fits.....................!
real 115.51
user 108.71
sys 6.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.1184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1866       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6291       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.607       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8605       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66848       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0723       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=   8310.811     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1721 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.297        2.5691       -.35809E-07    .89232E-05
   2  Prefactor     .10000E-03    9.2126       -.16279E-05** at limit **
   3  Prefactor     .10000E-03    2.5131       -.88963E-08** at limit **
   4  norm          7.1175        11.819       -.16864E-05   -.80075E-03
   5  Prefactor     .10000E-03    8.2762        .23976E-05** at limit **
   6  norm          5.1868        3.5824        .99044E-07   -.77757E-04
   7  norm          .10000E-03    3.1253        .20235E-06** at limit **
   8  norm          .10000E-03    8.4586       -.93817E-06** at limit **
   9  norm          3.3414        1.1778       -.24519E-07   -.96381E-03
  10  Prefactor     1.7252        1.5257       -.16432E-06   -.11913E-02
  11  Prefactor     .10000E-03    38.347       -.39165E-04** at limit **
  12  Prefactor     .10000E-03    34.912        .33811E-04** at limit **
  13  Prefactor     .10000E-03    1.9254       -.69717E-07** at limit **
  14  Prefactor     4.6220        17.367       -.91323E-05   -.57476E-04
  15  norm          5.0846        2.2871       -.50136E-07   -.43885E-03
  16  Prefactor     10.607        5.4382        .71243E-07    .57953E-04
  17  norm          1.8007        1.6136       -.10828E-06   -.58467E-03
  18  Prefactor     7.8608        19.149       -.32696E-06   -.27877E-04
  19  Normalizat    .66848        .16437        .86723E-06    .42825E-04
  20  Prefactor     1.0723        .94418E-01    .32686E-06    .19925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.11749
  Prefactor  = 0.0001
  norm       = 5.18677
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.34142
  Prefactor  = 1.72521
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.62203
  norm       = 5.08463
  Prefactor  = 10.6069
  norm       = 1.80073
  Prefactor  = 7.86076
  Normalizat = 0.668479
  Prefactor  = 1.07228
 **********
 **   18 **HESSE 
 **********

 FCN=   8310.811     FROM HESSE     STATUS=OK           293 CALLS     2014 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.297        2.5690        .67252E-04   -1.5036    
   2  Prefactor     .10000E-03    9.2269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5292        .14106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.1175        11.934        .75176E-03   -1.5174    
   5  Prefactor     .10000E-03    8.2790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1868        3.5815        .13772E-03   -1.5252    
   7  norm          .10000E-03    3.1786        .15737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.4690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3414        1.1733        .54243E-04   -1.5342    
  10  Prefactor     1.7252        1.5097        .98780E-04   -1.5445    
  11  Prefactor     .10000E-03    38.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9305        .12352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6220        17.413        .18707E-03   -1.5278    
  15  norm          5.0846        2.2832        .88195E-04   -1.5257    
  16  Prefactor     10.607        5.4382        .12302E-03   -1.5056    
  17  norm          1.8007        1.5989        .10482E-03   -1.5440    
  18  Prefactor     7.8608        19.114        .14302E-03   -1.5147    
  19  Normalizat    .66848        .17857        .36313E-03   -1.0515    
  20  Prefactor     1.0723        .10370        .16981E-03   -.90358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66958e-09
Minuit parameter uncertainties:
  1  2.56905
  2  4.20632e-06
  3  2.77063e-06
  4  11.9379
  5  4.24723e-07
  6  3.5817
  7  2.72268e-06
  8  5.31335e-06
  9  1.1733
  10  1.50974
  11  0.000289986
  12  3.69923e-05
  13  1.29409e-06
  14  17.4317
  15  2.28324
  16  5.43845
  17  1.59889
  18  19.1287
  19  0.178725
  20  0.103722
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  2.723e-06  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.072e+00  1.037e-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:  6.685e-01  1.787e-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: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395898/likelihoodResults_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.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) = 8310.81291193
delta logL = -0.00149847569992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8310.8114119
delta logL = 1.55111956701e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3946       1.0000          .0000       5.0000    
     3 'Normalizat'    .66849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0723       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8310.794     FROM MIGRAD    STATUS=FAILED       232 CALLS      376 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61126        89.663        .17619E-01    .20629E-02
   2  alpha         1.3823        2.6221        .50000       -.53921E-04
   3  Normalizat    .66924        .17681        .36313E-03    .64031E-03
   4  Prefactor     1.0711        .10789        .16981E-03    .12202E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8310.794     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      452 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61126        89.663        .26506E-03   -1.5552    
   2  alpha         1.3823        2.6221        .32535E-02   -.46350    
   3  Normalizat    .66924        .17681        .88916E-04   -1.0512    
   4  Prefactor     1.0711        .10789        .94493E-04   -.90397    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8310.794     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      485 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61124        4.7983        .38360E-03   -.12270E-03
   2  alpha         1.3823        1.4361        .47122E-01   -.79621E-05
   3  Normalizat    .66924        .17562        .14525E-04    .60956E-03
   4  Prefactor     1.0711        .10300        .33963E-04    .11627E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.611238
  alpha      = 1.38229
  Normalizat = 0.669237
  Prefactor  = 1.07107
 **********
 **   18 **HESSE 
 **********

 FCN=   8310.794     FROM HESSE     STATUS=OK            25 CALLS      510 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61124        5.0199        .15344E-04   -1.5552    
   2  alpha         1.3823        1.4671        .18849E-02   -.46350    
   3  Normalizat    .66924        .17560        .29050E-05   -1.0512    
   4  Prefactor     1.0711        .10298        .67926E-05   -.90397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76534e-10
Minuit parameter uncertainties:
  1  3.50345
  2  1.60025
  3  0.175745
  4  0.103002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395898': 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) = 8310.79367522
delta logL = 0.017738236982

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  6.112e-01  3.503e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.382e+00  1.600e+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:  1.071e+00  1.030e-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:  6.692e-01  1.757e-01  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/395898/cmap_HighResolution_341193601_341452801_4FGL_J0422.1-0644_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-05', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-08-20 13:02:02.916746', job_id='395898', GAL2='1.07', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1629489722.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.77e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='393' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:02:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 395898: <4FGL_J0422.1-0644_daily_bin393> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin393> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:34 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:45:36 2021
Terminated at Fri Aug 20 13:02:04 2021
Results reported at Fri Aug 20 13:02:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin393 65.5343 -6.741 341193601 341452801 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 :                                   771.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             233.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            990 sec.

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

