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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin362
RA = 65.5343, Dec = -6.741
tmin = 333158401, tmax = 333417601
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='395853', job_status='RUN', time_executed='2021-08-20 12:49:36.308751', time_epoch_executed='1629488976.31' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395853

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395853/ft1_4FGL_J0422.1-0644_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395853/ft1_4FGL_J0422.1-0644_daily_bin362.fits outfile=/scratch/kocevski/395853/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin362.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=333158401.0 tmax=333417601.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 11.00
user 5.87
sys 5.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395853/ft1_filtered_4FGL_J0422.1-0644_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/395853/ltcube_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.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/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits
.....................!
real 16.90
user 11.07
sys 5.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395853/ft1_filtered_4FGL_J0422.1-0644_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/395853/ltcube_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.fits outfile=/scratch/kocevski/395853/expmap_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.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/395853/ltcube_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.fits
.....................!
real 196.25
user 184.99
sys 10.93

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/395853/ft1_filtered_4FGL_J0422.1-0644_daily_bin362.fits scfile=/scratch/kocevski/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits outfile=/scratch/kocevski/395853/cmap_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.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 5.31
user 0.35
sys 4.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395853/ft1_filtered_4FGL_J0422.1-0644_daily_bin362.fits scfile=/scratch/kocevski/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits outfile=/scratch/kocevski/395853/cmap_HighResolution_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.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 5.53
user 0.37
sys 5.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395853/ft1_filtered_4FGL_J0422.1-0644_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/395853/ft2_4FGL_J0422.1-0644_daily_bin362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395853/Model_4FGL_J0422.1-0644_daily_bin362.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/395853/ft1_filtered_4FGL_J0422.1-0644_daily_bin362.fits.....................!
real 100.67
user 92.97
sys 7.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12404E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.656       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7974       1.0000         .10000E-03   10000.    
     8 'norm      '    .10931E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
    17 'norm      '    .66763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74170       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0588       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=   6611.518     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1765 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3213        2.7873        .53671E-07   -.83722E-04
   2  Prefactor     .10000E-03    97.519        .36539E-05** at limit **
   3  Prefactor     .10000E-03    68.017        .22257E-05** at limit **
   4  norm          .10000E-03    8.5005        .11021E-06** at limit **
   5  Prefactor     .10000E-03    10.474        .13646E-06** at limit **
   6  norm          17.655        6.7532        .74402E-07   -.61399E-04
   7  norm          4.7975        5.8623       -.92843E-07   -.16061E-04
   8  norm          .10000E-03    22.262        .11628E-05** at limit **
   9  norm          3.0675        1.2705        .40526E-07   -.24276E-03
  10  Prefactor     .10000E-03    .80598        .29901E-06** at limit **
  11  Prefactor     2.0706        54.202       -.35163E-06   -.98833E-05
  12  Prefactor     .10000E-03    27.521       -.20337E-06** at limit **
  13  Prefactor     .10000E-03    4.6313        .50630E-06** at limit **
  14  Prefactor     .10000E-03    5.2538        .22848E-06** at limit **
  15  norm          .10000E-03    .61004        .72769E-07** at limit **
  16  Prefactor     15.630        9.0215        .94068E-08   -.80198E-05
  17  norm          .66857        2.1386       -.41523E-06   -.67630E-04
  18  Prefactor     .10000E-03    24.057       -.14755E-05** at limit **
  19  Normalizat    .74154        .20849        .15365E-05   -.12030E-03
  20  Prefactor     1.0588        .11422       -.19472E-05   -.32414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.32126
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6554
  norm       = 4.79746
  norm       = 0.0001
  norm       = 3.06745
  Prefactor  = 0.0001
  Prefactor  = 2.07064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6303
  norm       = 0.668566
  Prefactor  = 0.0001
  Normalizat = 0.741538
  Prefactor  = 1.05884
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.518     FROM HESSE     STATUS=OK           291 CALLS     2056 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3213        2.7871        .79985E-04   -1.5167    
   2  Prefactor     .10000E-03    100.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    66.052        .31185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.5102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.655        6.7516        .95319E-04   -1.4867    
   7  norm          4.7975        5.8605        .18368E-03   -1.5270    
   8  norm          .10000E-03    22.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0675        1.2639        .55441E-04   -1.5358    
  10  Prefactor     .10000E-03    .83715        .14273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0706        54.965        .28176E-03   -1.5420    
  12  Prefactor     .10000E-03    27.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6741        .17106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .62329        .62061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.630        9.0241        .10131E-03   -1.4917    
  17  norm          .66857        2.1858        .20214E-03   -1.5544    
  18  Prefactor     .10000E-03    24.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74154        .21891        .36327E-03   -1.0228    
  20  Prefactor     1.0588        .11874        .17012E-03   -.90793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07085e-10
