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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1076
RA = 70.0881, Dec = -43.5532
tmin = 518227201, tmax = 518486401
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='648295', job_status='RUN', time_executed='2021-08-21 02:40:54.814090', time_epoch_executed='1629538854.81' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648295

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648295/ft1_4FGL_J0440.3-4333_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648295/ft1_4FGL_J0440.3-4333_daily_bin1076.fits outfile=/scratch/kocevski/648295/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1076.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=518227201.0 tmax=518486401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.26
user 3.35
sys 0.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.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/648295/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1076.fits evtable="EVENTS" outfile="/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.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.13
user 0.31
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/648295/ltcube_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.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/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits
.....................!
real 12.78
user 11.76
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/648295/ltcube_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.fits outfile=/scratch/kocevski/648295/expmap_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.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/648295/ltcube_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.fits
.....................!
real 193.43
user 187.51
sys 5.57

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 187 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0440.3-4333 @ 70.0881 -43.5532

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits scfile=/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits outfile=/scratch/kocevski/648295/cmap_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.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.0881 yref=-43.5532 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 2.51
user 0.36
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits scfile=/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits outfile=/scratch/kocevski/648295/cmap_HighResolution_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.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.0881 yref=-43.5532 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.16
user 0.41
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648295/Model_4FGL_J0440.3-4333_daily_bin1076.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits.....................!
real 128.79
user 126.54
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits', '/scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits', expMap='/scratch/kocevski/648295/expmap_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.fits', expCube='/scratch/kocevski/648295/ltcube_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648295/Model_4FGL_J0440.3-4333_daily_bin1076.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0440.3-4333'

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.526e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  4.215e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/648295/ft1_filtered_4FGL_J0440.3-4333_daily_bin1076.fits
Spacecraft file(s): /scratch/kocevski/648295/ft2_4FGL_J0440.3-4333_daily_bin1076.fits
Exposure map: /scratch/kocevski/648295/expmap_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.fits
Exposure cube: /scratch/kocevski/648295/ltcube_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648295/Model_4FGL_J0440.3-4333_daily_bin1076.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) = 6228.84840277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.703       1.0000         .10000E-03   10000.    
     2 'norm      '    .61610       1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20476E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.0089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.745       1.0000         .10000E-03   10000.    
    13 'norm      '    6.2157       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6754       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.205       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.972       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8910       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.0606       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6228.846     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3882 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.703        46.281       -.12422E-06    .33066E-05
   2  norm          .61609        .35846       -.78446E-07   -.12214E-02
   3  norm          .10000E-03    3.9979       -.58494E-07** at limit **
   4  Prefactor     .10000E-03    4.8043        .20523E-05** at limit **
   5  Prefactor     .10000E-03    16.789       -.69999E-06** at limit **
   6  Prefactor     .10000E-03    81.110        .20602E-04** at limit **
   7  norm          .10000E-03    .88575        .18020E-07** at limit **
   8  Prefactor     .10000E-03    4.7987        .22027E-05** at limit **
   9  norm          5.0090        .99979       -.70604E-07   -.26015E-02
  10  Prefactor     64.458        54.772       -.10611E-04    .14200E-04
  11  Prefactor     .10000E-03    .79155        .25890E-07** at limit **
  12  norm          17.745        12.268       -.22856E-06    .74912E-04
  13  norm          6.2157        2.6178        .92313E-06    .93938E-04
  14  Prefactor     2.6751        3.6828       -.28329E-05   -.55235E-03
  15  Prefactor     32.204        17.590        .61941E-06    .93570E-04
  16  norm          .10000E-03    1.7476        .74617E-07** at limit **
  17  Prefactor     .10000E-03    88.633       -.23461E-04** at limit **
  18  Prefactor     12.124        23.019       -.29694E-05    .51085E-05
  19  Prefactor     29.960        48.093       -.15478E-04    .25465E-04
  20  Prefactor     2.4460        2.1356       -.12139E-07   -.99904E-04
  21  Prefactor     .10000E-03    2.6738        .60996E-07** at limit **
  22  norm          5.8908        2.6133        .80571E-08    .12584E-03
  23  norm          .10000E-03    1.5153        .11167E-07** at limit **
  24  norm          .10000E-03    1.6238       -.49216E-06** at limit **
  25  Prefactor     .10000E-03    4.6404       -.39345E-05** at limit **
  26  Prefactor     .10000E-03    7.4061        .10240E-05** at limit **
  27  Prefactor     .10000E-03    23.487        .64169E-06** at limit **
  28  norm          1.0606        .70939       -.42852E-07    .83339E-04
  29  Normalizat    1.0644        .19968        .33438E-05   -.19777E-04
  30  Prefactor     .99738        .20017        .10454E-06    .19298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7027
  norm       = 0.616088
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.00902
  Prefactor  = 64.4584
  Prefactor  = 0.0001
  norm       = 17.7453
  norm       = 6.21575
  Prefactor  = 2.67511
  Prefactor  = 32.2043
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.1241
  Prefactor  = 29.9597
  Prefactor  = 2.44596
  Prefactor  = 0.0001
  norm       = 5.89084
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06059
  Normalizat = 1.06436
  Prefactor  = 0.99738
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.846     FROM HESSE     STATUS=OK           584 CALLS     4466 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.703        46.293        .63614E-04   -1.4447    
   2  norm          .61609        .35910        .34586E-04   -1.5551    
   3  norm          .10000E-03    4.0213        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8093        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    82.741        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .88669        .72537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8120        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0090        .99866        .33723E-04   -1.5260    
  10  Prefactor     64.458        54.865        .49981E-04   -1.4101    
  11  Prefactor     .10000E-03    .79471        .68511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.745        12.222        .95079E-04   -1.4865    
  13  norm          6.2157        2.6334        .70581E-04   -1.5209    
  14  Prefactor     2.6751        3.7141        .14367E-03   -1.5381    
  15  Prefactor     32.204        17.567        .70608E-04   -1.4572    
  16  norm          .10000E-03    1.7501        .10181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    88.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.124        23.022        .11500E-03   -1.5011    
  19  Prefactor     29.960        47.961        .73184E-04   -1.4613    
  20  Prefactor     2.4460        2.1220        .10248E-03   -1.5395    
  21  Prefactor     .10000E-03    2.7536        .25168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8908        2.6102        .81704E-04   -1.5222    
  23  norm          .10000E-03    1.5281        .94735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.4584        .19342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7321        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.4273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0606        .69918        .52572E-04   -1.5502    
  29  Normalizat    1.0644        .23586        .26805E-03   -.90904    
  30  Prefactor     .99738        .23591        .28424E-03   -.92817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82178e-10
