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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin130
RA = 65.5343, Dec = -6.741
tmin = 273024001, tmax = 273283201
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='394338', job_status='RUN', time_executed='2021-08-20 12:44:19.228022', time_epoch_executed='1629488659.23' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394338

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394338/ft1_4FGL_J0422.1-0644_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394338/ft1_4FGL_J0422.1-0644_daily_bin130.fits outfile=/scratch/kocevski/394338/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin130.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=273024001.0 tmax=273283201.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 6.67
user 2.70
sys 3.56

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394338/ft1_filtered_4FGL_J0422.1-0644_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/394338/ltcube_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.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/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits
.....................!
real 18.19
user 13.95
sys 4.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394338/ft1_filtered_4FGL_J0422.1-0644_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/394338/ltcube_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.fits outfile=/scratch/kocevski/394338/expmap_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.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/394338/ltcube_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.fits
.....................!
real 196.40
user 186.32
sys 9.59

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/394338/ft1_filtered_4FGL_J0422.1-0644_daily_bin130.fits scfile=/scratch/kocevski/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits outfile=/scratch/kocevski/394338/cmap_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.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 3.97
user 0.39
sys 3.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394338/ft1_filtered_4FGL_J0422.1-0644_daily_bin130.fits scfile=/scratch/kocevski/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits outfile=/scratch/kocevski/394338/cmap_HighResolution_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.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.17
user 0.39
sys 3.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394338/ft1_filtered_4FGL_J0422.1-0644_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/394338/ft2_4FGL_J0422.1-0644_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394338/Model_4FGL_J0422.1-0644_daily_bin130.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/394338/ft1_filtered_4FGL_J0422.1-0644_daily_bin130.fits.....................!
real 119.99
user 113.79
sys 5.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.506       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.8315       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17260E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4576       1.0000         .10000E-03   10000.    
    15 'norm      '    .33277       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.2183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96550       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8188.213     FROM MIGRAD    STATUS=CONVERGED     85 CALLS     1462 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1141        1.4914        .75363E-07    .40874E-05
   2  Prefactor     .10000E-03    8.7015       -.80131E-05** at limit **
   3  Prefactor     13.506        1.0061        .30932E-07   -.14358E-04
   4  norm          .10000E-03    4.5184       -.32019E-05** at limit **
   5  Prefactor     .10001E-03    4.7146       -.29112E-05** at limit **
   6  norm          5.8311        1.0116       -.21161E-07   -.18666E-06
   7  norm          .10000E-03    3.9328        .45123E-06** at limit **
   8  norm          .10000E-03    74.183       -.31494E-05** at limit **
   9  norm          3.9318        1.4478       -.17755E-06    .23584E-04
  10  Prefactor     .10000E-03    1.0217       -.46057E-07** at limit **
  11  Prefactor     25.348        1.1185        .23665E-06   -.13905E-02
  12  Prefactor     .10000E-03    12.166        .89145E-05** at limit **
  13  Prefactor     .10000E-03    4.9327        .68263E-05** at limit **
  14  Prefactor     5.4520        1.2118       -.48014E-06    .54497E-03
  15  norm          .33423        3.0559        .11367E-07   -.58486E-04
  16  Prefactor     .10000E-03    5.8358       -.60324E-05** at limit **
  17  norm          5.2181        2.3702        .11369E-07   -.58623E-04
  18  Prefactor     .10000E-03    7.8694        .55162E-05** at limit **
  19  Normalizat    .96550        .21455        .60467E-06   -.26879E-04
  20  Prefactor     1.1279        .11650       -.81766E-06   -.65182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11409
  Prefactor  = 0.000100002
  Prefactor  = 13.5063
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 5.83109
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.93182
  Prefactor  = 0.0001
  Prefactor  = 25.3481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.45202
  norm       = 0.33423
  Prefactor  = 0.0001
  norm       = 5.21815
  Prefactor  = 0.0001
  Normalizat = 0.965497
  Prefactor  = 1.12792
 **********
 **   18 **HESSE 
 **********

 FCN=   8188.213     FROM HESSE     STATUS=OK           337 CALLS     1799 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1141        1.4939        .70925E-02   -1.5417    
   2  Prefactor     .10000E-03    11.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.506        8.0894        .27248E-02   -1.4973    
   4  norm          .10000E-03    4.5173        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    12.502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.8311        5.2506        .41577E-02   -1.5225    
   7  norm          .10000E-03    3.9061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    73.063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9318        1.5649        .50861E-02   -1.5311    
  10  Prefactor     .10000E-03    .61025        .39152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.348        29.113        .19892E-02   -1.4701    
  12  Prefactor     .10000E-03    13.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4520        23.878        .43000E-02   -1.5241    
  15  norm          .33423        1.5321        .33291E-01   -1.5592    
  16  Prefactor     .10000E-03    5.7584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.2181        2.3818        .43992E-02   -1.5251    
  18  Prefactor     .10000E-03    7.8880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96550        .20189        .80419E-01   -.94195    
  20  Prefactor     1.1279        .10543        .36612E-01   -.88579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53229e-08
