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


Performing analysis on: 4FGL_J1945.1-4007_daily_bin972
RA = 296.292, Dec = -40.1209
tmin = 491270401, tmax = 491529601
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='178250', job_status='RUN', time_executed='2021-09-23 13:27:33.537302', time_epoch_executed='1632428853.54' WHERE source_name='4FGL J1945.1-4007' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178250/ft1_4FGL_J1945.1-4007_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178250/ft1_4FGL_J1945.1-4007_daily_bin972.fits outfile=/scratch/kocevski/178250/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin972.fits ra=296.292 dec=-40.1209 rad=12.0 tmin=491270401.0 tmax=491529601.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.57
user 3.36
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.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/178250/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin972.fits evtable="EVENTS" outfile="/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/178250/ltcube_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.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/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits
.....................!
real 12.09
user 11.66
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/178250/ltcube_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.fits outfile=/scratch/kocevski/178250/expmap_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.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/178250/ltcube_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.fits
.....................!
real 190.61
user 185.24
sys 5.06

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

Setting source of interest to:
4FGL J1945.1-4007 @ 296.292 -40.1209

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits scfile=/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits outfile=/scratch/kocevski/178250/cmap_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.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=296.292 yref=-40.1209 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits scfile=/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits outfile=/scratch/kocevski/178250/cmap_HighResolution_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.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=296.292 yref=-40.1209 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178250/Model_4FGL_J1945.1-4007_daily_bin972.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/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits.....................!
real 69.07
user 67.63
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits', '/scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits', expMap='/scratch/kocevski/178250/expmap_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.fits', expCube='/scratch/kocevski/178250/ltcube_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178250/Model_4FGL_J1945.1-4007_daily_bin972.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1945.1-4007'

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.355e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  1.961e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
506         beta:  5.304e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
507           Eb:  1.769e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/178250/ft1_filtered_4FGL_J1945.1-4007_daily_bin972.fits
Spacecraft file(s): /scratch/kocevski/178250/ft2_4FGL_J1945.1-4007_daily_bin972.fits
Exposure map: /scratch/kocevski/178250/expmap_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.fits
Exposure cube: /scratch/kocevski/178250/ltcube_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178250/Model_4FGL_J1945.1-4007_daily_bin972.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) = 7747.15414207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .65128       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .90452       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42493E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10735E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .35086       1.0000         .10000E-03   10000.    
    18 'norm      '    .19587E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.344       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9818       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7747.152     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2594 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.353       -.11638E-06** at limit **
   2  norm          .10000E-03    1.7868       -.16682E-07** at limit **
   3  norm          .65092        2.4773        .15145E-05   -.14845E-03
   4  Prefactor     .10000E-03    3.9183       -.42968E-07** at limit **
   5  Prefactor     40.845        79.397       -.51346E-05   -.16386E-03
   6  Prefactor     .10000E-03    3.9877        .71715E-07** at limit **
   7  Prefactor     .10000E-03    17.529       -.28480E-06** at limit **
   8  Prefactor     .89505        8.9274       -.12917E-06   -.30866E-04
   9  norm          4.8911        21.845        .26048E-06    .30528E-04
  10  Prefactor     .10000E-03    7.5170        .90888E-07** at limit **
  11  norm          .13487        .62092        .24113E-06   -.57164E-03
  12  Prefactor     .10000E-03    16.005        .36013E-06** at limit **
  13  norm          .10000E-03    3.6618        .18917E-07** at limit **
  14  norm          .10021E-03    12.791        .22759E-05** at limit **
  15  norm          .10000E-03    1.0832        .44464E-07** at limit **
  16  Prefactor     .10000E-03    26.454       -.11732E-06** at limit **
  17  norm          .35050        2.7707        .24790E-05   -.21456E-03
  18  norm          .10000E-03    66.612        .61954E-06** at limit **
  19  norm          .10000E-03    9.0009        .54201E-07** at limit **
  20  Prefactor     .10000E-03    16.376        .15687E-06** at limit **
  21  Prefactor     20.323        67.705       -.55323E-05   -.11785E-03
  22  Normalizat    1.9819        .28301       -.81622E-06   -.23825E-03
  23  Prefactor     .76450        .86102E-01   -.91408E-07   -.44571E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.650924
  Prefactor  = 0.0001
  Prefactor  = 40.8454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.895048
  norm       = 4.89107
  Prefactor  = 0.0001
  norm       = 0.134869
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100209
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.350504
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3229
  Normalizat = 1.98193
  Prefactor  = 0.764502
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.152     FROM HESSE     STATUS=OK           364 CALLS     2958 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7876        .11490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .65092        2.5155        .26149E-03   -1.5547    
   4  Prefactor     .10000E-03    3.9456        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.845        82.613        .62700E-04   -1.4429    
   6  Prefactor     .10000E-03    4.0116        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .89505        33.896        .47545E-02   -1.5519    
   9  norm          4.8911        21.907        .18214E-03   -1.5266    
  10  Prefactor     .10000E-03    7.7124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13487        1.1276        .13236E-02   -1.5635    
  12  Prefactor     .10000E-03    16.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.6690        .16447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10021E-03    58.860        .57848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1317        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .35050        2.8639        .29114E-03   -1.5590    
  18  norm          .10000E-03    69.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.0104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.323        69.775        .88801E-04   -1.4806    
  22  Normalizat    1.9819        .33477        .36453E-03   -.65004    
  23  Prefactor     .76450        .10366        .16608E-03   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40688e-08