Minuit parameter uncertainties:
  1  2.78712
  2  0.000776005
  3  3.01375e-06
  4  5.28461e-06
  5  8.49935e-06
  6  6.75189
  7  5.86123
  8  3.45927e-05
  9  1.26389
  10  3.05026e-06
  11  21.358
  12  7.12307e-05
  13  7.85883e-06
  14  3.56962e-06
  15  2.03548e-06
  16  9.02493
  17  2.18603
  18  5.96811e-05
  19  0.219165
  20  0.11877
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.797e+00  5.861e+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:  1.059e+00  1.188e-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:  7.415e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 6.27e-06 +/- 7.66e-06

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

Saving results to:
/scratch/kocevski/395853/likelihoodResults_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.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) = 6611.25062225
delta logL = 0.26777388887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6611.24923197
delta logL = 0.269164170685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9238       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7132       1.0000          .0000       5.0000    
     3 'Normalizat'    .75297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0549       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=   6611.249     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9238        5.8148        .45315E-02   -.40716E-03
   2  alpha         1.7132        .67163        .44080       -.11851E-04
   3  Normalizat    .75303        .19183        .81447E-01    .67982E-04
   4  Prefactor     1.0549        .10614        .39632E-01   -.31487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.92375
  alpha      = 1.71321
  Normalizat = 0.753025
  Prefactor  = 1.05489
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.249     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9238        6.0879        .18126E-03   -1.5264    
   2  alpha         1.7132        .84750        .22347E-01   -.32016    
   3  Normalizat    .75303        .21297        .36065E-03   -1.0184    
   4  Prefactor     1.0549        .11816        .17038E-03   -.90921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11661e-10
Minuit parameter uncertainties:
  1  6.08865
  2  0.86664
  3  0.213201
  4  0.118193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395853': 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) = 6611.24923188
delta logL = 0.269164255405

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.924e+00  6.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.713e+00  8.666e-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:  1.055e+00  1.182e-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:  7.530e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.71 +/- 0.87
Photon Flux (Free Index): 1.21e-08 +/- 1.74e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/395853/cmap_HighResolution_333158401_333417601_4FGL_J0422.1-0644_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='1.09e-05', photon_flux_error='2.59e-08', dlogl='2.69e-01', energy_flux='6.27e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-08-20 13:00:33.867652', photon_index_error2='0.87', photon_index2='1.71', ts='1.49', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.94e-08', energy_flux_error2='1.72e-05', EG='0.74', time_epoch_completed='1629489633.87', return_code='0', job_id='395853', GAL2='1.05', EG2='0.75', return_code2='0', energy_flux_error='7.66e-06', photon_flux_error2='1.74e-08', ts2='2.02', photon_index='2.45' WHERE bin_id='362' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 395853: <4FGL_J0422.1-0644_daily_bin362> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin362> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:31 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:32 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:32 2021
Terminated at Fri Aug 20 13:00:35 2021
Results reported at Fri Aug 20 13:00:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin362 65.5343 -6.741 333158401 333417601 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 :                                   732.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

