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


Performing analysis on: 4FGL_J1945.1-4007_daily_bin1563
RA = 296.292, Dec = -40.1209
tmin = 644457601, tmax = 644716801
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='181006', job_status='RUN', time_executed='2021-09-23 13:37:27.977514', time_epoch_executed='1632429447.98' WHERE source_name='4FGL J1945.1-4007' and cadence='daily' and bin_id='1563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181006/ft1_4FGL_J1945.1-4007_daily_bin1563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181006/ft1_4FGL_J1945.1-4007_daily_bin1563.fits outfile=/scratch/kocevski/181006/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1563.fits ra=296.292 dec=-40.1209 rad=12.0 tmin=644457601.0 tmax=644716801.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 2.79
user 2.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181006/ft1_filtered_4FGL_J1945.1-4007_daily_bin1563.fits" evtable="EVENTS" scfile=/scratch/kocevski/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits sctable="SC_DATA" outfile=/scratch/kocevski/181006/ltcube_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.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/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits
.....................!
real 12.46
user 12.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181006/ft1_filtered_4FGL_J1945.1-4007_daily_bin1563.fits evtable="EVENTS" scfile=/scratch/kocevski/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits sctable="SC_DATA" expcube=/scratch/kocevski/181006/ltcube_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.fits outfile=/scratch/kocevski/181006/expmap_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.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/181006/ltcube_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.fits
.....................!
real 190.96
user 186.09
sys 4.51

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/181006/ft1_filtered_4FGL_J1945.1-4007_daily_bin1563.fits scfile=/scratch/kocevski/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits outfile=/scratch/kocevski/181006/cmap_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181006/ft1_filtered_4FGL_J1945.1-4007_daily_bin1563.fits scfile=/scratch/kocevski/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits outfile=/scratch/kocevski/181006/cmap_HighResolution_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181006/ft1_filtered_4FGL_J1945.1-4007_daily_bin1563.fits evtable="EVENTS" scfile=/scratch/kocevski/181006/ft2_4FGL_J1945.1-4007_daily_bin1563.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181006/Model_4FGL_J1945.1-4007_daily_bin1563.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/181006/ft1_filtered_4FGL_J1945.1-4007_daily_bin1563.fits....................!
real 37.88
user 36.65
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    135.48       1.0000         .10000E-03   10000.    
     2 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6557       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.751       1.0000         .10000E-03   10000.    
     5 'Prefactor '    274.41       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.600       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2161       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42835       1.0000         .10000E-03   10000.    
    13 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.993       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8777       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.504       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92251       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98061       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=   3348.938     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2887 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          135.99        2098.3       -.21398E-04   -.12847E-05
   2  norm          .10000E-03    51.249        .13475E-05** at limit **
   3  norm          6.6539        8.3827       -.27773E-06   -.79595E-05
   4  Prefactor     17.765        17.604       -.27455E-06   -.21123E-04
   5  Prefactor     274.39        288.72       -.25524E-05   -.81688E-05
   6  Prefactor     .10000E-03    26.547        .10894E-05** at limit **
   7  Prefactor     .10000E-03    32.406        .49218E-07** at limit **
   8  Prefactor     40.594        34.915        .21206E-06   -.13686E-06
   9  norm          .10000E-03    19.921       -.32207E-06** at limit **
  10  Prefactor     1.2161        16.459       -.14443E-05   -.22283E-04
  11  norm          4.7917        2.4292       -.58586E-07    .19274E-05
  12  Prefactor     .39650        1032.9       -.28597E-04   -.30551E-05
  13  norm          .10000E-03    12.601       -.33529E-07** at limit **
  14  norm          19.010        37.497        .12689E-05    .26343E-04
  15  norm          2.8100        2.9878       -.83912E-07    .75563E-05
  16  Prefactor     .10000E-03    32.891        .19810E-06** at limit **
  17  norm          5.8771        5.7942       -.22259E-07    .22733E-04
  18  norm          .10000E-03    6.0361        .42331E-06** at limit **
  19  norm          .10000E-03    9.2124       -.59762E-07** at limit **
  20  Prefactor     15.547        29.515       -.14369E-05    .67647E-06
  21  Prefactor     .10000E-03    41.638       -.93561E-06** at limit **
  22  Normalizat    .92206        .49892       -.18257E-04   -.65013E-04
  23  Prefactor     .98078        .17909        .62674E-05   -.22793E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 135.989
  norm       = 0.0001
  norm       = 6.65394
  Prefactor  = 17.7652
  Prefactor  = 274.388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5941
  norm       = 0.0001
  Prefactor  = 1.21613
  norm       = 4.79173
  Prefactor  = 0.396496
  norm       = 0.0001
  norm       = 19.0098
  norm       = 2.81004
  Prefactor  = 0.0001
  norm       = 5.87708
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.5469
  Prefactor  = 0.0001
  Normalizat = 0.922062
  Prefactor  = 0.980781
 **********
 **   18 **HESSE 
 **********

 FCN=   3348.938     FROM HESSE     STATUS=OK           378 CALLS     3265 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          135.99        2096.9        .17300E-03   -1.3370    
   2  norm          .10000E-03    51.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6539        8.3751        .15554E-03   -1.5192    
   4  Prefactor     17.765        17.591        .95062E-04   -1.4865    
   5  Prefactor     274.39        288.41        .12243E-03   -1.2380    
   6  Prefactor     .10000E-03    26.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.594        34.898        .62909E-04   -1.4433    
   9  norm          .10000E-03    19.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2161        17.137        .20478E-02   -1.5487    
  11  norm          4.7917        2.4240        .60015E-04   -1.5270    
  12  Prefactor     .39650        66.730        .12181       -1.5582    
  13  norm          .10000E-03    12.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.010        37.449        .91902E-04   -1.4836    
  15  norm          2.8100        2.9790        .99832E-04   -1.5373    
  16  Prefactor     .10000E-03    32.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8771        5.7853        .13000E-03   -1.5223    
  18  norm          .10000E-03    6.0609        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.2132        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.547        29.462        .10172E-03   -1.4919    
  21  Prefactor     .10000E-03    41.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92206        .49862        .47649E-03   -.95689    
  23  Prefactor     .98078        .17786        .16633E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72904e-09
