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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1006
RA = 70.0881, Dec = -43.5532
tmin = 500083201, tmax = 500342401
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='647043', job_status='RUN', time_executed='2021-08-21 02:37:22.091811', time_epoch_executed='1629538642.09' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647043/ft1_4FGL_J0440.3-4333_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647043/ft1_4FGL_J0440.3-4333_daily_bin1006.fits outfile=/scratch/kocevski/647043/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1006.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.64
user 5.34
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.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/647043/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/647043/ltcube_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.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/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits
.....................!
real 12.51
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/647043/ltcube_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.fits outfile=/scratch/kocevski/647043/expmap_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.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/647043/ltcube_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.fits
.....................!
real 190.54
user 185.39
sys 4.84

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/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits scfile=/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits outfile=/scratch/kocevski/647043/cmap_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.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 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits scfile=/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits outfile=/scratch/kocevski/647043/cmap_HighResolution_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.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 0.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647043/Model_4FGL_J0440.3-4333_daily_bin1006.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/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits.....................!
real 102.84
user 101.49
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits', '/scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits', expMap='/scratch/kocevski/647043/expmap_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.fits', expCube='/scratch/kocevski/647043/ltcube_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647043/Model_4FGL_J0440.3-4333_daily_bin1006.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/647043/ft1_filtered_4FGL_J0440.3-4333_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/647043/ft2_4FGL_J0440.3-4333_daily_bin1006.fits
Exposure map: /scratch/kocevski/647043/expmap_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.fits
Exposure cube: /scratch/kocevski/647043/ltcube_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647043/Model_4FGL_J0440.3-4333_daily_bin1006.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) = 4890.1026965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .16521       1.0000         .10000E-03   10000.    
     3 'norm      '    .14414E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0711       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.484       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.684       1.0000         .10000E-03   10000.    
    13 'norm      '    17.704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22773E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1460       1.0000         .10000E-03   10000.    
    23 'norm      '    20.874       1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.410       1.0000         .10000E-03   10000.    
    28 'norm      '    1.9042       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80371       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86672       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=   4890.092     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4569 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.581       -.48014E-05** at limit **
   2  norm          .16572        .35777       -.95128E-07    .20212E-02
   3  norm          .10046E-03    10.929       -.72485E-05** at limit **
   4  Prefactor     17.793        29.876       -.11792E-04   -.56994E-04
   5  Prefactor     .10000E-03    106.60        .16302E-05** at limit **
   6  Prefactor     4.0646        29.375        .70828E-05    .26901E-03
   7  norm          1.0890        5.0814        .21024E-05   -.57072E-03
   8  Prefactor     22.494        17.933        .72243E-05    .68149E-03
   9  norm          4.6387        1.3091       -.70796E-06    .33920E-02
  10  Prefactor     59.321        64.404        .16004E-05   -.70567E-05
  11  Prefactor     .10000E-03    1.0002       -.84896E-08** at limit **
  12  norm          17.682        14.193       -.10902E-06    .11433E-03
  13  norm          17.702        4.0963       -.28591E-07    .71111E-03
  14  Prefactor     .10000E-03    2.2095       -.31086E-06** at limit **
  15  Prefactor     .10000E-03    7.8788       -.64936E-07** at limit **
  16  norm          .10000E-03    2.0872        .17506E-08** at limit **
  17  Prefactor     .10000E-03    29.271        .10499E-04** at limit **
  18  Prefactor     .10139E-03    25.205       -.61320E-06** at limit **
  19  Prefactor     .10000E-03    11.713       -.24373E-06** at limit **
  20  Prefactor     2.4580        2.7667        .17910E-06   -.37953E-03
  21  Prefactor     .10000E-03    1.9375       -.71910E-07** at limit **
  22  norm          5.1455        2.6883       -.11688E-06   -.14369E-03
  23  norm          20.872        6.1326       -.10700E-05   -.80875E-04
  24  norm          .10000E-03    4.1246        .44749E-06** at limit **
  25  Prefactor     .10000E-03    3.8866       -.20122E-06** at limit **
  26  Prefactor     .10000E-03    13.241        .15193E-06** at limit **
  27  Prefactor     22.401        25.455        .44356E-05    .55822E-05
  28  norm          1.9041        .90637       -.57451E-08   -.34664E-04
  29  Normalizat    .80352        .21893        .35874E-06    .65645E-03
  30  Prefactor     .86680        .21287        .38465E-07    .49638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.16572
  norm       = 0.000100462
  Prefactor  = 17.7926
  Prefactor  = 0.0001
  Prefactor  = 4.06461
  norm       = 1.08898
  Prefactor  = 22.4945
  norm       = 4.63872
  Prefactor  = 59.3214
  Prefactor  = 0.0001
  norm       = 17.6823
  norm       = 17.7022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101387
  Prefactor  = 0.0001
  Prefactor  = 2.45804
  Prefactor  = 0.0001
  norm       = 5.14554
  norm       = 20.8723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4013
  norm       = 1.90412
  Normalizat = 0.803517
  Prefactor  = 0.866799
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.092     FROM HESSE     STATUS=OK           592 CALLS     5161 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .16572        .31764        .54716E-03   -1.5627    
   3  norm          .10046E-03    39.839        .39589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.793        28.934        .94975E-04   -1.4864    
   5  Prefactor     .10000E-03    107.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0646        27.769        .19982E-03   -1.5305    
   7  norm          1.0890        4.6247        .26636E-03   -1.5499    
   8  Prefactor     22.494        17.982        .84473E-04   -1.4759    
   9  norm          4.6387        1.3158        .34581E-04   -1.5277    
  10  Prefactor     59.321        64.412        .52095E-04   -1.4166    
  11  Prefactor     .10000E-03    1.0092        .68233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.682        14.128        .95243E-04   -1.4867    
  13  norm          17.702        3.7689        .57645E-04   -1.4866    
  14  Prefactor     .10000E-03    6.7482        .17725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.9442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1082        .98604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10139E-03    29.216        .10606       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4580        2.7407        .11373E-03   -1.5394    
  21  Prefactor     .10000E-03    1.9766        .94914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1455        2.6852        .78760E-04   -1.5254    
  23  norm          20.872        6.0811        .87668E-04   -1.4794    
  24  norm          .10000E-03    4.2383        .27531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.9621        .13434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     22.401        25.390        .84613E-04   -1.4761    
  28  norm          1.9041        .90678        .44283E-04   -1.5432    
  29  Normalizat    .80352        .24849        .27511E-03   -.99938    
  30  Prefactor     .86680        .24436        .27558E-03   -.97311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32823e-08
