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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1260
RA = 70.0881, Dec = -43.5532
tmin = 565920001, tmax = 566179201
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='648591', job_status='RUN', time_executed='2021-08-21 02:44:42.219693', time_epoch_executed='1629539082.22' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648591/ft1_4FGL_J0440.3-4333_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648591/ft1_4FGL_J0440.3-4333_daily_bin1260.fits outfile=/scratch/kocevski/648591/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1260.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=565920001.0 tmax=566179201.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.77
user 3.37
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648591/ft1_filtered_4FGL_J0440.3-4333_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/648591/ltcube_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.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/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits
.....................!
real 14.19
user 12.48
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648591/ft1_filtered_4FGL_J0440.3-4333_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/648591/ltcube_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.fits outfile=/scratch/kocevski/648591/expmap_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.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/648591/ltcube_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.fits
.....................!
real 193.00
user 185.83
sys 6.69

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/648591/ft1_filtered_4FGL_J0440.3-4333_daily_bin1260.fits scfile=/scratch/kocevski/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits outfile=/scratch/kocevski/648591/cmap_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.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.66
user 0.38
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648591/ft1_filtered_4FGL_J0440.3-4333_daily_bin1260.fits scfile=/scratch/kocevski/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits outfile=/scratch/kocevski/648591/cmap_HighResolution_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.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.68
user 0.37
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648591/ft1_filtered_4FGL_J0440.3-4333_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/648591/ft2_4FGL_J0440.3-4333_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648591/Model_4FGL_J0440.3-4333_daily_bin1260.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/648591/ft1_filtered_4FGL_J0440.3-4333_daily_bin1260.fits.....................!
real 86.36
user 83.36
sys 2.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .46837       1.0000         .10000E-03   10000.    
     3 'norm      '    16.658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .26081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60606       1.0000         .10000E-03   10000.    
     9 'norm      '    .40304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6624       1.0000         .10000E-03   10000.    
    12 'norm      '    13.611       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8109       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0595       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9874       1.0000         .10000E-03   10000.    
    16 'norm      '    .17362E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6264       1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.661       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.102       1.0000         .10000E-03   10000.    
    23 'norm      '    10.314       1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8653       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.691       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.7110       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4574       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .53270       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=   3630.389     FROM MIGRAD    STATUS=CONVERGED   1403 CALLS     4619 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.479        .18142E-02** at limit **
   2  norm          .46839        .37029        .31339E-04   -.21766E-05
   3  norm          16.659        10.801        .98132E-04    .34176E-05
   4  Prefactor     .10000E-03    28.369        .18142E-02** at limit **
   5  Prefactor     .10000E-03    30.984        .18142E-02** at limit **
   6  Prefactor     .10000E-03    20.092        .18142E-02** at limit **
   7  norm          .25969        23.182        .23555E-02    .57390E-04
   8  Prefactor     .61949        111.05        .30609E-02    .47688E-04
   9  norm          .40233        .99173        .60383E-03    .19635E-03
  10  Prefactor     70.552        110.84        .47776E-04    .89948E-05
  11  Prefactor     3.6616        3.7583        .10718E-03   -.40041E-04
  12  norm          13.611        11.666        .10857E-03   -.72253E-05
  13  norm          6.8109        3.2944        .64825E-04   -.61381E-04
  14  Prefactor     3.0573        5.5885        .13922E-03   -.12482E-03
  15  Prefactor     2.0393        229.71        .29393E-03   -.25953E-04
  16  norm          .10010E-03    28.350        .42520E-01** at limit **
  17  Prefactor     .10000E-03    20.141        .18142E-02** at limit **
  18  Prefactor     8.6183        34.720        .13648E-03   -.15160E-04
  19  Prefactor     78.672        63.039        .22640E-03    .10395E-04
  20  Prefactor     .10000E-03    1.3689        .68425E-03** at limit **
  21  Prefactor     .10000E-03    1.3846        .69192E-03** at limit **
  22  norm          11.103        4.2636        .73153E-04   -.14609E-04
  23  norm          10.314        5.9846        .10810E-03   -.19593E-03
  24  norm          .10000E-03    2.2674        .88361E-03** at limit **
  25  Prefactor     8.8643        8.1740        .13462E-03   -.38974E-04
  26  Prefactor     15.689        22.776        .10111E-03   -.15741E-04
  27  Prefactor     .10000E-03    27.703        .18142E-02** at limit **
  28  norm          1.7108        1.2824        .57171E-04   -.77852E-04
  29  Normalizat    1.4570        .31960        .22724E-03   -.21368E-04
  30  Prefactor     .53319        .29899        .36270E-03   -.12867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.468388
  norm       = 16.6594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.259686
  Prefactor  = 0.619492
  norm       = 0.402328
  Prefactor  = 70.5519
  Prefactor  = 3.66157
  norm       = 13.6108
  norm       = 6.81094
  Prefactor  = 3.05735
  Prefactor  = 2.03929
  norm       = 0.000100102
  Prefactor  = 0.0001
  Prefactor  = 8.6183
  Prefactor  = 78.6722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1026
  norm       = 10.3138
  norm       = 0.0001
  Prefactor  = 8.86428
  Prefactor  = 15.6893
  Prefactor  = 0.0001
  norm       = 1.7108
  Normalizat = 1.45696
  Prefactor  = 0.533187
 **********
 **   18 **HESSE 
 **********

 FCN=   3630.389     FROM HESSE     STATUS=OK           572 CALLS     5191 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .46839        .37028        .12536E-05   -1.5571    
   3  norm          16.659        10.795        .39253E-05   -1.4891    
   4  Prefactor     .10000E-03    28.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .25969        22.973        .94221E-04   -1.5606    
   8  Prefactor     .61949        89.263        .12244E-03   -1.5551    
   9  norm          .40233        .89391        .24153E-04   -1.5581    
  10  Prefactor     70.552        110.09        .95552E-05   -1.4026    
  11  Prefactor     3.6616        3.7503        .42873E-05   -1.5325    
  12  norm          13.611        11.665        .43427E-05   -1.4970    
  13  norm          6.8109        3.2940        .25930E-05   -1.5186    
  14  Prefactor     3.0573        5.5840        .55687E-05   -1.5358    
  15  Prefactor     2.0393        208.76        .11757E-04   -1.5422    
  16  norm          .10010E-03    17.812        .53535E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6183        34.696        .54592E-05   -1.5121    
  19  Prefactor     78.672        63.038        .90560E-05   -1.3932    
  20  Prefactor     .10000E-03    1.3690        .13685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3846        .13838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.103        4.2632        .29261E-05   -1.5041    
  23  norm          10.314        5.9843        .43241E-05   -1.5066    
  24  norm          .10000E-03    2.2675        .17672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.8643        8.1731        .53847E-05   -1.5112    
  26  Prefactor     15.689        22.776        .40445E-05   -1.4916    
  27  Prefactor     .10000E-03    27.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.7108        1.2823        .22868E-05   -1.5446    
  29  Normalizat    1.4570        .31503        .45447E-04   -.78995    
  30  Prefactor     .53319        .29691        .14508E-04   -1.1048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30364e-11
