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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin445
RA = 65.5343, Dec = -6.741
tmin = 354672001, tmax = 354931201
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='395976', job_status='RUN', time_executed='2021-08-20 12:48:57.837218', time_epoch_executed='1629488937.84' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395976/ft1_4FGL_J0422.1-0644_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395976/ft1_4FGL_J0422.1-0644_daily_bin445.fits outfile=/scratch/kocevski/395976/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin445.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=354672001.0 tmax=354931201.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.05
user 3.16
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.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/395976/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin445.fits evtable="EVENTS" outfile="/scratch/kocevski/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.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.20
user 0.32
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/395976/ltcube_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.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/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits
.....................!
real 12.68
user 11.53
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/395976/ltcube_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.fits outfile=/scratch/kocevski/395976/expmap_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.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/395976/ltcube_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.fits
.....................!
real 193.17
user 187.39
sys 5.41

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/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.fits scfile=/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits outfile=/scratch/kocevski/395976/cmap_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.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.25
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.fits scfile=/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits outfile=/scratch/kocevski/395976/cmap_HighResolution_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.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.25
user 0.38
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/395976/ft2_4FGL_J0422.1-0644_daily_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395976/Model_4FGL_J0422.1-0644_daily_bin445.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/395976/ft1_filtered_4FGL_J0422.1-0644_daily_bin445.fits.....................!
real 120.71
user 118.32
sys 2.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1924       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1095       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.616       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8037       1.0000         .10000E-03   10000.    
     7 'norm      '    7.7698       1.0000         .10000E-03   10000.    
     8 'norm      '    9.8061       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75477E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .70942       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6048       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7832       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.921       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0308       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89454       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=   9107.666     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2075 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1924        1.7979        .38160E-07   -.55392E-04
   2  Prefactor     .10000E-03    32.903       -.62992E-07** at limit **
   3  Prefactor     3.1108        5.2844        .15551E-06   -.16297E-03
   4  norm          .10000E-03    5.2575       -.27980E-07** at limit **
   5  Prefactor     24.615        18.505        .31646E-06    .69695E-04
   6  norm          5.8040        4.4798        .24709E-08   -.16019E-03
   7  norm          7.7703        6.3763       -.75273E-08   -.39428E-04
   8  norm          9.7920        17.905        .38500E-05    .24841E-03
   9  norm          2.3557        1.0768       -.62228E-07   -.51863E-03
  10  Prefactor     .10000E-03    .31590        .57460E-07** at limit **
  11  Prefactor     .10001E-03    153.88        .13451E-05** at limit **
  12  Prefactor     6.9980        31.479       -.11611E-05   -.27980E-04
  13  Prefactor     .71103        5.5252        .38384E-05   -.24569E-03
  14  Prefactor     12.567        20.273       -.39219E-06   -.66503E-04
  15  norm          3.6049        1.8633       -.12040E-07   -.19422E-03
  16  Prefactor     3.7832        4.0671       -.64349E-07   -.19828E-03
  17  norm          1.6410        1.6189        .16521E-06   -.11673E-03
  18  Prefactor     12.921        14.276        .19775E-08   -.79746E-05
  19  Normalizat    1.0308        .16434        .34075E-06   -.16872E-03
  20  Prefactor     .89455        .88444E-01   -.80091E-06   -.10838E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.19244
  Prefactor  = 0.0001
  Prefactor  = 3.11077
  norm       = 0.0001
  Prefactor  = 24.6154
  norm       = 5.80401
  norm       = 7.77032
  norm       = 9.79196
  norm       = 2.35573
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 6.99796
  Prefactor  = 0.711026
  Prefactor  = 12.5669
  norm       = 3.60494
  Prefactor  = 3.7832
  norm       = 1.64096
  Prefactor  = 12.9214
  Normalizat = 1.03077
  Prefactor  = 0.894553
 **********
 **   18 **HESSE 
 **********

 FCN=   9107.666     FROM HESSE     STATUS=OK           301 CALLS     2376 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1924        1.7975        .80757E-04   -1.5298    
   2  Prefactor     .10000E-03    33.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1108        5.3374        .22995E-03   -1.5355    
   4  norm          .10000E-03    5.2622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.615        18.510        .80737E-04   -1.4715    
   6  norm          5.8040        4.4717        .16537E-03   -1.5226    
   7  norm          7.7703        6.3826        .14386E-03   -1.5150    
   8  norm          9.7920        18.854        .12797E-03   -1.5082    
   9  norm          2.3557        1.0712        .59684E-04   -1.5401    
  10  Prefactor     .10000E-03    .31637        .52216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    161.82        .37152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9980        31.198        .15141E-03   -1.5179    
  13  Prefactor     .71103        6.0016        .44539E-03   -1.5539    
  14  Prefactor     12.567        20.379        .11301E-03   -1.4999    
  15  norm          3.6049        1.8587        .89160E-04   -1.5328    
  16  Prefactor     3.7832        4.0742        .19474E-03   -1.5319    
  17  norm          1.6410        1.6042        .11509E-03   -1.5452    
  18  Prefactor     12.921        14.259        .11143E-03   -1.4989    
  19  Normalizat    1.0308        .18561        .30025E-03   -.92007    
  20  Prefactor     .89455        .99360E-01    .18001E-03   -.96332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02371e-10
