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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin947
RA = 70.0881, Dec = -43.5532
tmin = 484790401, tmax = 485049601
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='646949', job_status='RUN', time_executed='2021-08-21 02:35:52.899771', time_epoch_executed='1629538552.9' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646949/ft1_4FGL_J0440.3-4333_daily_bin947.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646949/ft1_4FGL_J0440.3-4333_daily_bin947.fits outfile=/scratch/kocevski/646949/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin947.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=484790401.0 tmax=485049601.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 3.49
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646949/ft1_filtered_4FGL_J0440.3-4333_daily_bin947.fits" evtable="EVENTS" scfile=/scratch/kocevski/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits sctable="SC_DATA" outfile=/scratch/kocevski/646949/ltcube_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.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/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits
.....................!
real 11.78
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646949/ft1_filtered_4FGL_J0440.3-4333_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits sctable="SC_DATA" expcube=/scratch/kocevski/646949/ltcube_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.fits outfile=/scratch/kocevski/646949/expmap_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.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/646949/ltcube_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.fits
.....................!
real 190.29
user 185.78
sys 4.15

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/646949/ft1_filtered_4FGL_J0440.3-4333_daily_bin947.fits scfile=/scratch/kocevski/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits outfile=/scratch/kocevski/646949/cmap_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.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 0.55
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646949/ft1_filtered_4FGL_J0440.3-4333_daily_bin947.fits scfile=/scratch/kocevski/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits outfile=/scratch/kocevski/646949/cmap_HighResolution_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.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 0.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646949/ft1_filtered_4FGL_J0440.3-4333_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/646949/ft2_4FGL_J0440.3-4333_daily_bin947.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646949/Model_4FGL_J0440.3-4333_daily_bin947.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/646949/ft1_filtered_4FGL_J0440.3-4333_daily_bin947.fits.....................!
real 108.67
user 107.27
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .46009       1.0000         .10000E-03   10000.    
     3 'norm      '    .53345E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    87.804       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0726       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4797       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.223       1.0000         .10000E-03   10000.    
    16 'norm      '    .41279E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.166       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6502       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8524       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    7.6581       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0779       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=   5125.066     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     3967 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.856        .59417E-06** at limit **
   2  norm          .46075        .42496       -.26639E-06   -.30669E-02
   3  norm          .10012E-03    29.370        .38803E-05** at limit **
   4  Prefactor     .10000E-03    7.6783        .11507E-07** at limit **
   5  Prefactor     87.827        56.185       -.33674E-06   -.34307E-04
   6  Prefactor     7.0782        14.236       -.34326E-06   -.70652E-04
   7  norm          .10000E-03    1.7282        .55535E-07** at limit **
   8  Prefactor     .10000E-03    7.4857       -.71861E-07** at limit **
   9  norm          5.1715        1.1673        .23118E-07   -.55972E-04
  10  Prefactor     .10000E-03    36.040        .28159E-06** at limit **
  11  Prefactor     .10000E-03    2.7447        .19985E-06** at limit **
  12  norm          .10000E-03    4.4740       -.95158E-07** at limit **
  13  norm          3.4794        1.9689        .19409E-06    .34963E-03
  14  Prefactor     2.4818        4.0948       -.53052E-06    .54126E-04
  15  Prefactor     30.239        22.074        .49018E-06    .21300E-03
  16  norm          .10002E-03    21.330        .18338E-05** at limit **
  17  Prefactor     .10000E-03    126.31        .30195E-05** at limit **
  18  Prefactor     31.166        28.096       -.13362E-06    .25006E-04
  19  Prefactor     .10000E-03    110.23       -.65308E-06** at limit **
  20  Prefactor     6.6496        3.2837       -.90515E-07    .76177E-04
  21  Prefactor     .10000E-03    1.9163        .47390E-07** at limit **
  22  norm          5.8517        3.4472       -.24365E-06   -.16347E-03
  23  norm          .10000E-03    2.8441        .13471E-06** at limit **
  24  norm          .10000E-03    3.7660        .21371E-06** at limit **
  25  Prefactor     .10000E-03    10.273       -.10852E-07** at limit **
  26  Prefactor     .10000E-03    6.5830       -.27304E-07** at limit **
  27  Prefactor     .10000E-03    13.694        .13830E-06** at limit **
  28  norm          7.6580        1.8635       -.18832E-07   -.40393E-04
  29  Normalizat    1.0111        .26971        .46347E-05   -.34654E-04
  30  Prefactor     1.0779        .25694       -.28458E-05    .15344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.460751
  norm       = 0.000100115
  Prefactor  = 0.0001
  Prefactor  = 87.8266
  Prefactor  = 7.07824
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.47936
  Prefactor  = 2.48185
  Prefactor  = 30.2392
  norm       = 0.000100015
  Prefactor  = 0.000100003
  Prefactor  = 31.1658
  Prefactor  = 0.000100001
  Prefactor  = 6.64959
  Prefactor  = 0.0001
  norm       = 5.8517
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.658
  Normalizat = 1.01111
  Prefactor  = 1.07785
 **********
 **   18 **HESSE 
 **********

 FCN=   5125.066     FROM HESSE     STATUS=OK           584 CALLS     4551 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .46075        .41076        .42801E-03   -1.5572    
   3  norm          .10012E-03    73.143        .34784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     87.827        56.594        .42877E-04   -1.3831    
   6  Prefactor     7.0782        14.171        .15084E-03   -1.5176    
   7  norm          .10000E-03    1.7387        .91878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1715        1.1682        .34353E-04   -1.5253    
  10  Prefactor     .10000E-03    36.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8319        .22233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.4841        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4794        1.9701        .69664E-04   -1.5335    
  14  Prefactor     2.4818        4.0452        .15671E-03   -1.5393    
  15  Prefactor     30.239        21.736        .72880E-04   -1.4608    
  16  norm          .10002E-03    28.788        .27815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    127.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.166        28.094        .71772E-04   -1.4591    
  19  Prefactor     .10000E-03    110.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6496        3.2745        .86753E-04   -1.5192    
  21  Prefactor     .10000E-03    1.9252        .96738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8517        3.4528        .98181E-04   -1.5224    
  23  norm          .10000E-03    2.8868        .11780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.8877        .27097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5853        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          7.6580        1.8666        .46474E-04   -1.5154    
  29  Normalizat    1.0111        .27978        .28803E-03   -.92659    
  30  Prefactor     1.0779        .27867        .28981E-03   -.90178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64573e-09
