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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin259
RA = 70.0881, Dec = -43.5532
tmin = 306460801, tmax = 306720001
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='642650', job_status='RUN', time_executed='2021-08-21 02:21:12.423030', time_epoch_executed='1629537672.42' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642650/ft1_4FGL_J0440.3-4333_daily_bin259.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642650/ft1_4FGL_J0440.3-4333_daily_bin259.fits outfile=/scratch/kocevski/642650/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin259.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=306460801.0 tmax=306720001.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.89
user 3.28
sys 1.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.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/642650/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin259.fits evtable="EVENTS" outfile="/scratch/kocevski/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.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.65
user 0.32
sys 1.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.fits" evtable="EVENTS" scfile=/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits sctable="SC_DATA" outfile=/scratch/kocevski/642650/ltcube_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.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/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits
.....................!
real 13.37
user 11.69
sys 1.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits sctable="SC_DATA" expcube=/scratch/kocevski/642650/ltcube_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.fits outfile=/scratch/kocevski/642650/expmap_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.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/642650/ltcube_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.fits
.....................!
real 191.47
user 185.13
sys 6.01

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/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.fits scfile=/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits outfile=/scratch/kocevski/642650/cmap_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.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 1.69
user 0.36
sys 1.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.fits scfile=/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits outfile=/scratch/kocevski/642650/cmap_HighResolution_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.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.65
user 0.38
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/642650/ft2_4FGL_J0440.3-4333_daily_bin259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642650/Model_4FGL_J0440.3-4333_daily_bin259.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/642650/ft1_filtered_4FGL_J0440.3-4333_daily_bin259.fits.....................!
real 124.16
user 121.25
sys 2.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6815       1.0000         .10000E-03   10000.    
     3 'norm      '    36.015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3161       1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.877       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4781       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.992       1.0000         .10000E-03   10000.    
    23 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    55.957       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9750       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    7.0788       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0366       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86142       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=   5861.101     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3910 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    137.89       -.27994E-05** at limit **
   2  norm          1.6816        .63194        .39950E-07   -.33638E-03
   3  norm          36.012        15.804       -.20387E-07   -.16390E-04
   4  Prefactor     7.6143        19.252       -.52983E-05   -.45297E-04
   5  Prefactor     .10000E-03    59.612        .25888E-05** at limit **
   6  Prefactor     .10000E-03    8.7301        .89258E-06** at limit **
   7  norm          .10000E-03    4.5204       -.46387E-06** at limit **
   8  Prefactor     .10000E-03    19.859        .23530E-06** at limit **
   9  norm          3.3408        .94808        .34444E-07    .29005E-04
  10  Prefactor     60.602        62.719        .34695E-04    .76643E-06
  11  Prefactor     1.3151        2.5958       -.27048E-06   -.51337E-03
  12  norm          .10000E-03    15.086       -.73801E-05** at limit **
  13  norm          3.5437        2.1090        .15380E-06    .93388E-03
  14  Prefactor     .10000E-03    2.1516       -.22714E-06** at limit **
  15  Prefactor     .10000E-03    10.367        .28944E-07** at limit **
  16  norm          12.181        6.7059        .22450E-07    .63548E-04
  17  Prefactor     .10000E-03    20.920       -.81586E-05** at limit **
  18  Prefactor     .10000E-03    16.449        .33316E-05** at limit **
  19  Prefactor     60.880        59.311        .26906E-05    .21991E-04
  20  Prefactor     2.4782        2.1703        .14443E-07   -.16049E-03
  21  Prefactor     .10000E-03    7.7773       -.21325E-05** at limit **
  22  norm          24.993        5.2604       -.11335E-05    .25597E-03
  23  norm          .10000E-03    2.8562        .94070E-06** at limit **
  24  norm          55.959        9.3421       -.41707E-07   -.46856E-03
  25  Prefactor     2.9771        8.4913       -.50925E-06   -.23045E-03
  26  Prefactor     .10000E-03    8.7498        .11015E-05** at limit **
  27  Prefactor     .10000E-03    18.117        .11300E-04** at limit **
  28  norm          7.0789        1.7074        .46143E-07   -.45180E-04
  29  Normalizat    1.0363        .23181       -.35126E-05    .21281E-03
  30  Prefactor     .86162        .22564        .14154E-05   -.63042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.68162
  norm       = 36.0124
  Prefactor  = 7.6143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.34078
  Prefactor  = 60.6017
  Prefactor  = 1.3151
  norm       = 0.0001
  norm       = 3.54372
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 12.1812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.8798
  Prefactor  = 2.47817
  Prefactor  = 0.000100001
  norm       = 24.9925
  norm       = 0.000100005
  norm       = 55.9588
  Prefactor  = 2.97711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.07891
  Normalizat = 1.03625
  Prefactor  = 0.861616
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.101     FROM HESSE     STATUS=OK           582 CALLS     4492 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6816        .63260        .34335E-04   -1.5449    
   3  norm          36.012        15.874        .66780E-04   -1.4507    
   4  Prefactor     7.6143        19.247        .14546E-03   -1.5156    
   5  Prefactor     .10000E-03    60.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.6194        .31729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3408        .94650        .38059E-04   -1.5342    
  10  Prefactor     60.602        62.746        .51558E-04   -1.4149    
  11  Prefactor     1.3151        2.5214        .16218E-03   -1.5479    
  12  norm          .10000E-03    15.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5437        1.9229        .75266E-04   -1.5331    
  14  Prefactor     .10000E-03    6.5863        .18820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.181        6.6080        .11476E-03   -1.5010    
  17  Prefactor     .10000E-03    20.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     60.880        59.309        .51425E-04   -1.4146    
  20  Prefactor     2.4782        2.1619        .10133E-03   -1.5393    
  21  Prefactor     .10000E-03    7.8851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.993        5.2387        .75920E-04   -1.4708    
  23  norm          .10000E-03    6.8744        .24656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          55.959        9.1710        .53625E-04   -1.4210    
  25  Prefactor     2.9771        8.4391        .23540E-03   -1.5363    
  26  Prefactor     .10000E-03    8.7572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          7.0789        1.7069        .47175E-04   -1.5176    
  29  Normalizat    1.0363        .27723        .30573E-03   -.91826    
  30  Prefactor     .86162        .27038        .33603E-03   -.97496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56701e-09