Minuit parameter uncertainties:
  1  1.49398
  2  0.000292693
  3  8.09001
  4  1.02936e-05
  5  0.000533047
  6  5.25105
  7  1.31513e-05
  8  1.06888e-05
  9  1.56491
  10  1.70551e-07
  11  29.1296
  12  0.000159958
  13  7.72142e-06
  14  22.8349
  15  1.43101
  16  2.69841e-05
  17  2.38182
  18  3.36795e-05
  19  0.202049
  20  0.105448
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.315e-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.128e+00  1.054e-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.655e-01  2.020e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394338/likelihoodResults_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.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): 0
logL (Free Index) = 8188.21414354
delta logL = -0.00121101575223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8188.21293252
delta logL = 1.7971615307e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4390       1.0000          .0000       5.0000    
     3 'Normalizat'    .96550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1279       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=   8188.100     FROM MIGRAD    STATUS=FAILED       137 CALLS      281 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19045        39.236        .17489E-01    .29236E-02
   2  alpha         5.0000        3.4324        .16467    ** at limit **
   3  Normalizat    .93231        .50816        .35596E-03    .86232E-06
   4  Prefactor     1.1388        .96624E-01    .18194E-03    .49363E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8188.100     FROM SIMPLEX   STATUS=UNCHANGED    190 CALLS      471 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19045        39.236        .14053E-07    .29236E-02
   2  alpha         5.0000        3.4324        .67913E-02** at limit **
   3  Normalizat    .93231        .50816        .11481E-07    .86232E-06
   4  Prefactor     1.1388        .96624E-01    .52492E-09    .49363E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8188.100     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      501 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19045        .43187        .77006E-03    .11813E-01
   2  alpha         5.0000        3.3774        .32934E-01** at limit **
   3  Normalizat    .93231        .22296        .14239E-04    .95813E-06
   4  Prefactor     1.1388        .11893        .72777E-05    .46864E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.190454
  alpha      = 5
  Normalizat = 0.932314
  Prefactor  = 1.1388
 **********
 **   18 **HESSE 
 **********

 FCN=   8188.100     FROM HESSE     STATUS=OK            25 CALLS      526 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19045        .43052        .15401E-03   -1.5621    
   2  alpha         5.0000        3.3768        .65867E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93231        .22246        .28477E-05   -.95334    
   4  Prefactor     1.1388        .11887        .14555E-05   -.88236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0212e-13
Minuit parameter uncertainties:
  1  0.430524
  2  7.72004e-07
  3  0.222683
  4  0.118894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394338': 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) = 8188.10044617
delta logL = 0.112486353116

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.905e-01  4.305e-01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  5.000e+00  7.720e-07  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.139e+00  1.189e-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.323e-01  2.227e-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/394338/cmap_HighResolution_273024001_273283201_4FGL_J0422.1-0644_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-08-20 12:55:53.192924', job_id='394338', GAL2='1.14', fit_tolerance='1e-08', EG2='0.93', EG='0.97', time_epoch_completed='1629489353.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.12e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='130' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 394338: <4FGL_J0422.1-0644_daily_bin130> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin130> 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) <bullet0091>, 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:55:54 2021
Results reported at Fri Aug 20 12:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin130 65.5343 -6.741 273024001 273283201 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 :                                   745.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

