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


Performing analysis on: 4FGL_J0442.6-0017_daily_bin719
RA = 70.6612, Dec = -0.2961
tmin = 425692801, tmax = 425952001
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='657009', job_status='RUN', time_executed='2021-08-21 03:06:43.823372', time_epoch_executed='1629540403.82' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657009/ft1_4FGL_J0442.6-0017_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657009/ft1_4FGL_J0442.6-0017_daily_bin719.fits outfile=/scratch/kocevski/657009/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin719.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=425692801.0 tmax=425952001.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 6.27
user 3.31
sys 2.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657009/ft1_filtered_4FGL_J0442.6-0017_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/657009/ltcube_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.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/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits
.....................!
real 15.44
user 11.85
sys 3.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657009/ft1_filtered_4FGL_J0442.6-0017_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/657009/ltcube_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.fits outfile=/scratch/kocevski/657009/expmap_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.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/657009/ltcube_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.fits
.....................!
real 194.29
user 185.92
sys 7.77

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/657009/ft1_filtered_4FGL_J0442.6-0017_daily_bin719.fits scfile=/scratch/kocevski/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits outfile=/scratch/kocevski/657009/cmap_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.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 3.18
user 0.38
sys 2.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657009/ft1_filtered_4FGL_J0442.6-0017_daily_bin719.fits scfile=/scratch/kocevski/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits outfile=/scratch/kocevski/657009/cmap_HighResolution_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.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 3.19
user 0.38
sys 2.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657009/ft1_filtered_4FGL_J0442.6-0017_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/657009/ft2_4FGL_J0442.6-0017_daily_bin719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657009/Model_4FGL_J0442.6-0017_daily_bin719.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/657009/ft1_filtered_4FGL_J0442.6-0017_daily_bin719.fits.....................!
real 137.31
user 132.26
sys 4.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.421       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2549       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.5467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.206       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.911       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4167       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18726E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5035       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.796       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    44.731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.5709       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6035       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95700       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0296       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=   8095.638     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3631 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.420        23.287        .36268E-06   -.13822E-03
   2  norm          .10000E-03    8.1761       -.45964E-06** at limit **
   3  Prefactor     .10000E-03    8.5967        .94533E-07** at limit **
   4  norm          8.8469        5.5541       -.65713E-06    .96060E-03
   5  Prefactor     8.2583        24.339       -.13637E-05    .75455E-04
   6  norm          .10000E-03    2.3843        .49404E-07** at limit **
   7  norm          .10000E-03    25.680       -.39581E-06** at limit **
   8  norm          .10000E-03    .37312        .21126E-07** at limit **
   9  Prefactor     .10000E-03    .66664        .17199E-07** at limit **
  10  Prefactor     18.438        25.663        .16510E-05   -.19658E-03
  11  Prefactor     .10000E-03    16.731       -.67689E-06** at limit **
  12  Prefactor     .10000E-03    4.7815        .43762E-07** at limit **
  13  norm          9.5477        4.0082       -.19504E-06    .16892E-03
  14  Prefactor     52.203        41.208       -.11567E-05    .18097E-03
  15  norm          1.0393        2.4438       -.15189E-06    .12652E-03
  16  Prefactor     .10000E-03    2.6512       -.90136E-07** at limit **
  17  norm          2.7093        2.4730        .15628E-07   -.35131E-03
  18  Prefactor     10.905        31.563        .76237E-05    .83743E-04
  19  norm          1.4165        2.1213       -.20811E-07    .96956E-04
  20  Prefactor     .10011E-03    30.053       -.58844E-05** at limit **
  21  norm          1.5037        .80257        .18370E-06    .25994E-02
  22  Prefactor     18.799        31.207       -.38713E-09    .32708E-04
  23  norm          .10000E-03    1.9837       -.29245E-06** at limit **
  24  norm          44.729        38.514       -.92232E-06    .14476E-03
  25  Prefactor     6.5769        42.904        .11320E-05   -.27545E-04
  26  Prefactor     1.6045        2.2195        .28011E-07   -.37165E-03
  27  Normalizat    .95710        .24529        .12221E-06    .22117E-03
  28  Prefactor     1.0296        .95016E-01    .62200E-08    .41410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4197
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84686
  Prefactor  = 8.25833
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.54771
  Prefactor  = 52.203
  norm       = 1.0393
  Prefactor  = 0.0001
  norm       = 2.70933
  Prefactor  = 10.9051
  norm       = 1.41654
  Prefactor  = 0.000100114
  norm       = 1.50366
  Prefactor  = 18.7988
  norm       = 0.0001
  norm       = 44.729
  Prefactor  = 6.57692
  Prefactor  = 1.60449
  Normalizat = 0.957096
  Prefactor  = 1.0296
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.638     FROM HESSE     STATUS=OK           525 CALLS     4156 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.420        23.249        .58228E-04   -1.4330    
   2  norm          .10000E-03    8.1691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8469        5.4345        .13476E-03   -1.5113    
   5  Prefactor     8.2583        24.273        .13954E-03   -1.5133    
   6  norm          .10000E-03    2.3869        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    25.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .49951        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8872        .14010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.438        25.395        .93260E-04   -1.4849    
  11  Prefactor     .10000E-03    16.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.5477        3.9996        .94435E-04   -1.5090    
  14  Prefactor     52.203        41.037        .55508E-04   -1.4262    
  15  norm          1.0393        2.4290        .19688E-03   -1.5504    
  16  Prefactor     .10000E-03    2.6697        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7093        2.5658        .67188E-03   -1.5379    
  18  Prefactor     10.905        31.809        .12129E-03   -1.5047    
  19  norm          1.4165        2.0786        .14689E-03   -1.5470    
  20  Prefactor     .10011E-03    193.69        .83163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5037        .78901        .52949E-04   -1.5463    
  22  Prefactor     18.799        31.028        .92382E-04   -1.4841    
  23  norm          .10000E-03    2.0022        .12348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          44.729        38.380        .59946E-04   -1.4369    
  25  Prefactor     6.5769        44.024        .15655E-03   -1.5195    
  26  Prefactor     1.6045        8.6701        .16736E-02   -1.5455    
  27  Normalizat    .95710        .26617        .41493E-03   -.94482    
  28  Prefactor     1.0296        .10756        .16730E-03   -.91749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20657e-09