Minuit parameter uncertainties:
  1  1118.38
  2  8.55404e-05
  3  8.37656
  4  17.5959
  5  289.934
  6  6.77278e-05
  7  1.03789e-05
  8  34.9158
  9  1.00576e-05
  10  9.13307
  11  2.42408
  12  10.2979
  13  4.00648e-05
  14  37.495
  15  2.97913
  16  6.81249e-05
  17  5.78587
  18  2.09283e-05
  19  2.76059e-05
  20  29.4898
  21  5.06329e-05
  22  0.501151
  23  0.177971
Done.

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

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  1.006e-05  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.808e-01  1.780e-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:  9.221e-01  5.012e-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: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/181006/likelihoodResults_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.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) = 3348.93805785
delta logL = -0.000219485639718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3348.93784204
delta logL = -3.67060556528e-06

Fit tolerance = 1e-08

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

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

 FCN=   3348.938     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    891.55        .16300E-01** at limit **
   2  alpha         1.8299        3.6145        .20000        .20179E-08
   3  Normalizat    .92206        .77108E-01    .47652E-03    .19222E-03
   4  Prefactor     .98078        .27915E-01    .16633E-03    .58330E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8299
  Normalizat = 0.922063
  Prefactor  = 0.980783
 **********
 **   18 **HESSE 
 **********

 FCN=   3348.938     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.080        .25280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8299        3.3211        .80000E-02   -.27136    
   3  Normalizat    .92206        .46843        .19061E-04   -.95689    
   4  Prefactor     .98078        .17023        .33266E-04   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03033e-10
Minuit parameter uncertainties:
  1  1.78214e-05
  2  957.459
  3  0.470524
  4  0.170319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181006': 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) = 3348.93783836
delta logL = 9.33096089284e-09

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  1.782e-05  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  1.830e+00  9.575e+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.808e-01  1.703e-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:  9.221e-01  4.705e-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/181006/cmap_HighResolution_644457601_644716801_4FGL_J1945.1-4007_daily_bin1563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-05', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-23 13:46:59.090567', job_id='181006', GAL2='0.98', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632430019.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.33e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1563' AND source_name='4FGL J1945.1-4007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:46:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 181006: <4FGL_J1945.1-4007_daily_bin1563> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1945.1-4007_daily_bin1563 296.292 -40.1209 644457601 644716801 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 :                                   566.44 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            608 sec.

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

