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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1532
RA = 70.0881, Dec = -43.5532
tmin = 636422401, tmax = 636681601
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='651797', job_status='RUN', time_executed='2021-08-21 02:52:53.044893', time_epoch_executed='1629539573.04' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/651797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/651797/ft1_4FGL_J0440.3-4333_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/651797/ft1_4FGL_J0440.3-4333_daily_bin1532.fits outfile=/scratch/kocevski/651797/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1532.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=636422401.0 tmax=636681601.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 5.82
user 3.39
sys 2.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/651797/ft1_filtered_4FGL_J0440.3-4333_daily_bin1532.fits" evtable="EVENTS" scfile=/scratch/kocevski/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits sctable="SC_DATA" outfile=/scratch/kocevski/651797/ltcube_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.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/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits
.....................!
real 14.26
user 11.79
sys 2.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/651797/ft1_filtered_4FGL_J0440.3-4333_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/651797/ltcube_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.fits outfile=/scratch/kocevski/651797/expmap_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.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/651797/ltcube_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.fits
.....................!
real 196.96
user 189.67
sys 6.94

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/651797/ft1_filtered_4FGL_J0440.3-4333_daily_bin1532.fits scfile=/scratch/kocevski/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits outfile=/scratch/kocevski/651797/cmap_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.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 2.34
user 0.37
sys 1.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/651797/ft1_filtered_4FGL_J0440.3-4333_daily_bin1532.fits scfile=/scratch/kocevski/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits outfile=/scratch/kocevski/651797/cmap_HighResolution_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.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 2.33
user 0.39
sys 1.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/651797/ft1_filtered_4FGL_J0440.3-4333_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/651797/ft2_4FGL_J0440.3-4333_daily_bin1532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/651797/Model_4FGL_J0440.3-4333_daily_bin1532.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/651797/ft1_filtered_4FGL_J0440.3-4333_daily_bin1532.fits.....................!
real 119.54
user 115.62
sys 3.63

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1212       1.0000         .10000E-03   10000.    
     3 'norm      '    52.036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.790       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3416       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39127E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    94.347       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.471       1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.942       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90913       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6915       1.0000         .10000E-03   10000.    
    23 'norm      '    .10357       1.0000         .10000E-03   10000.    
    24 'norm      '    .10534E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5364       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.3095       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4228       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56469       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=   5513.122     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4007 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.189        .32650E-06** at limit **
   2  norm          1.1213        .57513        .47213E-07   -.24121E-03
   3  norm          52.035        18.188        .81359E-07   -.11507E-03
   4  Prefactor     .10016E-03    15.069        .13378E-05** at limit **
   5  Prefactor     44.728        53.834        .90524E-07   -.18283E-03
   6  Prefactor     14.796        30.580       -.45188E-06   -.43930E-04
   7  norm          .10000E-03    2.6864        .14696E-05** at limit **
   8  Prefactor     .10000E-03    39.525       -.70903E-06** at limit **
   9  norm          5.4210        1.3702       -.67197E-07   -.72180E-03
  10  Prefactor     3.4213        219.59       -.24373E-05   -.23981E-05
  11  Prefactor     .10002E-03    3.5030        .19025E-05** at limit **
  12  norm          94.360        22.818       -.10224E-05   -.11237E-02
  13  norm          .10000E-03    .63634       -.18113E-06** at limit **
  14  Prefactor     1.2871        5.0218        .29422E-05   -.58054E-03
  15  Prefactor     11.498        29.585       -.52793E-05   -.51119E-03
  16  norm          .10000E-03    5.8722        .54858E-06** at limit **
  17  Prefactor     .10000E-03    19.803       -.83865E-08** at limit **
  18  Prefactor     .10000E-03    21.322        .28151E-06** at limit **
  19  Prefactor     .10000E-03    17.186       -.15788E-06** at limit **
  20  Prefactor     16.942        4.5512        .48168E-07   -.11923E-02
  21  Prefactor     .90903        2.9246        .76250E-06    .37147E-04
  22  norm          1.6916        2.0820       -.20252E-07   -.95609E-04
  23  norm          .10434        2.7337        .53320E-06   -.26129E-03
  24  norm          .10000E-03    2.4714       -.41244E-06** at limit **
  25  Prefactor     1.5351        3.4936        .29435E-06   -.41524E-05
  26  Prefactor     .10000E-03    5.3335       -.21547E-07** at limit **
  27  Prefactor     .10000E-03    11.046       -.35377E-07** at limit **
  28  norm          2.3094        1.0746       -.89489E-08   -.12457E-03
  29  Normalizat    1.4225        .26225       -.48415E-05   -.64506E-03
  30  Prefactor     .56498        .23489        .50823E-05   -.49212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.12125
  norm       = 52.0347
  Prefactor  = 0.000100156
  Prefactor  = 44.7285
  Prefactor  = 14.7961
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 5.42105
  Prefactor  = 3.4213
  Prefactor  = 0.000100021
  norm       = 94.3603
  norm       = 0.0001
  Prefactor  = 1.28708
  Prefactor  = 11.4977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9423
  Prefactor  = 0.909027
  norm       = 1.69161
  norm       = 0.104338
  norm       = 0.0001
  Prefactor  = 1.53514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3094
  Normalizat = 1.42251
  Prefactor  = 0.564975
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.122     FROM HESSE     STATUS=OK           586 CALLS     4593 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1213        .57117        .37409E-04   -1.5496    
   3  norm          52.035        18.172        .55598E-04   -1.4264    
   4  Prefactor     .10016E-03    118.91        .54861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.728        54.123        .59946E-04   -1.4369    
   6  Prefactor     14.796        30.687        .10415E-03   -1.4938    
   7  norm          .10000E-03    4.9573        .22403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4210        1.3762        .37745E-04   -1.5242    
  10  Prefactor     3.4213        212.51        .22141E-03   -1.5338    
  11  Prefactor     .10002E-03    9.2931        .22291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          94.360        22.950        .41377E-04   -1.3762    
  13  norm          .10000E-03    .64141        .57794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2871        4.6669        .24092E-03   -1.5481    
  15  Prefactor     11.498        30.309        .11828E-03   -1.5030    
  16  norm          .10000E-03    5.9110        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.942        4.5321        .75307E-04   -1.4885    
  21  Prefactor     .90903        2.8276        .21570E-03   -1.5517    
  22  norm          1.6916        2.0570        .11322E-03   -1.5448    
  23  norm          .10434        26.907        .21993E-02   -1.5643    
  24  norm          .10000E-03    4.0911        .21403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.5351        3.4395        .20240E-03   -1.5460    
  26  Prefactor     .10000E-03    5.3353        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.3094        1.0770        .50554E-04   -1.5404    
  29  Normalizat    1.4225        .29508        .26428E-03   -.79980    
  30  Prefactor     .56498        .26315        .38382E-03   -1.0908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78675e-09
