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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin53
RA = 65.5343, Dec = -6.741
tmin = 253065601, tmax = 253324801
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='394231', job_status='RUN', time_executed='2021-08-20 12:43:25.795044', time_epoch_executed='1629488605.8' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394231/ft1_4FGL_J0422.1-0644_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394231/ft1_4FGL_J0422.1-0644_daily_bin53.fits outfile=/scratch/kocevski/394231/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin53.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=253065601.0 tmax=253324801.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 1.92
user 1.23
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.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/394231/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.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 1.06
user 0.33
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/394231/ltcube_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.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/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits
.....................!
real 13.17
user 12.21
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/394231/ltcube_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.fits outfile=/scratch/kocevski/394231/expmap_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.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/394231/ltcube_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.fits
.....................!
real 193.50
user 187.17
sys 6.00

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/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.fits scfile=/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits outfile=/scratch/kocevski/394231/cmap_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.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 1.03
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.fits scfile=/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits outfile=/scratch/kocevski/394231/cmap_HighResolution_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.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 1.04
user 0.36
sys 0.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/394231/ft2_4FGL_J0422.1-0644_daily_bin53.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394231/Model_4FGL_J0422.1-0644_daily_bin53.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/394231/ft1_filtered_4FGL_J0422.1-0644_daily_bin53.fits.....................!
real 142.17
user 140.02
sys 1.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0338       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.403       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.0344       1.0000         .10000E-03   10000.    
     8 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4416       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9956       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.241       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93118       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98811       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=   10301.22     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2036 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0620        1.5013        .57956E-02    .36243E-03
   2  Prefactor     .10000E-03    5.2623        .90712E-02** at limit **
   3  Prefactor     7.0342        5.1528        .37815E-02    .72218E-03
   4  norm          .10000E-03    3.4669        .90712E-02** at limit **
   5  Prefactor     21.406        17.029        .21645E-02   -.17877E-02
   6  norm          .10000E-03    2.6264        .90712E-02** at limit **
   7  norm          7.0346        5.9360        .37814E-02    .33439E-02
   8  norm          .10000E-03    31.967        .90712E-02** at limit **
   9  norm          1.9251        1.0178        .74872E-02    .58188E-03
  10  Prefactor     .74723        1.2022        .26108E-01    .16481E-02
  11  Prefactor     26.618        23.669        .19412E-02   -.14222E-02
  12  Prefactor     .10000E-03    18.585        .90712E-02** at limit **
  13  Prefactor     .10000E-03    3.5479        .90712E-02** at limit **
  14  Prefactor     8.4382        15.907        .34494E-02    .90292E-03
  15  norm          2.9956        1.7999        .58634E-02    .62529E-03
  16  Prefactor     .10000E-03    2.1363        .90712E-02** at limit **
  17  norm          .10000E-03    .58113        .45243E-01** at limit **
  18  Prefactor     21.238        17.939        .21727E-02    .87524E-03
  19  Normalizat    .93106        .15586        .73046E-01    .40773E-05
  20  Prefactor     .98820        .82380E-01    .46118E-01   -.76551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06201
  Prefactor  = 0.0001
  Prefactor  = 7.03418
  norm       = 0.0001
  Prefactor  = 21.4064
  norm       = 0.0001
  norm       = 7.03464
  norm       = 0.0001
  norm       = 1.92507
  Prefactor  = 0.747229
  Prefactor  = 26.6183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.43815
  norm       = 2.99561
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2385
  Normalizat = 0.931063
  Prefactor  = 0.988198
 **********
 **   18 **HESSE 
 **********

 FCN=   10301.22     FROM HESSE     STATUS=OK           289 CALLS     2325 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0620        1.4978        .84004E-04   -1.5358    
   2  Prefactor     .10000E-03    5.2646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0342        5.1617        .15126E-03   -1.5177    
   4  norm          .10000E-03    3.4679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.406        16.966        .86578E-04   -1.4782    
   6  norm          .10000E-03    2.6861        .32042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.0346        5.9398        .75627E-03   -1.5177    
   8  norm          .10000E-03    32.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9251        .98121        .66999E-04   -1.5430    
  10  Prefactor     .74723        .99871        .12584E-02   -1.5535    
  11  Prefactor     26.618        23.554        .77649E-04   -1.4676    
  12  Prefactor     .10000E-03    18.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4382        15.927        .13797E-03   -1.5127    
  15  norm          2.9956        1.7907        .10010E-03   -1.5362    
  16  Prefactor     .10000E-03    2.1422        .14486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5088        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.238        17.789        .86907E-04   -1.4786    
  19  Normalizat    .93106        .17452        .32322E-03   -.95377    
  20  Prefactor     .98820        .93125E-01    .17401E-03   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91072e-08
