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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1245
RA = 70.0881, Dec = -43.5532
tmin = 562032001, tmax = 562291201
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='648567', job_status='RUN', time_executed='2021-08-21 02:41:36.964550', time_epoch_executed='1629538896.96' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648567

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648567/ft1_4FGL_J0440.3-4333_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648567/ft1_4FGL_J0440.3-4333_daily_bin1245.fits outfile=/scratch/kocevski/648567/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1245.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=562032001.0 tmax=562291201.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.15
user 3.31
sys 0.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.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/648567/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.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.12
user 0.33
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/648567/ltcube_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.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/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits
.....................!
real 12.52
user 11.49
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/648567/ltcube_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.fits outfile=/scratch/kocevski/648567/expmap_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.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/648567/ltcube_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.fits
.....................!
real 192.05
user 185.67
sys 5.93

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/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.fits scfile=/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits outfile=/scratch/kocevski/648567/cmap_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.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.10
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.fits scfile=/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits outfile=/scratch/kocevski/648567/cmap_HighResolution_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.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.14
user 0.38
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/648567/ft2_4FGL_J0440.3-4333_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648567/Model_4FGL_J0440.3-4333_daily_bin1245.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/648567/ft1_filtered_4FGL_J0440.3-4333_daily_bin1245.fits.....................!
real 92.36
user 90.06
sys 1.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58787E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3794       1.0000         .10000E-03   10000.    
     3 'norm      '    34.852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9743       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6686       1.0000         .10000E-03   10000.    
    12 'norm      '    42.272       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6840       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7170       1.0000         .10000E-03   10000.    
    16 'norm      '    .11662E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    110.49       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.019       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4815       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.773       1.0000         .10000E-03   10000.    
    28 'norm      '    1.8013       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93356       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81090       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=   4415.262     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3899 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    439.87       -.14706E-04** at limit **
   2  norm          1.3794        .54089        .92110E-08   -.59799E-04
   3  norm          34.851        14.103        .57571E-07   -.79790E-05
   4  Prefactor     .10000E-03    6.4091        .61531E-07** at limit **
   5  Prefactor     .10000E-03    44.852        .50032E-06** at limit **
   6  Prefactor     8.9717        14.477        .22772E-06   -.42109E-05
   7  norm          4.9462        4.9778        .15923E-06    .21341E-04
   8  Prefactor     .10000E-03    11.177        .79148E-07** at limit **
   9  norm          1.3222        .70640        .17521E-07   -.73042E-04
  10  Prefactor     .10000E-03    55.465        .20675E-07** at limit **
  11  Prefactor     3.6695        4.2750       -.23783E-06   -.20709E-03
  12  norm          42.258        18.588       -.27126E-06   -.12491E-03
  13  norm          7.2098        3.3098       -.26435E-06   -.26003E-03
  14  Prefactor     1.6867        5.2030        .22834E-05   -.17222E-05
  15  Prefactor     6.7194        18.764        .23760E-05   -.48465E-04
  16  norm          .10003E-03    5.2561        .63811E-07** at limit **
  17  Prefactor     .10000E-03    35.614       -.35775E-06** at limit **
  18  Prefactor     .10000E-03    11.787       -.14926E-06** at limit **
  19  Prefactor     110.46        71.481        .17287E-06   -.40625E-04
  20  Prefactor     .56532        1.9361        .75710E-06   -.45436E-04
  21  Prefactor     .10000E-03    3.0587       -.63093E-06** at limit **
  22  norm          .10000E-03    .91902       -.59108E-07** at limit **
  23  norm          12.019        5.9103       -.12345E-07   -.86601E-04
  24  norm          .10000E-03    1.4279       -.37703E-08** at limit **
  25  Prefactor     5.4798        6.4848        .25250E-06    .89126E-04
  26  Prefactor     .10000E-03    8.5365        .42444E-07** at limit **
  27  Prefactor     16.788        32.460        .31579E-06    .46061E-04
  28  norm          1.8012        1.0931        .12650E-07   -.67288E-04
  29  Normalizat    .93358        .21858       -.14303E-06   -.25195E-04
  30  Prefactor     .81092        .21929       -.11170E-05    .70330E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  norm       = 1.37941
  norm       = 34.8512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.97173
  norm       = 4.94615
  Prefactor  = 0.0001
  norm       = 1.32216
  Prefactor  = 0.0001
  Prefactor  = 3.66949
  norm       = 42.2581
  norm       = 7.20984
  Prefactor  = 1.68666
  Prefactor  = 6.71936
  norm       = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.461
  Prefactor  = 0.565325
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.019
  norm       = 0.0001
  Prefactor  = 5.47983
  Prefactor  = 0.0001
  Prefactor  = 16.7878
  norm       = 1.80122
  Normalizat = 0.933582
  Prefactor  = 0.810921
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.262     FROM HESSE     STATUS=OK           590 CALLS     4489 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    448.84        .42150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3794        .54130        .28215E-04   -1.5473    
   3  norm          34.851        14.141        .67881E-04   -1.4527    
   4  Prefactor     .10000E-03    6.4144        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9717        14.461        .13379E-03   -1.5109    
   7  norm          4.9462        4.9705        .14269E-03   -1.5263    
   8  Prefactor     .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3222        .70839        .38451E-04   -1.5478    
  10  Prefactor     .10000E-03    55.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6695        4.2130        .12571E-03   -1.5325    
  12  norm          42.258        18.512        .61657E-04   -1.4407    
  13  norm          7.2098        3.2619        .69004E-04   -1.5171    
  14  Prefactor     1.6867        5.0458        .19253E-03   -1.5448    
  15  Prefactor     6.7194        17.865        .15482E-03   -1.5189    
  16  norm          .10003E-03    11.118        .27958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     110.46        71.527        .19133E-03   -1.3602    
  20  Prefactor     .56532        1.8771        .16083E-03   -1.5558    
  21  Prefactor     .10000E-03    5.3824        .21940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .92698        .62169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.019        5.8865        .10789E-03   -1.5014    
  24  norm          .10000E-03    1.4297        .77475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.4798        6.4255        .16992E-03   -1.5240    
  26  Prefactor     .10000E-03    8.5505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.788        32.492        .97794E-04   -1.4888    
  28  norm          1.8012        1.0909        .52281E-04   -1.5440    
  29  Normalizat    .93358        .25540        .26155E-03   -.95290    
  30  Prefactor     .81092        .25508        .28857E-03   -.99327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31872e-09