Minuit parameter uncertainties:
  1  0.000324914
  2  0.571172
  3  18.1744
  4  0.00863697
  5  54.1829
  6  30.7199
  7  0.00029691
  8  3.66553e-05
  9  1.37624
  10  54.1301
  11  0.000886285
  12  22.9526
  13  6.46002e-06
  14  4.6682
  15  30.3493
  16  8.27449e-06
  17  3.64327e-05
  18  5.13113e-05
  19  3.23815e-05
  20  4.53216
  21  2.82798
  22  2.05707
  23  3.35095
  24  1.87879e-05
  25  3.43999
  26  4.3824e-06
  27  2.5622e-06
  28  1.07697
  29  0.295431
  30  0.263719
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  9.436e+01  2.295e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  4.215e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  5.650e-01  2.637e-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.423e+00  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 71.95
Ra Dec: 70.088 -43.553
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.94e-07 +/- 7.15e-08
Energy Flux (Fixed Index): 9.52e-05 +/- 2.32e-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) = 5512.46893127
delta logL = 0.65314597305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.38506035
delta logL = 0.73701688908

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5512.385     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          103.20        28.386        .98951E-03    .41310E-02
   2  alpha         2.0414        .38516        .22390        .81847E-04
   3  Normalizat    1.4966        .23702        .58679E-01    .33733E-03
   4  Prefactor     .51781        .22347        .90260E-01    .26674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 103.199
  alpha      = 2.04145
  Normalizat = 1.49663
  Prefactor  = 0.517807
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.385     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          103.20        24.677        .39580E-04   -1.3673    
   2  alpha         2.0414        .34708        .95113E-02   -.18446    
   3  Normalizat    1.4966        .27052        .25947E-03   -.77873    
   4  Prefactor     .51781        .25421        .40007E-03   -1.1117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87752e-09
Minuit parameter uncertainties:
  1  24.6793
  2  0.348243
  3  0.27078
  4  0.254771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/651797': 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) = 5512.38505557
delta logL = 0.737021676158

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  1.032e+02  2.468e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.041e+00  3.482e-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:  5.178e-01  2.548e-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.497e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 72.97
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 2.04 +/- 0.35
Photon Flux (Free Index): 2.29e-07 +/- 7.46e-08
Energy Flux (Free Index): 9.92e-05 +/- 2.41e-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/651797/cmap_HighResolution_636422401_636681601_4FGL_J0440.3-4333_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-07', energy_flux2='9.92e-05', photon_flux_error='7.15e-08', dlogl='7.37e-01', energy_flux='9.52e-05', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-08-21 03:07:17.347747', photon_index_error2='0.35', photon_index2='2.04', ts='71.95', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='1.42', time_epoch_completed='1629540437.35', return_code='0', job_id='651797', GAL2='0.52', EG2='1.50', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='7.46e-08', ts2='72.97', photon_index='2.46' WHERE bin_id='1532' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:07:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 651797: <4FGL_J0440.3-4333_daily_bin1532> in cluster <slac> Done

Job <4FGL_J0440.3-4333_daily_bin1532> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 02:50:42 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:50:44 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:50:44 2021
Terminated at Sat Aug 21 03:07:18 2021
Results reported at Sat Aug 21 03:07:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1532 70.0881 -43.5532 636422401 636681601 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 :                                   859.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