Minuit parameter uncertainties:
  1  0.000161395
  2  0.410767
  3  0.00581481
  4  8.31812e-06
  5  56.6283
  6  14.1776
  7  1.07047e-06
  8  1.02955e-05
  9  1.16824
  10  3.112e-05
  11  4.7171e-05
  12  5.49911e-06
  13  1.97014
  14  4.04568
  15  21.7422
  16  0.00133011
  17  0.00118833
  18  28.1058
  19  0.000490904
  20  3.27455
  21  3.04397e-07
  22  3.45294
  23  2.42797e-06
  24  5.1978e-06
  25  2.24229e-05
  26  4.86438e-06
  27  2.22631e-05
  28  1.86657
  29  0.280184
  30  0.279042
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.000e-04  5.499e-06  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:  1.078e+00  2.790e-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.011e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/646949/likelihoodResults_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.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): 102
logL (Free Index) = 5125.06705517
delta logL = -0.00105383211303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5125.06600133
delta logL = 5.32600097358e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4674       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5124.972     FROM MIGRAD    STATUS=FAILED       170 CALLS      320 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40421        86.625        .22193E-01    .13758E-02
   2  alpha         5.0000        4.8691        .16462    ** at limit **
   3  Normalizat    .97553        .39363        .28804E-03    .14509E-03
   4  Prefactor     1.1006        .13675        .28981E-03    .21115E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5124.972     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      479 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40421        86.625        .55264E-06    .13758E-02
   2  alpha         5.0000        4.8691        .98119E-02** at limit **
   3  Normalizat    .97553        .39363        .17445E-06    .14509E-03
   4  Prefactor     1.1006        .13675        .10618E-07    .21115E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5124.972     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      515 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40421        .97934        .92970E-03    .37930E-03
   2  alpha         5.0000        3.8672        .32925E-01** at limit **
   3  Normalizat    .97553        .27543        .11521E-04    .14663E-03
   4  Prefactor     1.1006        .27871        .57962E-04    .20818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.404212
  alpha      = 5
  Normalizat = 0.975531
  Prefactor  = 1.10055
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.972     FROM HESSE     STATUS=OK            25 CALLS      540 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40421        .97601        .37188E-04   -1.5581    
   2  alpha         5.0000        3.8669        .65850E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97553        .27471        .23043E-05   -.93855    
   4  Prefactor     1.1006        .27838        .11592E-04   -.89449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68341e-11
Minuit parameter uncertainties:
  1  0.976049
  2  6.8868e-06
  3  0.275109
  4  0.278746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646949': 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) = 5124.97199205
delta logL = 0.0940092833907

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.042e-01  9.760e-01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  5.000e+00  6.887e-06  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:  1.101e+00  2.787e-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.755e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/646949/cmap_HighResolution_484790401_485049601_4FGL_J0440.3-4333_daily_bin947.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-08-21 02:50:19.317433', job_id='646949', GAL2='1.10', fit_tolerance='1e-08', EG2='0.98', EG='1.01', time_epoch_completed='1629539419.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.40e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='947' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 02:50:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 646949: <4FGL_J0440.3-4333_daily_bin947> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin947 70.0881 -43.5532 484790401 485049601 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 :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

