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


Performing analysis on: 4FGL_J1945.1-4007_daily_bin1528
RA = 296.292, Dec = -40.1209
tmin = 635385601, tmax = 635644801
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='180956', job_status='RUN', time_executed='2021-09-23 13:37:39.340811', time_epoch_executed='1632429459.34' WHERE source_name='4FGL J1945.1-4007' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180956/ft1_4FGL_J1945.1-4007_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180956/ft1_4FGL_J1945.1-4007_daily_bin1528.fits outfile=/scratch/kocevski/180956/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1528.fits ra=296.292 dec=-40.1209 rad=12.0 tmin=635385601.0 tmax=635644801.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.83
user 2.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.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/180956/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1528.fits evtable="EVENTS" outfile="/scratch/kocevski/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.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/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/180956/ltcube_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.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/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits
.....................!
real 12.20
user 11.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/180956/ltcube_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.fits outfile=/scratch/kocevski/180956/expmap_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.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/180956/ltcube_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.fits
.....................!
real 190.38
user 185.06
sys 5.01

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/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits scfile=/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits outfile=/scratch/kocevski/180956/cmap_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits scfile=/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits outfile=/scratch/kocevski/180956/cmap_HighResolution_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180956/Model_4FGL_J1945.1-4007_daily_bin1528.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/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits.....................!
real 64.81
user 63.50
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits', '/scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits', expMap='/scratch/kocevski/180956/expmap_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.fits', expCube='/scratch/kocevski/180956/ltcube_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180956/Model_4FGL_J1945.1-4007_daily_bin1528.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/180956/ft1_filtered_4FGL_J1945.1-4007_daily_bin1528.fits
Spacecraft file(s): /scratch/kocevski/180956/ft2_4FGL_J1945.1-4007_daily_bin1528.fits
Exposure map: /scratch/kocevski/180956/expmap_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.fits
Exposure cube: /scratch/kocevski/180956/ltcube_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180956/Model_4FGL_J1945.1-4007_daily_bin1528.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6658.19182438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.414       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .41362       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6650       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.1637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86048       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7132       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    38.630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    232.26       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97650       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96215       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=   6658.149     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2219 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.413        19.514       -.14484E-06    .77753E-05
   2  norm          .10000E-03    3.6976        .24601E-06** at limit **
   3  norm          .41354        1.8994       -.75905E-06   -.59490E-03
   4  Prefactor     11.857        6.9408        .11213E-06    .41525E-03
   5  Prefactor     14.374        154.52       -.10485E-06    .77758E-04
   6  Prefactor     .10000E-03    8.8468       -.22001E-05** at limit **
   7  Prefactor     1.9603        68.698       -.15916E-05   -.13671E-04
   8  Prefactor     2.6656        16.920        .79473E-06    .64863E-04
   9  norm          .10000E-03    26.553       -.94772E-06** at limit **
  10  Prefactor     .10001E-03    14.195       -.71888E-05** at limit **
  11  norm          9.1639        2.3279       -.21993E-07    .84000E-03
  12  Prefactor     .81820        242.25       -.15705E-04    .38778E-04
  13  norm          .10000E-03    6.3753       -.41845E-06** at limit **
  14  norm          4.7190        39.182       -.32593E-06    .44500E-04
  15  norm          .10000E-03    1.4345       -.37749E-06** at limit **
  16  Prefactor     .10000E-03    27.376       -.34210E-06** at limit **
  17  norm          .10000E-03    5.7592       -.13319E-06** at limit **
  18  norm          .10000E-03    17.181       -.17000E-05** at limit **
  19  norm          38.623        38.628       -.24324E-06   -.41016E-04
  20  Prefactor     .10000E-03    32.505        .19101E-06** at limit **
  21  Prefactor     232.27        512.40        .62195E-06    .13113E-04
  22  Normalizat    .97626        .35752        .22643E-05    .58978E-03
  23  Prefactor     .96222        .98207E-01    .13454E-06    .16293E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 30.4131
  norm       = 0.0001
  norm       = 0.413541
  Prefactor  = 11.857
  Prefactor  = 14.3737
  Prefactor  = 0.000100005
  Prefactor  = 1.9603
  Prefactor  = 2.66556
  norm       = 0.000100001
  Prefactor  = 0.000100014
  norm       = 9.16386
  Prefactor  = 0.818196
  norm       = 0.0001
  norm       = 4.71898
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 38.6231
  Prefactor  = 0.0001
  Prefactor  = 232.265
  Normalizat = 0.976261
  Prefactor  = 0.96222
 **********
 **   18 **HESSE 
 **********

 FCN=   6658.149     FROM HESSE     STATUS=OK           364 CALLS     2583 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.413        19.523        .72651E-04   -1.4604    
   2  norm          .10000E-03    3.7157        .15323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .41354        1.9574        .22011E-03   -1.5579    
   4  Prefactor     11.857        6.9415        .58168E-03   -1.5019    
   5  Prefactor     14.374        154.80        .10598E-03   -1.4950    
   6  Prefactor     .10000E-03    9.3933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9603        69.246        .29624E-03   -1.5428    
   8  Prefactor     2.6656        17.041        .12483E-02   -1.5381    
   9  norm          .10000E-03    26.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    14.965        .33635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.1639        2.3287        .59758E-04   -1.5102    
  12  Prefactor     .81820        238.65        .71679E-02   -1.5527    
  13  norm          .10000E-03    6.4044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7190        39.581        .18535E-03   -1.5273    
  15  norm          .10000E-03    1.4676        .95807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          38.623        38.642        .64487E-04   -1.4464    
  20  Prefactor     .10000E-03    32.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     232.27        513.95        .13278E-03   -1.2648    
  22  Normalizat    .97626        .40502        .49411E-03   -.93830    
  23  Prefactor     .96222        .11158        .14539E-03   -.94000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89198e-09
