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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin670
RA = 65.5343, Dec = -6.741
tmin = 412992001, tmax = 413251201
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='397521', job_status='RUN', time_executed='2021-08-20 12:55:21.114868', time_epoch_executed='1629489321.11' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397521

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397521/ft1_4FGL_J0422.1-0644_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397521/ft1_4FGL_J0422.1-0644_daily_bin670.fits outfile=/scratch/kocevski/397521/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin670.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=412992001.0 tmax=413251201.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 12.76
user 3.30
sys 9.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.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/397521/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin670.fits evtable="EVENTS" outfile="/scratch/kocevski/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.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 9.69
user 0.34
sys 9.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/397521/ltcube_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.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/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits
.....................!
real 22.86
user 12.20
sys 10.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/397521/ltcube_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.fits outfile=/scratch/kocevski/397521/expmap_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.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/397521/ltcube_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.fits
.....................!
real 202.22
user 186.02
sys 15.51

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/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.fits scfile=/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits outfile=/scratch/kocevski/397521/cmap_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.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 9.43
user 0.39
sys 9.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.fits scfile=/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits outfile=/scratch/kocevski/397521/cmap_HighResolution_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.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 9.55
user 0.39
sys 9.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/397521/ft2_4FGL_J0422.1-0644_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397521/Model_4FGL_J0422.1-0644_daily_bin670.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/397521/ft1_filtered_4FGL_J0422.1-0644_daily_bin670.fits.....................!
real 110.60
user 97.30
sys 13.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9116       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.529       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   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      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.4625       1.0000         .10000E-03   10000.    
     8 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2005       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.4559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0523       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85015       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=   6600.859     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2008 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9114        1.7662        .60216E-07   -.11123E-03
   2  Prefactor     30.524        34.500       -.75724E-05    .26286E-04
   3  Prefactor     .10000E-03    13.049       -.10617E-04** at limit **
   4  norm          .10000E-03    4.8802        .38252E-06** at limit **
   5  Prefactor     .10000E-03    11.116       -.74137E-05** at limit **
   6  norm          .10000E-03    1.9793       -.15584E-06** at limit **
   7  norm          6.4625        7.6388       -.10283E-06   -.66707E-04
   8  norm          .10000E-03    15.392        .18819E-05** at limit **
   9  norm          .10000E-03    .39521       -.35493E-06** at limit **
  10  Prefactor     2.2783        1.7251       -.17049E-05   -.46804E-03
  11  Prefactor     67.381        30.994        .19597E-06    .53476E-04
  12  Prefactor     52.766        52.722        .25527E-04    .91164E-04
  13  Prefactor     .10000E-03    5.5334       -.82989E-06** at limit **
  14  Prefactor     .10000E-03    26.523       -.10342E-04** at limit **
  15  norm          5.2004        2.4071       -.57360E-06   -.11898E-03
  16  Prefactor     .10000E-03    17.847        .16832E-04** at limit **
  17  norm          7.4556        2.9108       -.25974E-07   -.23079E-03
  18  Prefactor     .10000E-03    9.9396        .82289E-05** at limit **
  19  Normalizat    1.0525        .21359       -.32040E-05    .22043E-03
  20  Prefactor     .85003        .98713E-01    .34067E-06    .56611E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.91139
  Prefactor  = 30.5237
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.4625
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27826
  Prefactor  = 67.3812
  Prefactor  = 52.7662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.20037
  Prefactor  = 0.0001
  norm       = 7.45559
  Prefactor  = 0.0001
  Normalizat = 1.05255
  Prefactor  = 0.850034
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.859     FROM HESSE     STATUS=OK           283 CALLS     2291 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9114        1.7666        .69679E-04   -1.5312    
   2  Prefactor     30.524        34.524        .72514E-04   -1.4602    
   3  Prefactor     .10000E-03    13.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.8856        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0231        .11160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4625        7.6390        .15787E-03   -1.5199    
   8  norm          .10000E-03    15.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .40946        .99607E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2783        1.7159        .80075E-04   -1.5406    
  11  Prefactor     67.381        30.980        .48896E-04   -1.4064    
  12  Prefactor     52.766        52.873        .55225E-04   -1.4254    
  13  Prefactor     .10000E-03    5.5777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2004        2.4064        .80906E-04   -1.5252    
  16  Prefactor     .10000E-03    17.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4556        2.9114        .82977E-04   -1.5162    
  18  Prefactor     .10000E-03    9.9377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0525        .23981        .33882E-03   -.91290    
  20  Prefactor     .85003        .11129        .17948E-03   -.97910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8938e-10
Minuit parameter uncertainties:
  1  1.76664
  2  34.5462
  3  0.000186618
  4  3.74574e-07
  5  1.36834e-05
  6  1.03704e-05
  7  7.64018
  8  7.86514e-05
  9  1.92063e-05
  10  1.71596
  11  30.9871
  12  52.9204
  13  6.59456e-05
  14  4.48408e-05
  15  2.40645
  16  2.17646e-05
  17  2.91141
  18  2.12353e-06
  19  0.24006
  20  0.111318
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  6.463e+00  7.640e+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:  8.500e-01  1.113e-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:  1.053e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 8.45e-06 +/- 9.99e-06

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

Saving results to:
/scratch/kocevski/397521/likelihoodResults_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.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) = 6600.45430057
delta logL = 0.404442976812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6600.44467668
delta logL = 0.41406686861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4373       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7120       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84539       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=   6600.445     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4382        7.2276        .32224E-05   -.47111E-03
   2  alpha         1.7120        .47698       -.75635E-05   -.23769E-03
   3  Normalizat    1.0654        .20343        .59046E-06   -.49158E-04
   4  Prefactor     .84540        .98480E-01   -.52273E-06    .11814E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.43821
  alpha      = 1.71203
  Normalizat = 1.06543
  Prefactor  = 0.8454
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.445     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4382        7.9224        .14706E-03   -1.5162    
   2  alpha         1.7120        .70398        .18209E-01   -.32065    
   3  Normalizat    1.0654        .22870        .33688E-03   -.90870    
   4  Prefactor     .84540        .11064        .17983E-03   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22964e-09
Minuit parameter uncertainties:
  1  7.92352
  2  0.714741
  3  0.228917
  4  0.11067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397521': 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) = 6600.44467665
delta logL = 0.414066895675

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.438e+00  7.924e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.712e+00  7.147e-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:  8.454e-01  1.107e-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:  1.065e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.71 +/- 0.71
Photon Flux (Free Index): 1.83e-08 +/- 2.25e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.17e-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/397521/cmap_HighResolution_412992001_413251201_4FGL_J0422.1-0644_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='1.65e-05', photon_flux_error='3.37e-08', dlogl='4.14e-01', energy_flux='8.45e-06', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-08-20 13:07:25.347102', photon_index_error2='0.71', photon_index2='1.71', ts='1.16', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='2.17e-05', EG='1.05', time_epoch_completed='1629490045.35', return_code='0', job_id='397521', GAL2='0.85', EG2='1.07', return_code2='0', energy_flux_error='9.99e-06', photon_flux_error2='2.25e-08', ts2='1.99', photon_index='2.45' WHERE bin_id='670' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:07:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 397521: <4FGL_J0422.1-0644_daily_bin670> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin670> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:50:50 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:50:51 2021
Terminated at Fri Aug 20 13:07:27 2021
Results reported at Fri Aug 20 13:07:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin670 65.5343 -6.741 412992001 413251201 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 :                                   863.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

