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


Performing analysis on: 4FGL_J1945.1-4007_daily_bin1570
RA = 296.292, Dec = -40.1209
tmin = 646272001, tmax = 646531201
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='181016', job_status='RUN', time_executed='2021-09-23 13:38:11.748213', time_epoch_executed='1632429491.75' WHERE source_name='4FGL J1945.1-4007' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181016/ft1_4FGL_J1945.1-4007_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181016/ft1_4FGL_J1945.1-4007_daily_bin1570.fits outfile=/scratch/kocevski/181016/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1570.fits ra=296.292 dec=-40.1209 rad=12.0 tmin=646272001.0 tmax=646531201.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.12
user 3.86
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/181016/ltcube_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.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/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits
.....................!
real 12.26
user 11.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/181016/ltcube_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.fits outfile=/scratch/kocevski/181016/expmap_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.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/181016/ltcube_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.fits
.....................!
real 192.40
user 185.98
sys 5.82

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/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits scfile=/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits outfile=/scratch/kocevski/181016/cmap_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits scfile=/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits outfile=/scratch/kocevski/181016/cmap_HighResolution_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181016/Model_4FGL_J1945.1-4007_daily_bin1570.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/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits.....................!
real 80.27
user 78.70
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits', '/scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits', expMap='/scratch/kocevski/181016/expmap_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.fits', expCube='/scratch/kocevski/181016/ltcube_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/181016/Model_4FGL_J1945.1-4007_daily_bin1570.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/181016/ft1_filtered_4FGL_J1945.1-4007_daily_bin1570.fits
Spacecraft file(s): /scratch/kocevski/181016/ft2_4FGL_J1945.1-4007_daily_bin1570.fits
Exposure map: /scratch/kocevski/181016/expmap_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.fits
Exposure cube: /scratch/kocevski/181016/ltcube_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/181016/Model_4FGL_J1945.1-4007_daily_bin1570.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) = 8848.74635402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.075       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.946       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3079       1.0000         .10000E-03   10000.    
     9 'norm      '    19.737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.074       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8551       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0042       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
    17 'norm      '    9.7739       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8760       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4333       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92025       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=   8848.725     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2499 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.082        21.776       -.15327E-06    .22312E-05
   2  norm          .10000E-03    4.4042       -.10001E-06** at limit **
   3  norm          .10000E-03    .65371       -.56970E-08** at limit **
   4  Prefactor     14.428        7.3783       -.11283E-06   -.24768E-04
   5  Prefactor     2.7991        621.63        .27142E-04   -.78505E-05
   6  Prefactor     .10000E-03    1.8680       -.11984E-07** at limit **
   7  Prefactor     31.935        25.843        .38483E-06   -.11667E-05
   8  Prefactor     4.3074        8.0997        .28340E-06   -.86624E-05
   9  norm          19.737        18.142       -.11919E-07   -.20966E-06
  10  Prefactor     12.073        8.5471        .38909E-08   -.89220E-05
  11  norm          5.2399        1.6011        .44168E-07   -.14973E-04
  12  Prefactor     .10000E-03    16.058        .86345E-07** at limit **
  13  norm          2.8555        8.0711        .90506E-06   -.52815E-05
  14  norm          .10000E-03    9.7599        .57521E-06** at limit **
  15  norm          1.0037        1.3427       -.10855E-06   -.28716E-03
  16  Prefactor     11.610        84.340       -.87315E-05   -.36355E-06
  17  norm          9.7747        4.8628        .11177E-06   -.10184E-04
  18  norm          8.8809        16.811        .28078E-06    .74588E-06
  19  norm          .10000E-03    9.9869       -.41838E-06** at limit **
  20  Prefactor     .10000E-03    20.434       -.78381E-07** at limit **
  21  Prefactor     .10000E-03    49.734       -.25610E-06** at limit **
  22  Normalizat    1.4332        .29475       -.13258E-05   -.63490E-07
  23  Prefactor     .92028        .89169E-01    .35021E-06   -.13828E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.0816
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4278
  Prefactor  = 2.79907
  Prefactor  = 0.0001
  Prefactor  = 31.9355
  Prefactor  = 4.3074
  norm       = 19.7366
  Prefactor  = 12.073
  norm       = 5.23992
  Prefactor  = 0.0001
  norm       = 2.85555
  norm       = 0.0001
  norm       = 1.00371
  Prefactor  = 11.6097
  norm       = 9.77466
  norm       = 8.88093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43325
  Prefactor  = 0.920276
 **********
 **   18 **HESSE 
 **********

 FCN=   8848.725     FROM HESSE     STATUS=OK           378 CALLS     2877 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.082        21.792        .76991E-04   -1.4667    
   2  norm          .10000E-03    4.4322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .65555        .74269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.428        7.3808        .10545E-03   -1.4948    
   5  Prefactor     2.7991        630.48        .23774E-02   -1.5373    
   6  Prefactor     .10000E-03    1.8710        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.935        25.852        .35446E-03   -1.4577    
   8  Prefactor     4.3074        8.0907        .97047E-03   -1.5293    
   9  norm          19.737        18.143        .90155E-04   -1.4819    
  10  Prefactor     12.073        8.5493        .11529E-03   -1.5013    
  11  norm          5.2399        1.6009        .62876E-04   -1.5250    
  12  Prefactor     .10000E-03    16.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8555        8.0779        .12030E-02   -1.5370    
  14  norm          .10000E-03    9.7950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0037        1.1099        .12341E-02   -1.5508    
  16  Prefactor     11.610        85.294        .11794E-03   -1.5026    
  17  norm          9.7747        4.8720        .12818E-03   -1.5083    
  18  norm          8.8809        16.829        .13454E-03   -1.5112    
  19  norm          .10000E-03    9.9940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4332        .34057        .43586E-03   -.79672    
  23  Prefactor     .92028        .10478        .16511E-03   -.95436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77237e-10
