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


Performing analysis on: 4FGL_J0442.6-0017_daily_bin653
RA = 70.6612, Dec = -0.2961
tmin = 408585601, tmax = 408844801
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='656891', job_status='RUN', time_executed='2021-08-21 03:05:57.719518', time_epoch_executed='1629540357.72' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656891/ft1_4FGL_J0442.6-0017_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656891/ft1_4FGL_J0442.6-0017_daily_bin653.fits outfile=/scratch/kocevski/656891/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin653.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=408585601.0 tmax=408844801.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 9.17
user 4.07
sys 0.95

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.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/656891/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.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.26
user 0.35
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/656891/ltcube_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.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/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits
.....................!
real 14.19
user 12.68
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/656891/ltcube_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.fits outfile=/scratch/kocevski/656891/expmap_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.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/656891/ltcube_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.fits
.....................!
real 192.10
user 186.21
sys 5.27

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 146 point sources and 0 extended sources

Setting source of interest to:
4FGL J0442.6-0017 @ 70.6612 -0.2961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits scfile=/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits outfile=/scratch/kocevski/656891/cmap_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.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=70.6612 yref=-0.2961 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.26
user 0.37
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits scfile=/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits outfile=/scratch/kocevski/656891/cmap_HighResolution_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.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=70.6612 yref=-0.2961 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.32
user 0.37
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656891/Model_4FGL_J0442.6-0017_daily_bin653.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/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits.....................!
real 152.21
user 149.56
sys 2.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits', '/scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits', expMap='/scratch/kocevski/656891/expmap_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.fits', expCube='/scratch/kocevski/656891/ltcube_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/656891/Model_4FGL_J0442.6-0017_daily_bin653.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0442.6-0017'

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  4.025e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.359e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
201         beta:  6.686e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
202           Eb:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/656891/ft1_filtered_4FGL_J0442.6-0017_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/656891/ft2_4FGL_J0442.6-0017_daily_bin653.fits
Exposure map: /scratch/kocevski/656891/expmap_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.fits
Exposure cube: /scratch/kocevski/656891/ltcube_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/656891/Model_4FGL_J0442.6-0017_daily_bin653.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) = 9250.39101333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7290       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.384       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0972       1.0000         .10000E-03   10000.    
     7 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .70612       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.354       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8791       1.0000         .10000E-03   10000.    
    13 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91965E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4578       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.183       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85617E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8206       1.0000         .10000E-03   10000.    
    24 'norm      '    3.0008       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7457       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83346       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9250.374     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3572 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8099       -.43264E-07** at limit **
   2  norm          .10000E-03    23.618        .39891E-06** at limit **
   3  Prefactor     8.7315        18.900        .66737E-06    .46322E-04
   4  norm          .10000E-03    1.6639        .11462E-06** at limit **
   5  Prefactor     19.385        28.431       -.67792E-07   -.64165E-04
   6  norm          2.0972        3.4187        .17239E-06    .11151E-03
   7  norm          .10000E-03    61.404       -.25301E-05** at limit **
   8  norm          .70436        .86726       -.12490E-05   -.11420E-02
   9  Prefactor     .10000E-03    .68095       -.28691E-06** at limit **
  10  Prefactor     .10000E-03    8.7069       -.93554E-08** at limit **
  11  Prefactor     53.397        48.605        .14373E-05    .56104E-04
  12  Prefactor     6.8805        9.6571        .10245E-05    .28827E-03
  13  norm          .10000E-03    1.2253       -.71379E-07** at limit **
  14  Prefactor     .10000E-03    271.58        .18832E-04** at limit **
  15  norm          .10000E-03    .57985       -.97277E-07** at limit **
  16  Prefactor     1.4565        7.2375        .50218E-05    .48320E-03
  17  norm          3.2591        3.4806       -.26309E-06   -.31101E-03
  18  Prefactor     .10000E-03    14.178       -.98139E-07** at limit **
  19  norm          .10000E-03    1.0235       -.25701E-06** at limit **
  20  Prefactor     16.182        23.696       -.58882E-06    .15941E-04
  21  norm          .10000E-03    .13526       -.21561E-08** at limit **
  22  Prefactor     .10152E-03    22.441       -.64827E-05** at limit **
  23  norm          2.8205        2.1188       -.16194E-07    .16674E-04
  24  norm          3.0126        51.242       -.14548E-05    .76866E-04
  25  Prefactor     5.7476        41.732       -.44719E-06    .16741E-04
  26  Prefactor     .10000E-03    2.7363       -.19147E-07** at limit **
  27  Normalizat    .83369        .21307        .12070E-05    .46260E-03
  28  Prefactor     1.1106        .87301E-01   -.11652E-06    .61017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73152
  norm       = 0.0001
  Prefactor  = 19.3852
  norm       = 2.09718
  norm       = 0.000100001
  norm       = 0.704361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.3971
  Prefactor  = 6.8805
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.45647
  norm       = 3.25905
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 16.182
  norm       = 0.0001
  Prefactor  = 0.000101523
  norm       = 2.82053
  norm       = 3.01257
  Prefactor  = 5.7476
  Prefactor  = 0.0001
  Normalizat = 0.833688
  Prefactor  = 1.11064
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.374     FROM HESSE     STATUS=OK           525 CALLS     4097 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    24.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7315        18.898        .13567E-03   -1.5117    
   4  norm          .10000E-03    1.6767        .12114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.385        28.441        .90972E-04   -1.4827    
   6  norm          2.0972        3.3936        .22069E-03   -1.5418    
   7  norm          .10000E-03    62.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70436        .86313        .10511E-02   -1.5540    
   9  Prefactor     .10000E-03    .68796        .77142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.397        48.885        .54911E-04   -1.4245    
  12  Prefactor     6.8805        9.6701        .15297E-03   -1.5183    
  13  norm          .10000E-03    2.4733        .20568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    272.59        .41633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .58587        .71466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4565        7.5500        .17825E-02   -1.5467    
  17  norm          3.2591        3.4836        .17737E-03   -1.5347    
  18  Prefactor     .10000E-03    14.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9832        .18238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.182        23.592        .99561E-04   -1.4903    
  21  norm          .10000E-03    .13850        .68769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10152E-03    110.91        .71169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8205        2.1189        .11748E-03   -1.5372    
  24  norm          3.0126        49.822        .23432E-03   -1.5361    
  25  Prefactor     5.7476        41.757        .16756E-03   -1.5228    
  26  Prefactor     .10000E-03    2.7506        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .83369        .22756        .41428E-03   -.98831    
  28  Prefactor     1.1106        .96850E-01    .15778E-03   -.89127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52217e-08