Minuit parameter uncertainties:
  1  23.2538
  2  6.81117e-05
  3  1.3121e-05
  4  5.43484
  5  24.3019
  6  2.37724e-06
  7  8.41448e-05
  8  6.88063e-06
  9  6.79283e-06
  10  25.4095
  11  0.000139397
  12  1.76545e-06
  13  3.99967
  14  41.0592
  15  2.42928
  16  3.49198e-06
  17  2.56587
  18  31.8586
  19  2.07867
  20  0.00941583
  21  0.789014
  22  31.0551
  23  1.1461e-05
  24  38.401
  25  34.0678
  26  7.46095
  27  0.266536
  28  0.107581
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  1.039e+00  2.429e+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.030e+00  1.076e-01  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:  9.571e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 70.661 -0.296
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657009/likelihoodResults_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.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) = 8095.48952561
delta logL = 0.148518473904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8095.48945151
delta logL = 0.148592580812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0309       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2037       1.0000          .0000       5.0000    
     3 'Normalizat'    .92362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0381       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=   8095.489     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0338        43.968        .12497E-01    .80224E-03
   2  alpha         3.2015        2.8004        .43429        .32285E-04
   3  Normalizat    .92358        .67343E-01    .95200E-01   -.20519E-03
   4  Prefactor     1.0381        .27802E-01    .40662E-01   -.68700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03378
  alpha      = 3.20154
  Normalizat = 0.923576
  Prefactor  = 1.03813
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.489     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0338        2.6960        .12547E-03   -1.5505    
   2  alpha         3.2015        1.8247        .37624E-01    .28444    
   3  Normalizat    .92358        .25799        .42173E-03   -.95637    
   4  Prefactor     1.0381        .10428        .16670E-03   -.91469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39222e-10
Minuit parameter uncertainties:
  1  2.69629
  2  2.07314
  3  0.258333
  4  0.104297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657009': 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) = 8095.48945044
delta logL = 0.148593650627

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  1.034e+00  2.696e+00  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  3.202e+00  2.073e+00  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.038e+00  1.043e-01  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:  9.236e-01  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/657009/cmap_HighResolution_425692801_425952001_4FGL_J0442.6-0017_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-08-21 03:22:18.238595', job_id='657009', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.96', time_epoch_completed='1629541338.24', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.49e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='719' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:22:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 657009: <4FGL_J0442.6-0017_daily_bin719> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin719> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 03:05:45 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 03:05: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 03:05:48 2021
Terminated at Sat Aug 21 03:22:19 2021
Results reported at Sat Aug 21 03:22:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin719 70.6612 -0.2961 425692801 425952001 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.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            994 sec.

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

