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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin228
RA = 65.5343, Dec = -6.741
tmin = 298425601, tmax = 298684801
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='394480', job_status='RUN', time_executed='2021-08-20 12:44:50.975345', time_epoch_executed='1629488690.98' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394480

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394480/ft1_4FGL_J0422.1-0644_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394480/ft1_4FGL_J0422.1-0644_daily_bin228.fits outfile=/scratch/kocevski/394480/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin228.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=298425601.0 tmax=298684801.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 4.42
user 3.07
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.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/394480/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.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.66
user 0.31
sys 1.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/394480/ltcube_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.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/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits
.....................!
real 13.10
user 11.47
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/394480/ltcube_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.fits outfile=/scratch/kocevski/394480/expmap_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.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/394480/ltcube_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.fits
.....................!
real 192.06
user 184.99
sys 6.69

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/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.fits scfile=/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits outfile=/scratch/kocevski/394480/cmap_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.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.63
user 0.36
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.fits scfile=/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits outfile=/scratch/kocevski/394480/cmap_HighResolution_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.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.55
user 0.35
sys 1.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/394480/ft2_4FGL_J0422.1-0644_daily_bin228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394480/Model_4FGL_J0422.1-0644_daily_bin228.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/394480/ft1_filtered_4FGL_J0422.1-0644_daily_bin228.fits.....................!
real 101.60
user 98.72
sys 2.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4347       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.744       1.0000         .10000E-03   10000.    
     4 'norm      '    5.3173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9289       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0376       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18267E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3043       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0981       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6948       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88686       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96315       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=   7421.880     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1774 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4348        1.7790        .46584E-08   -.57449E-04
   2  Prefactor     .10000E-03    13.147        .76896E-07** at limit **
   3  Prefactor     14.744        8.3268        .57437E-07   -.27039E-03
   4  norm          5.3082        11.327       -.28975E-05   -.10645E-03
   5  Prefactor     .10000E-03    8.4977        .95700E-08** at limit **
   6  norm          .10000E-03    1.9680        .16333E-07** at limit **
   7  norm          5.9287        4.3665        .33696E-06   -.82629E-03
   8  norm          .10000E-03    11.223       -.64226E-07** at limit **
   9  norm          1.4752        .95468       -.75095E-09   -.62076E-04
  10  Prefactor     2.0369        1.8334        .26331E-08   -.16148E-03
  11  Prefactor     .10000E-03    10.128       -.12368E-06** at limit **
  12  Prefactor     .10000E-03    42.748        .55692E-06** at limit **
  13  Prefactor     .10000E-03    3.1851       -.11241E-07** at limit **
  14  Prefactor     .10000E-03    4.5047        .73057E-08** at limit **
  15  norm          1.2127        1.9596        .34943E-07   -.25957E-03
  16  Prefactor     2.3043        2.6181       -.49288E-08    .39083E-04
  17  norm          3.0982        2.0146       -.92360E-09   -.84095E-04
  18  Prefactor     8.6950        11.189        .73254E-07    .36315E-05
  19  Normalizat    .88694        .17873       -.15219E-06    .52028E-05
  20  Prefactor     .96308        .95753E-01    .77513E-07   -.49814E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4348
  Prefactor  = 0.0001
  Prefactor  = 14.7439
  norm       = 5.30816
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.92874
  norm       = 0.0001
  norm       = 1.47516
  Prefactor  = 2.03695
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21268
  Prefactor  = 2.30433
  norm       = 3.0982
  Prefactor  = 8.69502
  Normalizat = 0.88694
  Prefactor  = 0.963077
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.880     FROM HESSE     STATUS=OK           297 CALLS     2071 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4348        1.7775        .94987E-04   -1.5396    
   2  Prefactor     .10000E-03    13.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.744        8.5910        .52155E-03   -1.4940    
   4  norm          5.3082        11.488        .17429E-03   -1.5247    
   5  Prefactor     .10000E-03    8.5003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9952        .11800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9287        7.3520        .82459E-03   -1.5221    
   8  norm          .10000E-03    11.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4752        .94240        .63152E-04   -1.5465    
  10  Prefactor     2.0369        1.8097        .10196E-03   -1.5423    
  11  Prefactor     .10000E-03    69.789        .52941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2038        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5084        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2127        1.9600        .14630E-03   -1.5488    
  16  Prefactor     2.3043        2.6200        .14502E-03   -1.5404    
  17  norm          3.0982        2.0096        .94354E-04   -1.5356    
  18  Prefactor     8.6950        11.185        .13594E-03   -1.5118    
  19  Normalizat    .88694        .20455        .32404E-03   -.96921    
  20  Prefactor     .96308        .10885        .17158E-03   -.93971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4793e-10
Minuit parameter uncertainties:
  1  1.77754
  2  1.78823e-06
  3  8.59172
  4  11.4932
  5  2.91663e-07
  6  4.86546e-06
  7  7.35316
  8  1.48925e-06
  9  0.942407
  10  1.80974
  11  0.000544523
  12  2.84549e-05
  13  2.54281e-07
  14  6.48867e-08
  15  1.96006
  16  2.62017
  17  2.00968
  18  11.1876
  19  0.204728
  20  0.108877
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  5.929e+00  7.353e+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.631e-01  1.089e-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:  8.869e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394480/likelihoodResults_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.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) = 7420.85132472
delta logL = 1.02824992219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7420.81358446
delta logL = 1.06599017842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6020       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2346       1.0000          .0000       5.0000    
     3 'Normalizat'    .90306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95962       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=   7420.814     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6020        3.9042        .53226E-02    .49375E-02
   2  alpha         1.2345        .42325        .42227       -.38871E-04
   3  Normalizat    .90302        .17115        .72617E-01    .11163E-03
   4  Prefactor     .95964        .94599E-01    .45760E-01    .19747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60199
  alpha      = 1.23454
  Normalizat = 0.903019
  Prefactor  = 0.95964
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.814     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6020        6.6606        .16962E-03   -1.5328    
   2  alpha         1.2345        .81232        .16308E-01   -.53075    
   3  Normalizat    .90302        .19402        .32133E-03   -.96354    
   4  Prefactor     .95964        .10742        .17179E-03   -.94087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61536e-08
Minuit parameter uncertainties:
  1  6.66197
  2  0.832879
  3  0.194171
  4  0.107445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394480': 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) = 7420.81358443
delta logL = 1.06599020805

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.602e+00  6.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.235e+00  8.329e-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.596e-01  1.074e-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.030e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.23 +/- 0.83
Photon Flux (Free Index): 8.33e-09 +/- 1.37e-08
Energy Flux (Free Index): 2.54e-05 +/- 3.74e-05

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/394480/cmap_HighResolution_298425601_298684801_4FGL_J0422.1-0644_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', comment='SUCCESS', energy_flux2='2.54e-05', dlogl='1.07e+00', photon_flux2='8.33e-09', job_status='DONE', time_completed='2021-08-20 12:54:58.954330', photon_index_error2='0.83', photon_index2='1.23', ts='0.98', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='3.74e-05', EG='0.89', time_epoch_completed='1629489298.95', return_code='0', job_id='394480', GAL2='0.96', EG2='0.90', return_code2='0', photon_flux_error2='1.37e-08', ts2='3.10', photon_index='2.45' WHERE bin_id='228' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:54:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 394480: <4FGL_J0422.1-0644_daily_bin228> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin228> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:46 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:48 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:48 2021
Terminated at Fri Aug 20 12:54:59 2021
Results reported at Fri Aug 20 12:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin228 65.5343 -6.741 298425601 298684801 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 :                                   625.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

