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


Performing analysis on: 4FGL_J0045.1-3706_daily_bin1601
RA = 11.2936, Dec = -37.1065
tmin = 654307201, tmax = 654566401
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='538456', job_status='RUN', time_executed='2021-09-29 00:00:47.162083', time_epoch_executed='1632898847.16' WHERE source_name='4FGL J0045.1-3706' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538456/ft1_4FGL_J0045.1-3706_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538456/ft1_4FGL_J0045.1-3706_daily_bin1601.fits outfile=/scratch/kocevski/538456/ft1_filteredMKT_4FGL_J0045.1-3706_daily_bin1601.fits ra=11.2936 dec=-37.1065 rad=12.0 tmin=654307201.0 tmax=654566401.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.22
user 4.00
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.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/538456/ft1_filteredMKT_4FGL_J0045.1-3706_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/538456/ltcube_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.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/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits
.....................!
real 11.70
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/538456/ltcube_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.fits outfile=/scratch/kocevski/538456/expmap_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.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/538456/ltcube_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.fits
.....................!
real 191.22
user 185.79
sys 5.12

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
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J0045.1-3706 @ 11.2936 -37.1065

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits scfile=/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits outfile=/scratch/kocevski/538456/cmap_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.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=11.2936 yref=-37.1065 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits scfile=/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits outfile=/scratch/kocevski/538456/cmap_HighResolution_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.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=11.2936 yref=-37.1065 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538456/Model_4FGL_J0045.1-3706_daily_bin1601.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 GAL_V02
Working on...
/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits.....................!
real 35.22
user 33.95
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits', '/scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits', expMap='/scratch/kocevski/538456/expmap_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.fits', expCube='/scratch/kocevski/538456/ltcube_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538456/Model_4FGL_J0045.1-3706_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0045.1-3706'

4FGL J0045.1-3706
   Spectrum: PowerLaw
153    Prefactor:  3.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
154        Index:  2.595e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
155        Scale:  5.055e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538456/ft1_filtered_4FGL_J0045.1-3706_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/538456/ft2_4FGL_J0045.1-3706_daily_bin1601.fits
Exposure map: /scratch/kocevski/538456/expmap_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.fits
Exposure cube: /scratch/kocevski/538456/ltcube_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538456/Model_4FGL_J0045.1-3706_daily_bin1601.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) = 3958.27459965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5399       1.0000         .10000E-03   10000.    
     9 'norm      '    28.483       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5280       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .88866       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0989       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3958.272     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1680 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.934       -.14846E-04** at limit **
   2  Prefactor     4.0692        4.4372       -.12158E-06   -.25814E-03
   3  Prefactor     .10000E-03    11.791       -.15684E-06** at limit **
   4  Prefactor     .10000E-03    15.443        .94329E-06** at limit **
   5  Prefactor     .10000E-03    5.2208       -.63248E-08** at limit **
   6  Prefactor     .10000E-03    1.4832       -.33162E-07** at limit **
   7  Prefactor     .10000E-03    25.741       -.75621E-05** at limit **
   8  Prefactor     9.5391        10.033       -.17651E-05   -.13892E-02
   9  norm          28.484        34.656        .66902E-06   -.14122E-05
  10  norm          2.5282        2.5141        .27057E-07    .12880E-03
  11  Prefactor     11.662        25.609        .58522E-07   -.10163E-04
  12  Prefactor     .10000E-03    1.1140        .49181E-07** at limit **
  13  Prefactor     11.925        44.355       -.84767E-05    .38730E-04
  14  Prefactor     24.003        10.087        .38946E-06    .80501E-05
  15  Prefactor     6.6261        6.1722       -.13370E-05    .16862E-03
  16  Prefactor     .10001E-03    37.024        .20154E-04** at limit **
  17  Normalizat    .88855        .20825        .93663E-06    .24036E-04
  18  Prefactor     1.0990        .23888        .36232E-06    .44982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 4.06922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.53912
  norm       = 28.484
  norm       = 2.52817
  Prefactor  = 11.6616
  Prefactor  = 0.0001
  Prefactor  = 11.9253
  Prefactor  = 24.0034
  Prefactor  = 6.62606
  Prefactor  = 0.000100008
  Normalizat = 0.888552
  Prefactor  = 1.09899
 **********
 **   18 **HESSE 
 **********

 FCN=   3958.272     FROM HESSE     STATUS=OK           246 CALLS     1926 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0692        4.4382        .13273E-03   -1.5304    
   3  Prefactor     .10000E-03    11.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2553        .14039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4852        .74823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5391        10.744        .64873E-03   -1.5090    
   9  norm          28.484        34.739        .75067E-04   -1.4640    
  10  norm          2.5282        2.5239        .96899E-04   -1.5390    
  11  Prefactor     11.662        25.612        .11731E-03   -1.5025    
  12  Prefactor     .10000E-03    1.1161        .64845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.925        44.308        .11598E-03   -1.5017    
  14  Prefactor     24.003        10.069        .81760E-04   -1.4728    
  15  Prefactor     6.6261        6.1681        .14569E-03   -1.5193    
  16  Prefactor     .10001E-03    35.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .88855        .25690        .23738E-03   -.96864    
  18  Prefactor     1.0990        .29392        .25283E-03   -.89499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81508e-09