Minuit parameter uncertainties:
  1  1.49784
  2  2.83553e-07
  3  5.16202
  4  3.31129e-05
  5  16.9701
  6  1.73373e-06
  7  5.94029
  8  0.000185842
  9  0.981214
  10  0.998734
  11  23.5627
  12  4.09436e-05
  13  7.25345e-06
  14  15.9349
  15  1.7907
  16  2.79346e-06
  17  4.19183e-05
  18  17.7935
  19  0.174628
  20  0.0931403
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.035e+00  5.940e+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.882e-01  9.314e-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:  9.311e-01  1.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 9.20e-06 +/- 7.77e-06

TS (Fixed Index): 2.69
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394231/likelihoodResults_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.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) = 10301.1909227
delta logL = 0.0323650937025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10301.1875374
delta logL = 0.0357503918349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5859       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6687       1.0000          .0000       5.0000    
     3 'Normalizat'    .92427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99017       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10301.19     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      255 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5822        6.1983        .78186E-03    .18983E-03
   2  alpha         2.6692        .87258        .24327E-01    .18817E-03
   3  Normalizat    .92391        .16912        .32434E-03   -.12549E-04
   4  Prefactor     .99040        .92558E-01    .17384E-03   -.24852E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.58224
  alpha      = 2.66915
  Normalizat = 0.923908
  Prefactor  = 0.9904
 **********
 **   18 **HESSE 
 **********

 FCN=   10301.19     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5822        5.9456        .15637E-03   -1.5195    
   2  alpha         2.6692        .83797        .48654E-02    .67713E-01
   3  Normalizat    .92391        .16919        .12974E-04   -.95625    
   4  Prefactor     .99040        .92587E-01    .69535E-05   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36652e-12
Minuit parameter uncertainties:
  1  5.94612
  2  0.854597
  3  0.169284
  4  0.0926016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394231': 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) = 10301.1875341
delta logL = 0.0357536786905

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.904e-01  9.260e-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:  9.239e-01  1.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.67 +/- 0.85
Photon Flux (Free Index): 3.70e-08 +/- 3.60e-08
Energy Flux (Free Index): 9.16e-06 +/- 7.39e-06

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/394231/cmap_HighResolution_253065601_253324801_4FGL_J0422.1-0644_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='9.16e-06', photon_flux_error='2.62e-08', dlogl='3.58e-02', energy_flux='9.20e-06', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-08-20 12:55:57.610455', photon_index_error2='0.85', photon_index2='2.67', ts='2.69', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='7.39e-06', EG='0.93', time_epoch_completed='1629489357.61', return_code='0', job_id='394231', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='7.77e-06', photon_flux_error2='3.60e-08', ts2='2.77', photon_index='2.45' WHERE bin_id='53' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 394231: <4FGL_J0422.1-0644_daily_bin53> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin53> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:30 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:31 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:31 2021
Terminated at Fri Aug 20 12:55:58 2021
Results reported at Fri Aug 20 12:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin53 65.5343 -6.741 253065601 253324801 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 :                                   760.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