Minuit parameter uncertainties:
  1  19.5267
  2  2.63849e-05
  3  1.7993
  4  6.94195
  5  94.6552
  6  0.000416505
  7  23.3304
  8  13.4847
  9  0.000331959
  10  0.000928202
  11  2.32868
  12  28.0591
  13  6.78785e-05
  14  27.3577
  15  2.81947e-05
  16  0.000112904
  17  2.27144e-05
  18  0.000466017
  19  38.6667
  20  0.000118212
  21  524.49
  22  0.406298
  23  0.111605
Done.

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

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  3.320e-04  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.622e-01  1.116e-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.763e-01  4.063e-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: 4.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180956/likelihoodResults_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.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) = 6658.14907482
delta logL = -0.000177716757207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6657.85595065
delta logL = 0.2929464507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45023       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .90713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97094       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=   6657.856     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      464 TOTAL
                     EDM=   .46E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44969        .63479        .72154E-04   -.22059E-04
   2  alpha         5.0000        3.0973        .75705E-01** at limit **
   3  Normalizat    .90698        .37201        .51012E-03   -.35658E-06
   4  Prefactor     .97110        .10754        .14468E-03   -.20431E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.449694
  alpha      = 5
  Normalizat = 0.906982
  Prefactor  = 0.971098
 **********
 **   18 **HESSE 
 **********

 FCN=   6657.856     FROM HESSE     STATUS=OK            23 CALLS      487 TOTAL
                     EDM=   .56E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44969        .63161        .28862E-05   -1.5574    
   2  alpha         5.0000        3.0969        .15141E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90698        .37213        .20405E-04   -.96215    
   4  Prefactor     .97110        .10759        .57870E-05   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57523e-14
Minuit parameter uncertainties:
  1  0.631623
  2  7.03376e-08
  3  0.373188
  4  0.107615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180956': 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) = 6657.85594761
delta logL = 0.292949498398

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  4.497e-01  6.316e-01  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  5.000e+00  7.034e-08  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.711e-01  1.076e-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.070e-01  3.732e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/180956/cmap_HighResolution_635385601_635644801_4FGL_J1945.1-4007_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2021-09-23 13:50:58.692008', job_id='180956', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.98', time_epoch_completed='1632430258.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.93e-01', ts2='0.62', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1528' AND source_name='4FGL J1945.1-4007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:50:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 180956: <4FGL_J1945.1-4007_daily_bin1528> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1945.1-4007_daily_bin1528 296.292 -40.1209 635385601 635644801 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 :                                   784.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