Minuit parameter uncertainties:
  1  0.00592096
  2  0.541304
  3  14.1419
  4  1.19952e-06
  5  0.000202409
  6  14.4664
  7  4.97092
  8  6.87234e-06
  9  0.708399
  10  0.000134155
  11  4.21335
  12  18.5146
  13  3.26202
  14  5.04707
  15  17.879
  16  0.0012418
  17  7.98333e-05
  18  5.90354e-05
  19  71.5829
  20  1.87726
  21  0.000100701
  22  8.40954e-07
  23  5.88677
  24  4.60735e-07
  25  6.42635
  26  5.15693e-06
  27  32.5258
  28  1.09091
  29  0.255732
  30  0.255453
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.226e+01  1.851e+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.109e-01  2.555e-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:  9.336e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.69
Ra Dec: 70.088 -43.553
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 5.77e-08
Energy Flux (Fixed Index): 4.26e-05 +/- 1.87e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4415.20187951
delta logL = 0.0597130603373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4415.1981832
delta logL = 0.0634093682474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.705       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1571       1.0000          .0000       5.0000    
     3 'Normalizat'    .96212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79031       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=   4415.198     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      258 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.689        341.19        .14827E-02    .24077E-05
   2  alpha         2.1554        2.8713        .41652        .16087E-04
   3  Normalizat    .96296        .25721        .45690E-01    .14388E-04
   4  Prefactor     .78967        .12780        .66016E-01    .20065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 45.6888
  alpha      = 2.15542
  Normalizat = 0.962957
  Prefactor  = 0.789673
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.198     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.689        20.177        .59306E-04   -1.4355    
   2  alpha         2.1554        .85720        .15175E-01   -.13827    
   3  Normalizat    .96296        .25208        .25834E-03   -.94282    
   4  Prefactor     .78967        .25378        .29204E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45745e-10
Minuit parameter uncertainties:
  1  20.1795
  2  0.875321
  3  0.25239
  4  0.254154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648567': 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) = 4415.1981764
delta logL = 0.0634161741427

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.569e+01  2.018e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.155e+00  8.753e-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:  7.897e-01  2.542e-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:  9.630e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.01
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 2.16 +/- 0.88
Photon Flux (Free Index): 1.10e-07 +/- 7.47e-08
Energy Flux (Free Index): 4.38e-05 +/- 1.90e-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/648567/cmap_HighResolution_562032001_562291201_4FGL_J0440.3-4333_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='4.38e-05', photon_flux_error='5.77e-08', dlogl='6.34e-02', energy_flux='4.26e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-21 02:53:20.877951', photon_index_error2='0.88', photon_index2='2.16', ts='17.69', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.93', time_epoch_completed='1629539600.88', return_code='0', job_id='648567', GAL2='0.79', EG2='0.96', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.47e-08', ts2='18.01', photon_index='2.46' WHERE bin_id='1245' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:53:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 648567: <4FGL_J0440.3-4333_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1245 70.0881 -43.5532 562032001 562291201 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 :                                   708.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            746 sec.

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

