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


Performing analysis on: 4FGL_J0442.6-0017_daily_bin356
RA = 70.6612, Dec = -0.2961
tmin = 331603201, tmax = 331862401
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='654022', job_status='RUN', time_executed='2021-08-21 02:56:06.660399', time_epoch_executed='1629539766.66' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654022/ft1_4FGL_J0442.6-0017_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654022/ft1_4FGL_J0442.6-0017_daily_bin356.fits outfile=/scratch/kocevski/654022/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin356.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=331603201.0 tmax=331862401.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 3.53
user 3.06
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.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/654022/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin356.fits evtable="EVENTS" outfile="/scratch/kocevski/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.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 0.74
user 0.33
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/654022/ltcube_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.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/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits
.....................!
real 12.38
user 11.75
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/654022/ltcube_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.fits outfile=/scratch/kocevski/654022/expmap_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.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/654022/ltcube_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.fits
.....................!
real 190.94
user 185.39
sys 5.14

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/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits scfile=/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits outfile=/scratch/kocevski/654022/cmap_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.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 0.80
user 0.39
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits scfile=/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits outfile=/scratch/kocevski/654022/cmap_HighResolution_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.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 0.81
user 0.39
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654022/Model_4FGL_J0442.6-0017_daily_bin356.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/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits.....................!
real 161.49
user 159.60
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits', '/scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits', expMap='/scratch/kocevski/654022/expmap_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.fits', expCube='/scratch/kocevski/654022/ltcube_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654022/Model_4FGL_J0442.6-0017_daily_bin356.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/654022/ft1_filtered_4FGL_J0442.6-0017_daily_bin356.fits
Spacecraft file(s): /scratch/kocevski/654022/ft2_4FGL_J0442.6-0017_daily_bin356.fits
Exposure map: /scratch/kocevski/654022/expmap_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.fits
Exposure cube: /scratch/kocevski/654022/ltcube_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654022/Model_4FGL_J0442.6-0017_daily_bin356.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) = 10924.4806923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.465       1.0000         .10000E-03   10000.    
     2 'norm      '    10.683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9362       1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7273       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7944       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2305       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75403       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    69.985       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.404       1.0000         .10000E-03   10000.    
    24 'norm      '    12.642       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.3801       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67208       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10924.46     FROM MIGRAD    STATUS=CONVERGED     59 CALLS     2892 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.463        1.0178       -.40762E-06    .72826E-03
   2  norm          10.683        1.0018       -.96476E-07    .28064E-03
   3  Prefactor     .10021E-03    4.7621       -.82840E-06** at limit **
   4  norm          2.8198        1.0701        .83664E-07    .28825E-02
   5  Prefactor     1.9285        1.7211       -.72132E-05    .33408E-02
   6  norm          .10000E-03    4.8124        .36284E-05** at limit **
   7  norm          5.7255        1.0283       -.68779E-06    .85028E-03
   8  norm          2.0685        1.0288        .10640E-06   -.80328E-03
   9  Prefactor     1.7942        1.1314       -.11129E-06   -.41951E-03
  10  Prefactor     .10003E-03    6.2740       -.23460E-04** at limit **
  11  Prefactor     75.679        1.0322        .21766E-06   -.48907E-02
  12  Prefactor     .10005E-03    2.8151        .12036E-04** at limit **
  13  norm          .10000E-03    .79296       -.40118E-06** at limit **
  14  Prefactor     8.2273        1.2357       -.18430E-05    .44844E-02
  15  norm          2.7360        1.6556        .51220E-06    .92823E-04
  16  Prefactor     .76649        1.1635        .37746E-05    .12878E-03
  17  norm          2.7414        2.5618        .81970E-05    .13692E-02
  18  Prefactor     .10005E-03    2.7039        .10228E-04** at limit **
  19  norm          2.5555        1.4913       -.49186E-07   -.14651E-04
  20  Prefactor     69.985        1.0037       -.68831E-07    .79000E-03
  21  norm          .10000E-03    .19377       -.44629E-06** at limit **
  22  Prefactor     .10007E-03    9.8013       -.24515E-04** at limit **
  23  norm          15.404        1.1189       -.79002E-06   -.64155E-02
  24  norm          12.639        1.1700       -.12674E-05    .45124E-02
  25  Prefactor     .10002E-03    4.1158        .21362E-04** at limit **
  26  Prefactor     3.3799        1.0151        .51725E-07    .30399E-03
  27  Normalizat    .67191        .19288        .21032E-05   -.51073E-05
  28  Prefactor     1.0278        .82112E-01   -.16364E-05   -.31267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4631
  norm       = 10.6832
  Prefactor  = 0.000100208
  norm       = 2.81977
  Prefactor  = 1.92851
  norm       = 0.0001
  norm       = 5.72545
  norm       = 2.06853
  Prefactor  = 1.7942
  Prefactor  = 0.000100034
  Prefactor  = 75.679
  Prefactor  = 0.000100047
  norm       = 0.0001
  Prefactor  = 8.2273
  norm       = 2.73602
  Prefactor  = 0.766488
  norm       = 2.74143
  Prefactor  = 0.000100052
  norm       = 2.55552
  Prefactor  = 69.9851
  norm       = 0.0001
  Prefactor  = 0.00010007
  norm       = 15.4037
  norm       = 12.6395
  Prefactor  = 0.00010002
  Prefactor  = 3.37993
  Normalizat = 0.671907
  Prefactor  = 1.02778
 **********
 **   18 **HESSE 
 **********

 FCN=   10924.46     FROM HESSE     STATUS=OK           599 CALLS     3491 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.463        12.413        .30964E-02   -1.5061    
   2  norm          10.683        11.480        .30645E-02   -1.5054    
   3  Prefactor     .10021E-03    12.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8198        3.3044        .60560E-02   -1.5372    
   5  Prefactor     1.9285        43.313        .74605E-02   -1.5430    
   6  norm          .10000E-03    4.7627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7255        13.320        .41959E-02   -1.5229    
   8  norm          2.0685        1.0864        .71813E-02   -1.5420    
   9  Prefactor     1.7942        1.1562        .78044E-02   -1.5440    
  10  Prefactor     .10003E-03    7.0137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     75.679        39.023        .11539E-02   -1.3966    
  12  Prefactor     .10005E-03    8.2048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .50052        .40003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2273        33.567        .34936E-02   -1.5134    
  15  norm          2.7360        1.6681        .61542E-02   -1.5377    
  16  Prefactor     .76649        2.8940        .91367E-01   -1.5533    
  17  norm          2.7414        2.6258        .61465E-02   -1.5377    
  18  Prefactor     .10005E-03    8.3327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5555        1.4973        .63849E-02   -1.5388    
  20  Prefactor     69.985        30.548        .11996E-02   -1.4033    
  21  norm          .10000E-03    .16449        .19669E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10007E-03    14.185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.404        4.5292        .25512E-02   -1.4923    
  24  norm          12.639        25.714        .28164E-02   -1.4997    
  25  Prefactor     .10002E-03    9.7481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.3799        4.6871        .55021E-02   -1.5340    
  27  Normalizat    .67191        .18490        .99917E-01   -1.0501    
  28  Prefactor     1.0278        .77370E-01    .41444E-01   -.91809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86996e-07