Minuit parameter uncertainties:
  1  2.57263e-05
  2  9.41713e-07
  3  2.51587
  4  5.48393e-06
  5  82.8461
  6  3.04453e-06
  7  6.71954e-05
  8  11.0222
  9  20.7148
  10  1.46248e-05
  11  0.779686
  12  6.68652e-05
  13  2.6981e-06
  14  0.00702762
  15  1.63794e-05
  16  3.45801e-05
  17  2.00365
  18  9.12731e-05
  19  8.41538e-06
  20  4.07135e-05
  21  70.0571
  22  0.335167
  23  0.103682
Done.

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

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  4.891e+00  2.071e+01  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  1.961e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
506         beta:  5.304e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
507           Eb:  1.769e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
792    Prefactor:  7.645e-01  1.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
793        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
794        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
791   Normalization:  1.982e+00  3.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 296.292 -40.121
Photon Flux Upper Limit: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178250/likelihoodResults_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.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) = 7747.06563334
delta logL = 0.0861515081042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7747.0654762
delta logL = 0.0863086534264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8069       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7902       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7950E+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=   7747.065     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      273 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8068        16.148        .18350E-03    .39714E-04
   2  alpha         2.7894        1.8149        .39808E-01    .87992E-05
   3  Normalizat    1.9837        .33285        .36438E-03   -.59280E-06
   4  Prefactor     .76259        .10178        .16624E-03   -.19832E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.80681
  alpha      = 2.78941
  Normalizat = 1.98373
  Prefactor  = 0.762587
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.065     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8068        13.852        .73398E-05   -1.5269    
   2  alpha         2.7894        1.6074        .15923E-02    .11603    
   3  Normalizat    1.9837        .33303        .14575E-04   -.64959    
   4  Prefactor     .76259        .10184        .66498E-05   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.064e-12
Minuit parameter uncertainties:
  1  13.8608
  2  1.74829
  3  0.333424
  4  0.101863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178250': 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) = 7747.06547469
delta logL = 0.0863101608747

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  4.807e+00  1.386e+01  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  2.789e+00  1.748e+00  0.000e+00  5.000e+00 ( 1.000e+00)
506         beta:  5.304e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
507           Eb:  1.769e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
792    Prefactor:  7.626e-01  1.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
793        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
794        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
791   Normalization:  1.984e+00  3.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 296.292 -40.121

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/178250/cmap_HighResolution_491270401_491529601_4FGL_J1945.1-4007_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-05', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-09-23 13:42:10.609840', job_id='178250', GAL2='0.76', fit_tolerance='1e-08', EG2='1.98', EG='1.98', time_epoch_completed='1632429730.61', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.63e-02', ts2='0.24', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='972' AND source_name='4FGL J1945.1-4007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:42:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 178250: <4FGL_J1945.1-4007_daily_bin972> in cluster <slac> Done

Job <4FGL_J1945.1-4007_daily_bin972> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 13:27:24 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 13:27:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 13:27:25 2021
Terminated at Thu Sep 23 13:42:11 2021
Results reported at Thu Sep 23 13:42:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1945.1-4007_daily_bin972 296.292 -40.1209 491270401 491529601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1945.1-4007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   873.36 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