Minuit parameter uncertainties:
  1  9.76819e-07
  2  0.317639
  3  0.00858887
  4  28.9567
  5  0.000450834
  6  21.2621
  7  4.48868
  8  17.9859
  9  1.31584
  10  64.488
  11  1.34799e-06
  12  14.1309
  13  3.76899
  14  9.57698e-05
  15  1.79831e-06
  16  7.08863e-07
  17  3.48282e-05
  18  0.0127397
  19  3.46149e-06
  20  2.74083
  21  5.0845e-06
  22  2.68528
  23  6.08127
  24  8.77417e-05
  25  4.42674e-05
  26  6.05872e-05
  27  25.4019
  28  0.906784
  29  0.248845
  30  0.244672
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.768e+01  1.413e+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:  8.668e-01  2.447e-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:  8.035e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 70.088 -43.553
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/647043/likelihoodResults_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.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) = 4889.88308306
delta logL = 0.209269990573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4889.8744902
delta logL = 0.217862859786

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4889.874     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      252 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.620        15.458        .11278E-03   -.18561E-02
   2  alpha         3.0777        1.0802        .15263E-01   -.20130E-03
   3  Normalizat    .77904        .23121        .27894E-03    .59273E-03
   4  Prefactor     .88385        .23824        .27317E-03    .85962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6202
  alpha      = 3.07774
  Normalizat = 0.77904
  Prefactor  = 0.883851
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.874     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.620        14.015        .22556E-04   -1.4997    
   2  alpha         3.0777        .98471        .61052E-03    .23320    
   3  Normalizat    .77904        .23099        .55789E-04   -1.0085    
   4  Prefactor     .88385        .23807        .54633E-04   -.96708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6197e-09
Minuit parameter uncertainties:
  1  14.0183
  2  1.01381
  3  0.231283
  4  0.238347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647043': 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) = 4889.87448743
delta logL = 0.2178656279

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.262e+01  1.402e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  3.078e+00  1.014e+00  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:  8.839e-01  2.383e-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:  7.790e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 3.08 +/- 1.01
Photon Flux (Free Index): 7.42e-08 +/- 5.63e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.25e-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/647043/cmap_HighResolution_500083201_500342401_4FGL_J0440.3-4333_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='1.75e-05', photon_flux_error='4.40e-08', dlogl='2.18e-01', energy_flux='1.78e-05', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-08-21 02:52:19.977979', photon_index_error2='1.01', photon_index2='3.08', ts='2.67', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.25e-05', EG='0.80', time_epoch_completed='1629539539.98', return_code='0', job_id='647043', GAL2='0.88', EG2='0.78', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.63e-08', ts2='3.22', photon_index='2.46' WHERE bin_id='1006' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:52:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 647043: <4FGL_J0440.3-4333_daily_bin1006> in cluster <slac> Done

Job <4FGL_J0440.3-4333_daily_bin1006> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 02:35:48 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:35:50 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:35:50 2021
Terminated at Sat Aug 21 02:52:20 2021
Results reported at Sat Aug 21 02:52:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1006 70.0881 -43.5532 500083201 500342401 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 :                                   893.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