Minuit parameter uncertainties:
  1  46.335
  2  0.359098
  3  1.22907e-05
  4  1.32715e-06
  5  1.75453e-05
  6  0.00118659
  7  1.90495e-06
  8  1.05869e-05
  9  0.998663
  10  54.9078
  11  4.04286e-06
  12  12.2242
  13  2.63349
  14  3.71438
  15  17.5694
  16  6.77784e-06
  17  0.000433762
  18  23.0392
  19  48.0225
  20  2.12208
  21  1.02136e-05
  22  2.61022
  23  3.63351e-07
  24  0.000202739
  25  2.68949e-06
  26  3.05967e-07
  27  5.37935e-06
  28  0.699181
  29  0.236088
  30  0.236152
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.775e+01  1.222e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  4.215e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.974e-01  2.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.064e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.80
Ra Dec: 70.088 -43.553
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.23e-05

TS (Fixed Index): 3.80
Ra Dec: 70.088 -43.553
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648295/likelihoodResults_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.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) = 6228.79988582
delta logL = 0.0464926043005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6228.79178508
delta logL = 0.05459334446

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6228.792     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.298        242.74        .24798E-02    .39844E-04
   2  alpha         2.7559        2.9276        .41426        .34667E-04
   3  Normalizat    1.0496        .11504        .60953E-01    .15019E-04
   4  Prefactor     1.0068        .82992E-01    .64039E-01    .10326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.298
  alpha      = 2.75589
  Normalizat = 1.04956
  Prefactor  = 1.00678
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.792     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.298        12.603        .99192E-04   -1.4900    
   2  alpha         2.7559        .89788        .18567E-01    .10253    
   3  Normalizat    1.0496        .22899        .26957E-03   -.91388    
   4  Prefactor     1.0068        .23295        .28322E-03   -.92504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23777e-12
Minuit parameter uncertainties:
  1  12.6051
  2  0.918633
  3  0.229204
  4  0.233184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648295': 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) = 6228.79178462
delta logL = 0.0545938111272

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.630e+01  1.261e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.756e+00  9.186e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  4.215e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.007e+00  2.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.050e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 2.76 +/- 0.92
Photon Flux (Free Index): 6.76e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/648295/cmap_HighResolution_518227201_518486401_4FGL_J0440.3-4333_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='1.85e-05', photon_flux_error='3.81e-08', dlogl='5.46e-02', energy_flux='1.79e-05', photon_flux2='6.76e-08', job_status='DONE', time_completed='2021-08-21 02:57:15.701252', photon_index_error2='0.92', photon_index2='2.76', ts='3.80', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.19e-05', EG='1.06', time_epoch_completed='1629539835.7', return_code='0', job_id='648295', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.54e-08', ts2='3.95', photon_index='2.46' WHERE bin_id='1076' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 648295: <4FGL_J0440.3-4333_daily_bin1076> in cluster <slac> Done

Job <4FGL_J0440.3-4333_daily_bin1076> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 02:40:31 2021
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:40:33 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:40:33 2021
Terminated at Sat Aug 21 02:57:16 2021
Results reported at Sat Aug 21 02:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1076 70.0881 -43.5532 518227201 518486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0440.3-4333 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   983.87 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             330.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1003 sec.
    Turnaround time :                            1005 sec.

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

