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


Performing analysis on: 4FGL_J0442.6-0017_daily_bin1013
RA = 70.6612, Dec = -0.2961
tmin = 501897601, tmax = 502156801
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='658816', job_status='RUN', time_executed='2021-08-21 03:13:25.468680', time_epoch_executed='1629540805.47' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658816/ft1_4FGL_J0442.6-0017_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658816/ft1_4FGL_J0442.6-0017_daily_bin1013.fits outfile=/scratch/kocevski/658816/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin1013.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=501897601.0 tmax=502156801.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.45
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.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/658816/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/658816/ltcube_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.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/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits
.....................!
real 11.81
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/658816/ltcube_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.fits outfile=/scratch/kocevski/658816/expmap_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.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/658816/ltcube_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.fits
.....................!
real 190.80
user 186.08
sys 4.42

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/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.fits scfile=/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits outfile=/scratch/kocevski/658816/cmap_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.fits scfile=/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits outfile=/scratch/kocevski/658816/cmap_HighResolution_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/658816/ft2_4FGL_J0442.6-0017_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658816/Model_4FGL_J0442.6-0017_daily_bin1013.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/658816/ft1_filtered_4FGL_J0442.6-0017_daily_bin1013.fits.....................!
real 140.50
user 139.11
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.272       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8514       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4585       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12204E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.450       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5052       1.0000         .10000E-03   10000.    
     8 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3233       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1794       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33263E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2191       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.0000       1.0000         .10000E-03   10000.    
    24 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.3324       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .55310       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0948       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=   9483.663     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3123 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.270        18.005       -.12345E-06    .21941E-04
   2  norm          .10000E-03    16.479       -.16300E-06** at limit **
   3  Prefactor     1.8706        126.20       -.17650E-04   -.12233E-03
   4  norm          1.4600        4.1129        .15988E-05   -.83955E-04
   5  Prefactor     .10001E-03    85.809       -.45537E-05** at limit **
   6  norm          20.451        11.184        .13667E-07   -.43763E-04
   7  norm          3.5085        26.038        .19540E-05    .10204E-03
   8  norm          .10000E-03    .40115       -.18186E-06** at limit **
   9  Prefactor     2.3238        1.4175        .64704E-07    .53303E-03
  10  Prefactor     10.599        22.861       -.17869E-06    .13642E-03
  11  Prefactor     .10000E-03    12.172        .32215E-07** at limit **
  12  Prefactor     .10000E-03    2.3403       -.14836E-07** at limit **
  13  norm          .10000E-03    1.2249       -.25474E-06** at limit **
  14  Prefactor     .10000E-03    44.604       -.15121E-05** at limit **
  15  norm          5.0850        2.4742        .67880E-07    .83160E-04
  16  Prefactor     6.1790        7.0803        .32153E-05   -.55952E-03
  17  norm          4.6650        3.2046       -.17448E-06    .26437E-04
  18  Prefactor     .10000E-03    14.406       -.14994E-07** at limit **
  19  norm          .10000E-03    .66469        .11704E-06** at limit **
  20  Prefactor     .10751E-03    25.080       -.19236E-05** at limit **
  21  norm          2.2183        .86299        .44363E-08    .16348E-02
  22  Prefactor     .10000E-03    48.103        .22065E-05** at limit **
  23  norm          6.0001        4.2002        .82846E-07    .27431E-03
  24  norm          .10000E-03    89.263        .41711E-05** at limit **
  25  Prefactor     .10000E-03    23.733        .24693E-06** at limit **
  26  Prefactor     5.3322        4.8546        .11358E-06   -.52485E-06
  27  Normalizat    .55290        .22789       -.20551E-05    .13328E-03
  28  Prefactor     1.0948        .89080E-01    .23637E-06    .40900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2695
  norm       = 0.0001
  Prefactor  = 1.87062
  norm       = 1.45997
  Prefactor  = 0.000100005
  norm       = 20.4511
  norm       = 3.50855
  norm       = 0.0001
  Prefactor  = 2.32379
  Prefactor  = 10.5993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.08504
  Prefactor  = 6.17896
  norm       = 4.66498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000107508
  norm       = 2.21826
  Prefactor  = 0.000100001
  norm       = 6.00012
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.33216
  Normalizat = 0.552901
  Prefactor  = 1.09478
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.663     FROM HESSE     STATUS=OK           535 CALLS     3658 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.270        17.991        .10249E-03   -1.4926    
   2  norm          .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8706        147.03        .30640E-03   -1.5434    
   4  norm          1.4600        4.0660        .31337E-03   -1.5466    
   5  Prefactor     .10001E-03    88.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.451        11.145        .88571E-04   -1.4803    
   7  norm          3.5085        25.922        .21594E-03   -1.5333    
   8  norm          .10000E-03    .61237        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3238        1.4012        .84656E-04   -1.5403    
  10  Prefactor     10.599        20.756        .12296E-03   -1.5057    
  11  Prefactor     .10000E-03    12.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3470        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8441        .18719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0850        2.4650        .99617E-04   -1.5257    
  16  Prefactor     6.1790        7.3800        .80748E-03   -1.5211    
  17  norm          4.6650        3.2009        .13650E-03   -1.5276    
  18  Prefactor     .10000E-03    14.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6097        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10751E-03    26.289        .12178       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2183        .87052        .46702E-04   -1.5410    
  22  Prefactor     .10000E-03    48.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.0001        4.2248        .14895E-03   -1.5218    
  24  norm          .10000E-03    91.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.3322        4.8530        .17404E-03   -1.5246    
  27  Normalizat    .55290        .23177        .50058E-03   -1.1002    
  28  Prefactor     1.0948        .94617E-01    .15488E-03   -.89634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10261e-09