Minuit parameter uncertainties:
  1  21.798
  2  6.09565e-06
  3  7.14333e-08
  4  7.38125
  5  84.9376
  6  8.49096e-08
  7  25.861
  8  8.09278
  9  18.1479
  10  8.55013
  11  1.6009
  12  4.15717e-07
  13  8.08095
  14  3.53753e-06
  15  1.10987
  16  63.0628
  17  4.87217
  18  16.8378
  19  3.43094e-06
  20  7.57478e-06
  21  7.6902e-06
  22  0.341109
  23  0.104806
Done.

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

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.974e+01  1.815e+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:  9.203e-01  1.048e-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.433e+00  3.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 296.292 -40.121
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.28e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.38e-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) = 8848.52404673
delta logL = 0.201044994856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8848.32496173
delta logL = 0.400129994121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4009       1.0000         .10000E-03   10000.    
     2 'alpha     '    .29862       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92336       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.

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

 FCN=   8848.325     FROM MIGRAD    STATUS=FAILED        91 CALLS      258 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3972        12.599        .13831E-03   -.88115E-04
   2  alpha         .29563        2.5688        .77261E-01    .23619E-03
   3  Normalizat    1.4314        .32685        .43620E-03   -.22414E-05
   4  Prefactor     .92341        .10285        .16489E-03    .27578E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8848.325     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      329 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3972        12.599        .19282E-03   -1.5128    
   2  alpha         .29563        2.5688        .50958E-02   -1.0796    
   3  Normalizat    1.4314        .32685        .57246E-03   -.79724    
   4  Prefactor     .92341        .10285        .15198E-03   -.95328    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8848.325     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      367 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3973        12.652        .55324E-05   -.24659E-05
   2  alpha         .29564        2.5695        .15452E-01    .40024E-06
   3  Normalizat    1.4314        .32712        .17448E-04   -.52126E-07
   4  Prefactor     .92341        .10294        .65958E-05   -.68945E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.39725
  alpha      = 0.295643
  Normalizat = 1.43141
  Prefactor  = 0.923411
 **********
 **   18 **HESSE 
 **********

 FCN=   8848.325     FROM HESSE     STATUS=OK            25 CALLS      392 TOTAL
                     EDM=   .76E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3973        12.671        .11065E-05   -1.5128    
   2  alpha         .29564        2.5702        .61809E-03   -1.0795    
   3  Normalizat    1.4314        .32696        .17448E-04   -.79724    
   4  Prefactor     .92341        .10286        .13192E-05   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64307e-15
Minuit parameter uncertainties:
  1  12.6751
  2  1.28642
  3  0.327439
  4  0.102878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181016': 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) = 8848.32495413
delta logL = 0.400137587058

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  8.397e+00  1.268e+01  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  2.956e-01  1.286e+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:  9.234e-01  1.029e-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.431e+00  3.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 296.292 -40.121
Photon Index (Free Index): 0.30 +/- 1.29
Photon Flux (Free Index): 4.57e-09 +/- 4.81e-09
Energy Flux (Free Index): 2.50e-05 +/- 3.45e-05

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/181016/cmap_HighResolution_646272001_646531201_4FGL_J1945.1-4007_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-08', energy_flux2='2.50e-05', photon_flux_error='1.18e-08', dlogl='4.00e-01', energy_flux='1.50e-05', photon_flux2='4.57e-09', job_status='DONE', time_completed='2021-09-23 13:52:36.161534', photon_index_error2='1.29', photon_index2='0.30', ts='5.11', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='3.45e-05', EG='1.43', time_epoch_completed='1632430356.16', return_code='0', job_id='181016', GAL2='0.92', EG2='1.43', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.81e-09', ts2='5.91', photon_index='1.96' WHERE bin_id='1570' AND source_name='4FGL J1945.1-4007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:52:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 181016: <4FGL_J1945.1-4007_daily_bin1570> in cluster <slac> Done

Job <4FGL_J1945.1-4007_daily_bin1570> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 13:36:52 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 13:36:54 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:36:54 2021
Terminated at Thu Sep 23 13:52:36 2021
Results reported at Thu Sep 23 13:52:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1945.1-4007_daily_bin1570 296.292 -40.1209 646272001 646531201 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 :                                   857.39 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

