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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1020
RA = 70.0881, Dec = -43.5532
tmin = 503712001, tmax = 503971201
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='648205', job_status='RUN', time_executed='2021-08-21 02:43:53.784639', time_epoch_executed='1629539033.78' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648205/ft1_4FGL_J0440.3-4333_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648205/ft1_4FGL_J0440.3-4333_daily_bin1020.fits outfile=/scratch/kocevski/648205/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1020.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=503712001.0 tmax=503971201.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 6.31
user 5.36
sys 0.87

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648205/ft1_filtered_4FGL_J0440.3-4333_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/648205/ltcube_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.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/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits
.....................!
real 18.06
user 16.87
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648205/ft1_filtered_4FGL_J0440.3-4333_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/648205/ltcube_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.fits outfile=/scratch/kocevski/648205/expmap_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.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/648205/ltcube_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.fits
.....................!
real 193.02
user 187.52
sys 4.96

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/648205/ft1_filtered_4FGL_J0440.3-4333_daily_bin1020.fits scfile=/scratch/kocevski/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits outfile=/scratch/kocevski/648205/cmap_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.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.16
user 0.41
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648205/ft1_filtered_4FGL_J0440.3-4333_daily_bin1020.fits scfile=/scratch/kocevski/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits outfile=/scratch/kocevski/648205/cmap_HighResolution_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.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.20
user 0.43
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648205/ft1_filtered_4FGL_J0440.3-4333_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/648205/ft2_4FGL_J0440.3-4333_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648205/Model_4FGL_J0440.3-4333_daily_bin1020.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/648205/ft1_filtered_4FGL_J0440.3-4333_daily_bin1020.fits.....................!
real 65.68
user 63.11
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13820E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .67093E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.864       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13311E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9536       1.0000         .10000E-03   10000.    
    12 'norm      '    41.066       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35078E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3203       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26930E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .64679       1.0000         .10000E-03   10000.    
    23 'norm      '    21.816       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0513       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.879       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9533       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3521       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83062       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=   2759.328     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3972 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.781       -.56738E-06** at limit **
   2  norm          .67047E-01    .37202       -.17952E-06    .29678E-03
   3  norm          3.4375        9.4266       -.43160E-06   -.22395E-05
   4  Prefactor     22.882        34.219       -.99005E-06   -.69935E-04
   5  Prefactor     .10000E-03    47.708       -.84044E-06** at limit **
   6  Prefactor     .10000E-03    7.1041        .25078E-07** at limit **
   7  norm          .10000E-03    2.5484       -.20954E-06** at limit **
   8  Prefactor     .10000E-03    5.0015        .81239E-08** at limit **
   9  norm          2.3688        1.0115       -.83176E-08    .28177E-03
  10  Prefactor     .10000E-03    81.816       -.12176E-05** at limit **
  11  Prefactor     3.9539        4.2616        .13292E-06    .57605E-03
  12  norm          41.070        20.968        .15047E-06    .47448E-03
  13  norm          1.9762        1.9787        .81741E-07    .95864E-03
  14  Prefactor     .10004E-03    5.3979       -.21071E-05** at limit **
  15  Prefactor     .10001E-03    139.30       -.51815E-05** at limit **
  16  norm          2.3310        8.3494        .18225E-05    .43264E-03
  17  Prefactor     .10000E-03    44.595       -.11703E-06** at limit **
  18  Prefactor     .10000E-03    29.782        .28655E-06** at limit **
  19  Prefactor     .10000E-03    37.906        .10310E-05** at limit **
  20  Prefactor     .10007E-03    2.4960       -.46002E-06** at limit **
  21  Prefactor     .10000E-03    8.0433        .32622E-06** at limit **
  22  norm          .64481        4.8077       -.56898E-06    .43127E-04
  23  norm          21.821        9.8034       -.17820E-07    .39493E-03
  24  norm          .10000E-03    2.7297        .11378E-06** at limit **
  25  Prefactor     1.0167        15.619       -.61344E-06    .22118E-03
  26  Prefactor     .10000E-03    28.375       -.97584E-06** at limit **
  27  Prefactor     21.897        54.679        .14271E-05    .74025E-04
  28  norm          2.9530        1.5481        .21299E-07    .61135E-03
  29  Normalizat    1.3523        .30859        .34568E-06    .56523E-03
  30  Prefactor     .83046        .30418        .15787E-05    .39838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0670465
  norm       = 3.43747
  Prefactor  = 22.8819
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36876
  Prefactor  = 0.000100002
  Prefactor  = 3.9539
  norm       = 41.0701
  norm       = 1.97622
  Prefactor  = 0.000100039
  Prefactor  = 0.000100008
  norm       = 2.33096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  norm       = 0.644807
  norm       = 21.8208
  norm       = 0.0001
  Prefactor  = 1.01672
  Prefactor  = 0.0001
  Prefactor  = 21.897
  norm       = 2.95301
  Normalizat = 1.35229
  Prefactor  = 0.830457
 **********
 **   18 **HESSE 
 **********

 FCN=   2759.328     FROM HESSE     STATUS=OK           584 CALLS     4556 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .67047E-01    .52507        .60375E-03   -1.5656    
   3  norm          3.4375        9.3810        .21814E-03   -1.5337    
   4  Prefactor     22.882        34.505        .83770E-04   -1.4751    
   5  Prefactor     .10000E-03    48.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1069        .13675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5479        .81809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0077        .11473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3688        1.0116        .26623E-04   -1.5400    
  10  Prefactor     .10000E-03    82.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9539        4.2469        .10584E-03   -1.5310    
  12  norm          41.070        20.798        .62552E-04   -1.4425    
  13  norm          1.9762        1.9688        .70688E-04   -1.5427    
  14  Prefactor     .10004E-03    12.436        .18294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    146.10        .50452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3310        8.5290        .26929E-03   -1.5403    
  17  Prefactor     .10000E-03    44.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10007E-03    35.677        .15296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1576        .28900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .64481        4.8444        .21270E-03   -1.5547    
  23  norm          21.821        9.6886        .85756E-04   -1.4773    
  24  norm          .10000E-03    2.7303        .84631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0167        51.409        .29802E-02   -1.5506    
  26  Prefactor     .10000E-03    28.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.897        58.255        .85631E-04   -1.4772    
  28  norm          2.9530        1.5470        .45695E-04   -1.5364    
  29  Normalizat    1.3523        .37665        .25343E-03   -.82019    
  30  Prefactor     .83046        .36283        .31109E-03   -.98615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01152e-09
