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


Performing analysis on: 4FGL_J1945.1-4007_daily_bin1278
RA = 296.292, Dec = -40.1209
tmin = 570585601, tmax = 570844801
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='179509', job_status='RUN', time_executed='2021-09-23 13:35:04.752216', time_epoch_executed='1632429304.75' WHERE source_name='4FGL J1945.1-4007' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179509/ft1_4FGL_J1945.1-4007_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179509/ft1_4FGL_J1945.1-4007_daily_bin1278.fits outfile=/scratch/kocevski/179509/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1278.fits ra=296.292 dec=-40.1209 rad=12.0 tmin=570585601.0 tmax=570844801.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.02
user 2.82
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.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/179509/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1278.fits evtable="EVENTS" outfile="/scratch/kocevski/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/179509/ltcube_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.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/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits
.....................!
real 12.15
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/179509/ltcube_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.fits outfile=/scratch/kocevski/179509/expmap_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.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/179509/ltcube_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.fits
.....................!
real 190.16
user 185.13
sys 4.69

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/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.fits scfile=/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits outfile=/scratch/kocevski/179509/cmap_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.fits scfile=/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits outfile=/scratch/kocevski/179509/cmap_HighResolution_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/179509/ft2_4FGL_J1945.1-4007_daily_bin1278.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179509/Model_4FGL_J1945.1-4007_daily_bin1278.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/179509/ft1_filtered_4FGL_J1945.1-4007_daily_bin1278.fits.....................!
real 45.93
user 44.13
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13650E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.887       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.203       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.7906       1.0000         .10000E-03   10000.    
    16 'Prefactor '    118.34       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16325E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    149.20       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4669       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91438       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=   4045.273     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2991 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.518       -.23731E-07** at limit **
   2  norm          .10000E-03    4.2638       -.37394E-07** at limit **
   3  norm          1.2065        2.6222        .24962E-06    .26640E-03
   4  Prefactor     .10000E-03    2.4076       -.16135E-07** at limit **
   5  Prefactor     .10000E-03    522.86       -.30770E-05** at limit **
   6  Prefactor     11.888        15.483        .61467E-06   -.32405E-04
   7  Prefactor     .10000E-03    24.161        .64622E-07** at limit **
   8  Prefactor     54.225        32.574       -.44571E-07   -.15842E-03
   9  norm          .10000E-03    13.669       -.10769E-08** at limit **
  10  Prefactor     .10000E-03    15.280        .96816E-07** at limit **
  11  norm          .10000E-03    1.6403        .10244E-05** at limit **
  12  Prefactor     .10000E-03    391.86       -.12317E-05** at limit **
  13  norm          .10000E-03    10.522        .41456E-07** at limit **
  14  norm          .10000E-03    143.11       -.69377E-06** at limit **
  15  norm          6.7910        4.3219        .46939E-07   -.22575E-04
  16  Prefactor     118.48        190.47        .51567E-06   -.21558E-04
  17  norm          .10000E-03    5.2630       -.12803E-06** at limit **
  18  norm          .10000E-03    21.396        .26253E-06** at limit **
  19  norm          .10000E-03    194.87        .21244E-06** at limit **
  20  Prefactor     149.17        159.38        .30986E-05   -.12798E-04
  21  Prefactor     .10000E-03    231.74        .18061E-06** at limit **
  22  Normalizat    1.4665        .53244       -.65585E-05   -.56673E-04
  23  Prefactor     .91450        .12969        .70445E-06   -.37537E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.20651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8885
  Prefactor  = 0.0001
  Prefactor  = 54.2254
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.79098
  Prefactor  = 118.485
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 149.167
  Prefactor  = 0.0001
  Normalizat = 1.46649
  Prefactor  = 0.914504
 **********
 **   18 **HESSE 
 **********

 FCN=   4045.273     FROM HESSE     STATUS=OK           362 CALLS     3353 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.2675        .12825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2065        2.1965        .15005E-02   -1.5488    
   4  Prefactor     .10000E-03    2.4087        .96380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    524.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.888        15.568        .11619E-03   -1.5018    
   7  Prefactor     .10000E-03    24.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.225        32.736        .54481E-04   -1.4234    
   9  norm          .10000E-03    13.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2199        .14963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    394.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    144.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7910        4.3289        .10201E-03   -1.5187    
  16  Prefactor     118.48        190.40        .18495E-03   -1.3527    
  17  norm          .10000E-03    5.2739        .14244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    195.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     149.17        159.22        .16497E-03   -1.3259    
  21  Prefactor     .10000E-03    231.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4665        .60154        .47364E-03   -.78724    
  23  Prefactor     .91450        .15328        .16013E-03   -.95636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62296e-10