Minuit parameter uncertainties:
  1  1.79754
  2  1.76963e-05
  3  5.33824
  4  3.28064e-07
  5  18.5143
  6  4.47191
  7  6.38318
  8  18.8653
  9  1.07118
  10  1.06077e-06
  11  0.00216463
  12  29.577
  13  4.13175
  14  20.3906
  15  1.85875
  16  4.07445
  17  1.60421
  18  14.2629
  19  0.185724
  20  0.0993801
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.770e+00  6.383e+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.946e-01  9.938e-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:  1.031e+00  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 8.35e-06

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

Saving results to:
/scratch/kocevski/395976/likelihoodResults_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.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) = 9107.65314334
delta logL = 0.0124462613185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9107.65184191
delta logL = 0.0137476886612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5144       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5821       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89608       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9107.652     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5147        6.5280        .14630E-03   -.61451E-03
   2  alpha         2.5819        .83608        .22980E-01   -.63459E-04
   3  Normalizat    1.0258        .17515        .15044E-02    .70432E-04
   4  Prefactor     .89608        .97331E-01    .17987E-03    .13963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.51473
  alpha      = 2.5819
  Normalizat = 1.02584
  Prefactor  = 0.896081
 **********
 **   18 **HESSE 
 **********

 FCN=   9107.652     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5147        6.3575        .58520E-05   -1.5160    
   2  alpha         2.5819        .81433        .91922E-03    .32764E-01
   3  Normalizat    1.0258        .17538        .60175E-04   -.92170    
   4  Prefactor     .89608        .97454E-01    .35975E-04   -.96278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3018e-10
Minuit parameter uncertainties:
  1  6.35809
  2  0.829477
  3  0.175475
  4  0.0974729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395976': 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) = 9107.65184181
delta logL = 0.0137477911285

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.515e+00  6.358e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.582e+00  8.295e-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.961e-01  9.747e-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:  1.026e+00  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.58 +/- 0.83
Photon Flux (Free Index): 3.83e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.01e-05 +/- 8.04e-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/395976/cmap_HighResolution_354672001_354931201_4FGL_J0422.1-0644_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.01e-05', photon_flux_error='2.82e-08', dlogl='1.37e-02', energy_flux='1.02e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-08-20 13:00:43.337787', photon_index_error2='0.83', photon_index2='2.58', ts='3.05', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.90e-08', energy_flux_error2='8.04e-06', EG='1.03', time_epoch_completed='1629489643.34', return_code='0', job_id='395976', GAL2='0.90', EG2='1.03', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='3.83e-08', ts2='3.08', photon_index='2.45' WHERE bin_id='445' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 395976: <4FGL_J0422.1-0644_daily_bin445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin445 65.5343 -6.741 354672001 354931201 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 :                                   713.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             286.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