Minuit parameter uncertainties:
  1  12.4157
  2  11.4822
  3  0.00322925
  4  3.30457
  5  18.2933
  6  4.11945e-05
  7  13.3274
  8  1.0864
  9  1.15622
  10  0.000982452
  11  39.0361
  12  0.00123632
  13  1.60396e-06
  14  33.2684
  15  1.66814
  16  2.8945
  17  2.62589
  18  0.00131759
  19  1.49733
  20  30.5549
  21  2.36954e-06
  22  0.0019935
  23  4.52934
  24  25.7368
  25  0.000873898
  26  4.68764
  27  0.185071
  28  0.0773788
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  2.736e+00  1.668e+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

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.028e+00  7.738e-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:  6.719e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.07
Ra Dec: 70.661 -0.296
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 5.71e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.08e-05

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) = 10924.4275562
delta logL = 0.0369168492489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10924.4243471
delta logL = 0.0401259567261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6092       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1970       1.0000          .0000       5.0000    
     3 'Normalizat'    .68174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0255       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.

 FCN=   10924.42     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6092        1.8860        .63134E-02   -.17547E-02
   2  alpha         2.1969        .51555        .41540       -.37015E-04
   3  Normalizat    .68173        .17464        .99260E-01    .31488E-03
   4  Prefactor     1.0255        .74700E-01    .41627E-01    .82302E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60923
  alpha      = 2.19694
  Normalizat = 0.681734
  Prefactor  = 1.02554
 **********
 **   18 **HESSE 
 **********

 FCN=   10924.42     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6092        1.7356        .10166E-03   -1.5385    
   2  alpha         2.1969        .56172        .18281E-01   -.12152    
   3  Normalizat    .68173        .19111        .43997E-03   -1.0462    
   4  Prefactor     1.0255        .81336E-01    .15701E-03   -.91883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58945e-09
Minuit parameter uncertainties:
  1  1.73561
  2  0.566631
  3  0.191292
  4  0.0813458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654022': 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) = 10924.4243471
delta logL = 0.0401259730479

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  2.609e+00  1.736e+00  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.197e+00  5.666e-01  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.026e+00  8.135e-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:  6.817e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 70.661 -0.296
Photon Index (Free Index): 2.20 +/- 0.57
Photon Flux (Free Index): 4.88e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.18e-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/654022/cmap_HighResolution_331603201_331862401_4FGL_J0442.6-0017_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.71e-08', energy_flux2='1.83e-05', photon_flux_error='3.48e-08', dlogl='4.01e-02', energy_flux='1.77e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-08-21 03:10:41.753942', photon_index_error2='0.57', photon_index2='2.20', ts='6.07', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.67', time_epoch_completed='1629540641.75', return_code='0', job_id='654022', GAL2='1.03', EG2='0.68', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.15e-08', ts2='6.13', photon_index='2.36' WHERE bin_id='356' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:10:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 654022: <4FGL_J0442.6-0017_daily_bin356> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin356> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 02:55:46 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:55:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 02:55:48 2021
Terminated at Sat Aug 21 03:10:42 2021
Results reported at Sat Aug 21 03:10:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin356 70.6612 -0.2961 331603201 331862401 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 :                                   871.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