Minuit parameter uncertainties:
  1  3.78767e-05
  2  0.370283
  3  10.7965
  4  0.000119326
  5  9.80376e-05
  6  1.96638e-05
  7  4.88601
  8  14.894
  9  0.893935
  10  110.414
  11  3.75056
  12  11.6668
  13  3.29413
  14  5.58491
  15  41.4139
  16  0.0026908
  17  9.27595e-06
  18  34.6192
  19  63.0919
  20  2.08282e-06
  21  2.06108e-06
  22  4.26328
  23  5.98464
  24  6.61407e-06
  25  8.17409
  26  22.7881
  27  3.38989e-05
  28  1.2823
  29  0.315451
  30  0.297782
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.361e+01  1.167e+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:  5.332e-01  2.978e-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.457e+00  3.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.74
Ra Dec: 70.088 -43.553
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.18e-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) = 3629.98150578
delta logL = 0.407063594772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3629.8324788
delta logL = 0.556090570462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9744       1.0000         .10000E-03   10000.    
     2 'alpha     '    .78059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52141       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=   3629.832     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9620        7.2910        .41070E-02   -.14031E-03
   2  alpha         .77883        1.0408        .50000       -.36450E-05
   3  Normalizat    1.4867        .24635        .51053E-01   -.99411E-05
   4  Prefactor     .52140        .25080        .82852E-01    .18635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.96197
  alpha      = 0.778829
  Normalizat = 1.48666
  Prefactor  = 0.521402
 **********
 **   18 **HESSE 
 **********

 FCN=   3629.832     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9620        9.7428        .14396E-03   -1.5220    
   2  alpha         .77883        1.2284        .29463E-01   -.75938    
   3  Normalizat    1.4867        .27858        .22570E-03   -.78154    
   4  Prefactor     .52140        .28281        .36702E-03   -1.1100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38423e-10
Minuit parameter uncertainties:
  1  9.7454
  2  1.34962
  3  0.278864
  4  0.283579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648591': 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) = 3629.83247767
delta logL = 0.556091704134

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  5.962e+00  9.745e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  7.788e-01  1.350e+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:  5.214e-01  2.836e-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.487e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 0.78 +/- 1.35
Photon Flux (Free Index): 9.92e-09 +/- 1.30e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.76e-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/648591/cmap_HighResolution_565920001_566179201_4FGL_J0440.3-4333_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='1.46e-05', photon_flux_error='3.64e-08', dlogl='5.56e-01', energy_flux='1.37e-05', photon_flux2='9.92e-09', job_status='DONE', time_completed='2021-08-21 02:56:20.271875', photon_index_error2='1.35', photon_index2='0.78', ts='5.74', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.46', time_epoch_completed='1629539780.27', return_code='0', job_id='648591', GAL2='0.52', EG2='1.49', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='1.30e-08', ts2='6.87', photon_index='2.46' WHERE bin_id='1260' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 648591: <4FGL_J0440.3-4333_daily_bin1260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1260 70.0881 -43.5532 565920001 566179201 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 :                                   710.00 sec.
    Max Memory :                                 1050 MB
    Average Memory :                             297.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

