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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1182
RA = 70.0881, Dec = -43.5532
tmin = 545702401, tmax = 545961601
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='648462', job_status='RUN', time_executed='2021-08-21 02:41:12.262549', time_epoch_executed='1629538872.26' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648462/ft1_4FGL_J0440.3-4333_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648462/ft1_4FGL_J0440.3-4333_daily_bin1182.fits outfile=/scratch/kocevski/648462/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1182.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=545702401.0 tmax=545961601.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.78
user 3.80
sys 0.96

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648462/ft1_filtered_4FGL_J0440.3-4333_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/648462/ltcube_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.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/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits
.....................!
real 12.64
user 11.43
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648462/ft1_filtered_4FGL_J0440.3-4333_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/648462/ltcube_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.fits outfile=/scratch/kocevski/648462/expmap_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.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/648462/ltcube_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.fits
.....................!
real 193.16
user 187.93
sys 4.86

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/648462/ft1_filtered_4FGL_J0440.3-4333_daily_bin1182.fits scfile=/scratch/kocevski/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits outfile=/scratch/kocevski/648462/cmap_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.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.26
user 0.38
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648462/ft1_filtered_4FGL_J0440.3-4333_daily_bin1182.fits scfile=/scratch/kocevski/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits outfile=/scratch/kocevski/648462/cmap_HighResolution_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.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.29
user 0.40
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648462/ft1_filtered_4FGL_J0440.3-4333_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/648462/ft2_4FGL_J0440.3-4333_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648462/Model_4FGL_J0440.3-4333_daily_bin1182.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/648462/ft1_filtered_4FGL_J0440.3-4333_daily_bin1182.fits.....................!
real 243.22
user 240.62
sys 2.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12350E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63231E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3339       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6460       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15452E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.038       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8792       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0454       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2613       1.0000         .10000E-03   10000.    
    24 'norm      '    5.0899       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4190       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .90590       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3638       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71523       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12359.61     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4016 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.345         .0000    ** at limit **
   2  norm          .11367E-01    .10580         .0000        .50607E-02
   3  norm          .10000E-03    2.2311         .0000    ** at limit **
   4  Prefactor     .10000E-03    5.2277         .0000    ** at limit **
   5  Prefactor     .10000E-03    24.247         .0000    ** at limit **
   6  Prefactor     .10000E-03    5.1024         .0000    ** at limit **
   7  norm          .10000E-03    .88708         .0000    ** at limit **
   8  Prefactor     .10027E-03    3.5075         .0000    ** at limit **
   9  norm          1.2297        .42924         .0000        .27990E-04
  10  Prefactor     .10000E-03    15.860         .0000    ** at limit **
  11  Prefactor     .10000E-03    .81438         .0000    ** at limit **
  12  norm          1.3410        10.209         .0000        .20472E-01
  13  norm          7.6455        2.1205         .0000       -.12863E-02
  14  Prefactor     9.0121        3.1917         .0000        .40095E-02
  15  Prefactor     .10000E-03    8.5172         .0000    ** at limit **
  16  norm          2.7343        3.2327         .0000        .16115E-01
  17  Prefactor     16.043        30.925         .0000       -.28290E-03
  18  Prefactor     .10000E-03    3.5615         .0000    ** at limit **
  19  Prefactor     27.892        32.809         .0000        .90344E-03
  20  Prefactor     3.8792        1.5142         .0000        .35845E-03
  21  Prefactor     .10000E-03    1.6761         .0000    ** at limit **
  22  norm          8.0452        2.1701         .0000        .29463E-03
  23  norm          3.2612        2.5499         .0000        .13627E-02
  24  norm          5.0899        2.4351         .0000       -.68016E-03
  25  Prefactor     .10000E-03    1.8531         .0000    ** at limit **
  26  Prefactor     1.4194        9.3534         .0000        .15721E-01
  27  Prefactor     .10000E-03    4.9124         .0000    ** at limit **
  28  norm          .90594        .41128         .0000       -.63357E-04
  29  Normalizat    1.3638        .13748         .0000       -.17923E-04
  30  Prefactor     .71525        .13670         .0000        .40252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0113674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100271
  norm       = 1.2297
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.34099
  norm       = 7.64551
  Prefactor  = 9.01209
  Prefactor  = 0.000100003
  norm       = 2.73429
  Prefactor  = 16.0435
  Prefactor  = 0.0001
  Prefactor  = 27.8917
  Prefactor  = 3.87918
  Prefactor  = 0.0001
  norm       = 8.04525
  norm       = 3.26118
  norm       = 5.08989
  Prefactor  = 0.0001
  Prefactor  = 1.41945
  Prefactor  = 0.000100002
  norm       = 0.905938
  Normalizat = 1.36377
  Prefactor  = 0.715252
 **********
 **   18 **HESSE 
 **********

 FCN=   12359.61     FROM HESSE     STATUS=OK           600 CALLS     4616 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11367E-01    .52355        .69084E-03   -1.5687    
   3  norm          .10000E-03    2.2545        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8322        .20371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10027E-03    15.659        .38134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2297        .41233        .39740E-04   -1.5486    
  10  Prefactor     .10000E-03    15.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1906        .18073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3410        9.4697        .18999E-02   -1.5476    
  13  norm          7.6455        2.1301        .70366E-04   -1.5155    
  14  Prefactor     9.0121        3.1751        .90538E-04   -1.5107    
  15  Prefactor     .10000E-03    11.548        .76028E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7343        3.2672        .89526E-03   -1.5377    
  17  Prefactor     16.043        30.907        .10001E-03   -1.4907    
  18  Prefactor     .10000E-03    3.5631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.892        32.794        .75820E-04   -1.4651    
  20  Prefactor     3.8792        1.5102        .81643E-04   -1.5314    
  21  Prefactor     .10000E-03    1.7136        .28010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0452        2.1593        .79982E-04   -1.5141    
  23  norm          3.2612        2.5441        .14100E-03   -1.5347    
  24  norm          5.0899        2.4364        .10835E-03   -1.5257    
  25  Prefactor     .10000E-03    1.8866        .14764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4194        9.3077        .18162E-02   -1.5470    
  27  Prefactor     .10000E-03    4.9138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .90594        .41212        .46654E-04   -1.5518    
  29  Normalizat    1.3638        .16347        .23368E-03   -.81682    
  30  Prefactor     .71525        .16278        .31568E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15356e-07