Minuit parameter uncertainties:
  1  0.000915909
  2  4.43856
  3  6.27264e-06
  4  3.86906e-05
  5  4.35518e-06
  6  1.93253e-07
  7  0.000387425
  8  10.7464
  9  34.7633
  10  2.52405
  11  25.6363
  12  7.65025e-08
  13  44.4308
  14  10.0701
  15  6.16865
  16  0.00109268
  17  0.257256
  18  0.294353
Done.

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

Extracting fit parameters...

4FGL J0045.1-3706
   Spectrum: PowerLaw
153    Prefactor:  9.539e+00  1.075e+01  1.000e-04  1.000e+04 ( 1.000e-12)
154        Index:  2.595e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
155        Scale:  5.055e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.099e+00  2.944e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  8.886e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 11.294 -37.106
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.19e-05

TS (Fixed Index): 1.11
Ra Dec: 11.294 -37.106
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538456/likelihoodResults_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.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) = 3958.19846243
delta logL = 0.0737055368004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3958.18744587
delta logL = 0.0847221007425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1238       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0112       1.0000          .0000       10.000    
     3 'Normalizat'    .86813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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.

 FCN=   3958.187     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      253 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1064        11.259        .70333E-03    .12033E-03
   2  Index         3.0131        1.1432        .84151E-02    .16864E-03
   3  Normalizat    .86888        .25694        .23979E-03   -.85341E-06
   4  Prefactor     1.1153        .29677        .25123E-03    .22626E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10642
  Index      = 3.01312
  Normalizat = 0.868879
  Prefactor  = 1.11532
 **********
 **   18 **HESSE 
 **********

 FCN=   3958.187     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1064        10.586        .14067E-03   -1.5138    
   2  Index         3.0131        1.0755        .16830E-02   -.40866    
   3  Normalizat    .86888        .25726        .95915E-05   -.97562    
   4  Prefactor     1.1153        .29697        .10049E-04   -.88978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43228e-12
Minuit parameter uncertainties:
  1  10.5888
  2  1.08558
  3  0.257621
  4  0.297407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538456': 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) = 3958.1874372
delta logL = 0.0847307684649

Extracting fit parameters...

4FGL J0045.1-3706
   Spectrum: PowerLaw
153    Prefactor:  8.106e+00  1.059e+01  1.000e-04  1.000e+04 ( 1.000e-12)
154        Index:  3.013e+00  1.086e+00  0.000e+00  1.000e+01 (-1.000e+00)
155        Scale:  5.055e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.115e+00  2.974e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  8.689e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 11.294 -37.106
Photon Index (Free Index): 3.01 +/- 1.09
Photon Flux (Free Index): 5.32e-08 +/- 5.87e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.09e-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/538456/cmap_HighResolution_654307201_654566401_4FGL_J0045.1-3706_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.06e-05', photon_flux_error='4.51e-08', dlogl='8.47e-02', energy_flux='1.06e-05', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-09-29 00:08:45.501332', photon_index_error2='1.09', photon_index2='3.01', ts='1.11', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.09e-05', EG='0.89', time_epoch_completed='1632899325.5', return_code='0', job_id='538456', GAL2='1.12', EG2='0.87', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.87e-08', ts2='1.29', photon_index='2.59' WHERE bin_id='1601' AND source_name='4FGL J0045.1-3706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:08:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 538456: <4FGL_J0045.1-3706_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0045.1-3706_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:00:21 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:00:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:00:22 2021
Terminated at Wed Sep 29 00:08:46 2021
Results reported at Wed Sep 29 00:08:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.1-3706_daily_bin1601 11.2936 -37.1065 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.1-3706 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   481.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            505 sec.

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