Minuit parameter uncertainties:
  1  3.75917e-06
  2  4.92144e-06
  3  2.19664
  4  2.00097e-06
  5  0.000947425
  6  15.5729
  7  1.65383e-05
  8  32.7464
  9  4.56306e-06
  10  3.6469e-05
  11  3.76337e-05
  12  3.35811e-05
  13  1.07604e-05
  14  0.000215679
  15  4.32905
  16  191.4
  17  6.51436e-06
  18  4.05724e-06
  19  0.000357177
  20  159.679
  21  0.00056057
  22  0.604495
  23  0.153351
Done.

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

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  4.563e-06  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.145e-01  1.534e-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.466e+00  6.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/179509/likelihoodResults_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4045.2725624
delta logL = -2.69636420853e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4045.27253545
delta logL = -1.20380718727e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91449       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=   4045.273     FROM MIGRAD    STATUS=FAILED        78 CALLS      218 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10105E-03    6550.9        .18142E-02** at limit **
   2  alpha         1.7454        2.9053        .16991E-01    .82721E-06
   3  Normalizat    1.4665        .49551        .47365E-03   -.52457E-04
   4  Prefactor     .91451        .13773        .16013E-03    .78870E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4045.273     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      389 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10105E-03    6550.9        .59635E-03** at limit **
   2  alpha         1.7454        2.9053        .49934E-05    .82721E-06
   3  Normalizat    1.4665        .49551        .84032E-06   -.52457E-04
   4  Prefactor     .91451        .13773        .18699E-06    .78870E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4045.273     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      425 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.240        .36285E-03** at limit **
   2  alpha         1.5348        4.2081        .33982E-02   -.13382E-08
   3  Normalizat    1.4665        .53626        .18946E-04    .66007E-06
   4  Prefactor     .91451        .14914        .32026E-04   -.96556E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53479
  Normalizat = 1.46648
  Prefactor  = 0.914505
 **********
 **   18 **HESSE 
 **********

 FCN=   4045.273     FROM HESSE     STATUS=OK            29 CALLS      454 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.243        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5348        3.3641        .67964E-01   -.39638    
   3  Normalizat    1.4665        .53627        .37892E-05   -.78724    
   4  Prefactor     .91451        .14914        .64052E-05   -.95636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87706e-13
Minuit parameter uncertainties:
  1  2.0453e-06
  2  766.342
  3  0.538359
  4  0.149206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179509': 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) = 4045.27253529
delta logL = 1.46731508721e-07

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  2.045e-06  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  1.535e+00  7.663e+02  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.145e-01  1.492e-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.466e+00  5.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/179509/cmap_HighResolution_570585601_570844801_4FGL_J1945.1-4007_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-23 13:46:00.904473', job_id='179509', GAL2='0.91', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1632429960.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1278' AND source_name='4FGL J1945.1-4007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:46:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 179509: <4FGL_J1945.1-4007_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1945.1-4007_daily_bin1278> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 23 13:31:48 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 13:31:51 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:31:51 2021
Terminated at Thu Sep 23 13:46:01 2021
Results reported at Thu Sep 23 13:46:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1945.1-4007_daily_bin1278 296.292 -40.1209 570585601 570844801 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 :                                   635.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             278.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