Minuit parameter uncertainties:
  1  0.000202735
  2  0.632606
  3  15.8759
  4  19.2624
  5  0.000100855
  6  7.12853e-06
  7  0.000125948
  8  7.56697e-05
  9  0.9465
  10  62.815
  11  2.52157
  12  0.000113223
  13  1.92289
  14  0.000278561
  15  8.08609e-06
  16  6.60837
  17  1.30195e-05
  18  1.96259e-05
  19  59.3665
  20  2.16193
  21  0.000189767
  22  5.23881
  23  0.000355924
  24  9.17121
  25  8.44244
  26  3.26498e-05
  27  2.27154e-05
  28  1.70695
  29  0.27762
  30  0.270799
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.000e-04  1.132e-04  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.616e-01  2.708e-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.036e+00  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 70.088 -43.553
Photon Flux Upper Limit: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642650/likelihoodResults_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.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) = 5861.10110359
delta logL = -0.000309488952553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5861.10079518
delta logL = -1.07132018456e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5141       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86163       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5861.101     FROM MIGRAD    STATUS=FAILED        94 CALLS      265 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10761E-03    1204.7        .30456E-02** at limit **
   2  alpha         2.9734        3.0366        .18622        .21165E-05
   3  Normalizat    1.0362        .52849E-01    .30574E-03    .14227E-03
   4  Prefactor     .86162        .53685E-01    .33603E-03    .74297E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5861.101     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      395 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10761E-03    1204.7        .83581E-03** at limit **
   2  alpha         2.9734        3.0366        .47331E-04    .21165E-05
   3  Normalizat    1.0362        .52849E-01    .19880E-05    .14227E-03
   4  Prefactor     .86162        .53685E-01    .18707E-05    .74297E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5861.101     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      434 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6587.8        .60913E-03** at limit **
   2  alpha         2.8213        3.5075        .37245        .12149E-07
   3  Normalizat    1.0362        .13577        .12229E-04   -.16343E-03
   4  Prefactor     .86162        .13799        .13441E-04   -.18456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.82128
  Normalizat = 1.03625
  Prefactor  = 0.861621
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.101     FROM HESSE     STATUS=OK            23 CALLS      457 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.098        .12183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8213        3.0059        .14898E-01    .12887    
   3  Normalizat    1.0362        .26241        .24459E-05   -.91826    
   4  Prefactor     .86162        .26662        .26882E-05   -.97495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90434e-11
Minuit parameter uncertainties:
  1  0.000127253
  2  443.59
  3  0.262736
  4  0.267022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642650': 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) = 5861.10079379
delta logL = 3.18519596476e-07

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.000e-04  1.273e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.821e+00  4.436e+02  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.616e-01  2.670e-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.036e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 70.088 -43.553

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/642650/cmap_HighResolution_306460801_306720001_4FGL_J0440.3-4333_daily_bin259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-08-21 02:37:01.632749', job_id='642650', GAL2='0.86', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1629538621.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='259' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:37:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 642650: <4FGL_J0440.3-4333_daily_bin259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin259 70.0881 -43.5532 306460801 306720001 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 :                                   964.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