Minuit parameter uncertainties:
  1  0.000293202
  2  0.153613
  3  2.45623e-06
  4  1.49077e-05
  5  0.000326623
  6  0.000138825
  7  3.87662e-06
  8  0.00412468
  9  0.412335
  10  0.00056182
  11  1.8859e-05
  12  7.12839
  13  2.13007
  14  3.17517
  15  0.000345085
  16  3.26745
  17  30.9375
  18  2.68078e-05
  19  32.815
  20  1.51021
  21  3.39757e-06
  22  2.15935
  23  2.54422
  24  2.4364
  25  6.6931e-06
  26  7.27099
  27  0.000176972
  28  0.412124
  29  0.163534
  30  0.162886
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.341e+00  7.128e+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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.153e-01  1.629e-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  1.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/648462/likelihoodResults_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.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) = 12359.5877453
delta logL = 0.0173637201842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12359.5875239
delta logL = 0.017585188607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2862       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1012       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71752       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12359.59     FROM MIGRAD    STATUS=FAILED        97 CALLS      281 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2846        873.56        .19544E-02   -.23619E-02
   2  alpha         3.0975        2.9800        .10571        .34303E-04
   3  Normalizat    1.3599        .12614        .23392E-03   -.36937E-05
   4  Prefactor     .71757        .14679        .31519E-03   -.67595E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12359.59     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      373 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2846        873.56        .23142E-03   -.23619E-02
   2  alpha         3.0975        2.9800        .25942E-02    .34303E-04
   3  Normalizat    1.3599        .12614        .87770E-04   -.36937E-05
   4  Prefactor     .71757        .14679        .13693E-03   -.67595E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12359.59     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      405 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2853        6.8873        .78174E-04   -.83272E-03
   2  alpha         3.0971        3.9763        .42285E-02   -.29838E-04
   3  Normalizat    1.3599        .15890        .93566E-05    .98176E-04
   4  Prefactor     .71757        .15999        .12607E-04    .46530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2853
  alpha      = 3.09706
  Normalizat = 1.35995
  Prefactor  = 0.717573
 **********
 **   18 **HESSE 
 **********

 FCN=   12359.59     FROM HESSE     STATUS=OK            23 CALLS      428 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2853        6.6868        .31270E-05   -1.5481    
   2  alpha         3.0971        3.9667        .16914E-03    .24116    
   3  Normalizat    1.3599        .15916        .18713E-05   -.81794    
   4  Prefactor     .71757        .16020        .25215E-05   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63176e-09
Minuit parameter uncertainties:
  1  5.86411
  2  3.5155
  3  0.159221
  4  0.160304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648462': 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) = 12359.5875223
delta logL = 0.0175867311755

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.285e+00  5.864e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  3.097e+00  3.516e+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:  7.176e-01  1.603e-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.360e+00  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/648462/cmap_HighResolution_545702401_545961601_4FGL_J0440.3-4333_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-08-21 03:09:28.271854', job_id='648462', GAL2='0.72', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1629540568.27', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.76e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1182' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 648462: <4FGL_J0440.3-4333_daily_bin1182> in cluster <slac> Done

Job <4FGL_J0440.3-4333_daily_bin1182> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 02:40:47 2021
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:40:48 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:48 2021
Terminated at Sat Aug 21 03:09:28 2021
Results reported at Sat Aug 21 03:09:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1182 70.0881 -43.5532 545702401 545961601 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 :                                   1697.06 sec.
    Max Memory :                                 627 MB
    Average Memory :                             358.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1720 sec.
    Turnaround time :                            1721 sec.

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