Minuit parameter uncertainties:
  1  3.5091e-06
  2  6.54156e-05
  3  18.9114
  4  5.65695e-06
  5  28.4611
  6  3.39396
  7  0.000486677
  8  0.863146
  9  2.68256e-05
  10  4.21534e-06
  11  48.9213
  12  9.67231
  13  6.43997e-05
  14  0.000392769
  15  4.21518e-06
  16  6.63322
  17  3.48383
  18  1.96191e-05
  19  7.6178e-05
  20  23.6058
  21  5.9101e-07
  22  0.0260431
  23  2.11894
  24  24.5261
  25  31.0144
  26  1.20484e-06
  27  0.227819
  28  0.0968657
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  1.000e-04  4.215e-06  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.359e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
201         beta:  6.686e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
202           Eb:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.111e+00  9.687e-02  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
481   Normalization:  8.337e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 70.661 -0.296
Photon Flux Upper Limit: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656891/likelihoodResults_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.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) = 9250.38206965
delta logL = -0.00803928381174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9250.37402848
delta logL = 1.88443846127e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4944       1.0000          .0000       5.0000    
     3 'Normalizat'    .83368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+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=   9250.374     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      265 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79333        .72628E-03** at limit **
   2  alpha         2.6966        3.5142        .16461       -.80945E-07
   3  Normalizat    .83368        .21215        .41428E-03   -.40147E-03
   4  Prefactor     1.1106        .92746E-01    .15778E-03   -.11043E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.69658
  Normalizat = 0.833682
  Prefactor  = 1.11064
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.374     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .61796        .14526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6966        2.7108        .65843E-02    .78713E-01
   3  Normalizat    .83368        .21223        .16571E-04   -.98831    
   4  Prefactor     1.1106        .92782E-01    .31555E-04   -.89127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90993e-10
Minuit parameter uncertainties:
  1  5.01117e-06
  2  117.417
  3  0.212442
  4  0.0927956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656891': 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) = 9250.37402594
delta logL = 4.42508098786e-06

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  1.000e-04  5.011e-06  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.697e+00  1.174e+02  0.000e+00  5.000e+00 ( 1.000e+00)
201         beta:  6.686e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
202           Eb:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.111e+00  9.280e-02  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
481   Normalization:  8.337e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 70.661 -0.296

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/656891/cmap_HighResolution_408585601_408844801_4FGL_J0442.6-0017_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-08-21 03:22:07.617816', job_id='656891', GAL2='1.11', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629541327.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='653' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 656891: <4FGL_J0442.6-0017_daily_bin653> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin653> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 03:05:35 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 03:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 03:05:37 2021
Terminated at Sat Aug 21 03:22:08 2021
Results reported at Sat Aug 21 03:22:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin653 70.6612 -0.2961 408585601 408844801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0442.6-0017 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   971.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