Minuit parameter uncertainties:
  1  0.0004117
  2  0.374978
  3  9.38505
  4  34.5353
  5  0.000436184
  6  2.2039e-06
  7  8.0258e-06
  8  1.28628e-06
  9  1.01165
  10  0.000746084
  11  4.24723
  12  20.8015
  13  1.96888
  14  0.00138633
  15  0.00221835
  16  8.53347
  17  7.02842e-05
  18  9.36639e-05
  19  0.000426004
  20  0.00326444
  21  5.97447e-05
  22  3.53493
  23  9.68926
  24  3.89888e-06
  25  14.4718
  26  0.000229876
  27  58.4064
  28  1.54705
  29  0.377417
  30  0.363881
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.107e+01  2.080e+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.305e-01  3.639e-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.352e+00  3.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.53
Ra Dec: 70.088 -43.553
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 6.48e-08
Energy Flux (Fixed Index): 4.14e-05 +/- 2.10e-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) = 2759.31274049
delta logL = 0.0151557436729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2759.31051185
delta logL = 0.0173843876246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.188       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3341       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82361       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=   2759.311     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.187        20.417       -.15677E-05    .89471E-03
   2  alpha         2.3341        .63511        .11275E-04    .11271E-03
   3  Normalizat    1.3638        .30300       -.46806E-06   -.60212E-04
   4  Prefactor     .82371        .29747        .35374E-06   -.44888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.1873
  alpha      = 2.33413
  Normalizat = 1.36375
  Prefactor  = 0.82371
 **********
 **   18 **HESSE 
 **********

 FCN=   2759.311     FROM HESSE     STATUS=OK            29 CALLS      260 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.187        21.863        .61718E-04   -1.4408    
   2  alpha         2.3341        .69195        .12580E-01   -.66397E-01
   3  Normalizat    1.3638        .36553        .25264E-03   -.81683    
   4  Prefactor     .82371        .35777        .31231E-03   -.98860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5612e-09
Minuit parameter uncertainties:
  1  21.8671
  2  0.701144
  3  0.366231
  4  0.358788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648205': 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) = 2759.31051181
delta logL = 0.0173844255723

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.219e+01  2.187e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.334e+00  7.011e-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:  8.237e-01  3.588e-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.364e+00  3.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.60
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 2.33 +/- 0.70
Photon Flux (Free Index): 1.17e-07 +/- 8.15e-08
Energy Flux (Free Index): 4.13e-05 +/- 2.08e-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/648205/cmap_HighResolution_503712001_503971201_4FGL_J0440.3-4333_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='4.13e-05', photon_flux_error='6.48e-08', dlogl='1.74e-02', energy_flux='4.14e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-21 02:54:13.907082', photon_index_error2='0.70', photon_index2='2.33', ts='12.53', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.35', time_epoch_completed='1629539653.91', return_code='0', job_id='648205', GAL2='0.82', EG2='1.36', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='8.15e-08', ts2='12.60', photon_index='2.46' WHERE bin_id='1020' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 648205: <4FGL_J0440.3-4333_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1020 70.0881 -43.5532 503712001 503971201 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 :                                   601.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