Minuit parameter uncertainties:
  1  17.9974
  2  3.12262e-05
  3  33.2525
  4  4.06678
  5  0.0013691
  6  11.1466
  7  19.0848
  8  1.06198e-05
  9  1.40126
  10  20.77
  11  1.26148e-05
  12  3.33429e-07
  13  4.68379e-06
  14  0.000386377
  15  2.46504
  16  7.38106
  17  3.20099
  18  1.53387e-06
  19  8.78813e-05
  20  0.02811
  21  0.870526
  22  0.000396833
  23  4.22503
  24  0.00108929
  25  2.44527e-05
  26  4.85335
  27  0.232177
  28  0.0946315
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  5.085e+00  2.465e+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.095e+00  9.463e-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:  5.529e-01  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.23
Ra Dec: 70.661 -0.296
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.14e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.60e-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) = 9483.41893773
delta logL = 0.243812209155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9483.41031423
delta logL = 0.252435710563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9728       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0422       1.0000          .0000       5.0000    
     3 'Normalizat'    .58293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0865       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=   9483.410     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9728        2.6383        .45086E-02   -.43890E-02
   2  alpha         2.0423        .36891        .34932       -.46880E-04
   3  Normalizat    .58290        .20524        .11004       -.38048E-03
   4  Prefactor     1.0865        .86285E-01    .38124E-01   -.16036E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.97282
  alpha      = 2.04231
  Normalizat = 0.582899
  Prefactor  = 1.0865
 **********
 **   18 **HESSE 
 **********

 FCN=   9483.410     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9728        2.5379        .10090E-03   -1.5262    
   2  alpha         2.0423        .42075        .13013E-01   -.18412    
   3  Normalizat    .58290        .21975        .48800E-03   -1.0872    
   4  Prefactor     1.0865        .91869E-01    .15537E-03   -.89899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93976e-09
Minuit parameter uncertainties:
  1  2.53796
  2  0.422836
  3  0.220077
  4  0.0918822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658816': 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) = 9483.41031419
delta logL = 0.25243575131

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  4.973e+00  2.538e+00  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.042e+00  4.228e-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.086e+00  9.188e-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:  5.829e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.60
Ra Dec: 70.661 -0.296
Photon Index (Free Index): 2.04 +/- 0.42
Photon Flux (Free Index): 8.52e-08 +/- 5.21e-08
Energy Flux (Free Index): 3.98e-05 +/- 2.28e-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/658816/cmap_HighResolution_501897601_502156801_4FGL_J0442.6-0017_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='3.98e-05', photon_flux_error='5.14e-08', dlogl='2.52e-01', energy_flux='3.30e-05', photon_flux2='8.52e-08', job_status='DONE', time_completed='2021-08-21 03:26:41.355353', photon_index_error2='0.42', photon_index2='2.04', ts='7.23', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='0.55', time_epoch_completed='1629541601.36', return_code='0', job_id='658816', GAL2='1.09', EG2='0.58', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.21e-08', ts2='7.60', photon_index='2.36' WHERE bin_id='1013' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 658816: <4FGL_J0442.6-0017_daily_bin1013> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin1013> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 03:10:51 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 03:10:53 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:10:53 2021
Terminated at Sat Aug 21 03:26:42 2021
Results reported at Sat Aug 21 03:26:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin1013 70.6612 -0.2961 501897601 502156801 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 :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

