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


Performing analysis on: 4FGL_J1945.1-4007_daily_bin1350
RA = 296.292, Dec = -40.1209
tmin = 589248001, tmax = 589507201
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='179619', job_status='RUN', time_executed='2021-09-23 13:32:52.444493', time_epoch_executed='1632429172.44' WHERE source_name='4FGL J1945.1-4007' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179619/ft1_4FGL_J1945.1-4007_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179619/ft1_4FGL_J1945.1-4007_daily_bin1350.fits outfile=/scratch/kocevski/179619/ft1_filteredMKT_4FGL_J1945.1-4007_daily_bin1350.fits ra=296.292 dec=-40.1209 rad=12.0 tmin=589248001.0 tmax=589507201.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.13
user 2.94
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179619/ft1_filtered_4FGL_J1945.1-4007_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/179619/ltcube_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.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/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits
.....................!
real 12.41
user 12.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179619/ft1_filtered_4FGL_J1945.1-4007_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/179619/ltcube_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.fits outfile=/scratch/kocevski/179619/expmap_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.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/179619/ltcube_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.fits
.....................!
real 189.96
user 185.12
sys 4.53

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/179619/ft1_filtered_4FGL_J1945.1-4007_daily_bin1350.fits scfile=/scratch/kocevski/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits outfile=/scratch/kocevski/179619/cmap_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179619/ft1_filtered_4FGL_J1945.1-4007_daily_bin1350.fits scfile=/scratch/kocevski/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits outfile=/scratch/kocevski/179619/cmap_HighResolution_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/179619/ft1_filtered_4FGL_J1945.1-4007_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/179619/ft2_4FGL_J1945.1-4007_daily_bin1350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179619/Model_4FGL_J1945.1-4007_daily_bin1350.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/179619/ft1_filtered_4FGL_J1945.1-4007_daily_bin1350.fits.....................!
real 66.47
user 65.13
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    54.994       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.553       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.740       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0826       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    62.773       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    36.965       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71277       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0918       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=   7120.844     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2522 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          54.993        23.644       -.15493E-06    .39171E-05
   2  norm          .10000E-03    4.1699        .21610E-06** at limit **
   3  norm          .10000E-03    .95182       -.47360E-07** at limit **
   4  Prefactor     19.554        8.1759        .10185E-05    .11457E-03
   5  Prefactor     10.294        189.25       -.20065E-03    .83741E-05
   6  Prefactor     .10000E-03    8.1147       -.33281E-06** at limit **
   7  Prefactor     .10000E-03    11.174       -.79769E-07** at limit **
   8  Prefactor     24.738        16.193        .99848E-07    .37132E-04
   9  norm          .10000E-03    14.958        .35200E-07** at limit **
  10  Prefactor     .10000E-03    4.2902       -.71537E-08** at limit **
  11  norm          3.0826        1.7061       -.20117E-06   -.12691E-03
  12  Prefactor     .10000E-03    41.702        .47746E-05** at limit **
  13  norm          .10000E-03    5.0265       -.62433E-07** at limit **
  14  norm          62.761        34.420       -.83117E-06    .94702E-05
  15  norm          3.7725        2.3649       -.17111E-06    .60217E-04
  16  Prefactor     .10000E-03    40.007       -.66058E-05** at limit **
  17  norm          .10000E-03    3.2638       -.79493E-07** at limit **
  18  norm          36.965        25.712       -.15449E-05    .41070E-05
  19  norm          .10000E-03    20.814       -.36862E-06** at limit **
  20  Prefactor     .10000E-03    31.481        .15947E-05** at limit **
  21  Prefactor     .10000E-03    270.69        .95146E-05** at limit **
  22  Normalizat    .71266        .37353        .80012E-05    .13126E-03
  23  Prefactor     1.0919        .10853        .16232E-05   -.19190E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 54.9927
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.5537
  Prefactor  = 10.2937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7379
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08258
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 62.7605
  norm       = 3.77252
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 36.9651
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.712662
  Prefactor  = 1.09188
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.844     FROM HESSE     STATUS=OK           362 CALLS     2884 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          54.993        23.652        .54090E-04   -1.4223    
   2  norm          .10000E-03    4.1939        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .95932        .80382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.554        8.1744        .90577E-04   -1.4823    
   5  Prefactor     10.294        190.21        .12437E-03   -1.5066    
   6  Prefactor     .10000E-03    8.1945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.738        16.136        .80536E-04   -1.4713    
   9  norm          .10000E-03    14.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3202        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0826        1.7017        .78397E-04   -1.5357    
  12  Prefactor     .10000E-03    41.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          62.761        34.355        .50647E-04   -1.4122    
  15  norm          3.7725        2.3659        .99718E-04   -1.5319    
  16  Prefactor     .10000E-03    40.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2867        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.965        25.696        .65919E-04   -1.4491    
  19  norm          .10000E-03    20.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    270.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .71266        .39316        .60010E-03   -1.0340    
  23  Prefactor     1.0919        .11651        .14922E-03   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91248e-10
Minuit parameter uncertainties:
  1  23.6561
  2  4.43527e-05
  3  4.7489e-06
  4  8.17484
  5  88.8258
  6  9.61307e-05
  7  2.27562e-05
  8  16.1389
  9  1.65976e-05
  10  1.45998e-06
  11  1.7017
  12  8.07625e-05
  13  1.39443e-05
  14  34.3662
  15  2.366
  16  4.66261e-05
  17  1.46886e-05
  18  25.7037
  19  2.53397e-05
  20  4.6948e-05
  21  0.000351281
  22  0.394728
  23  0.116536
Done.

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

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  1.660e-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:  1.092e+00  1.165e-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:  7.127e-01  3.947e-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: 3.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/179619/likelihoodResults_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.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) = 7120.84459419
delta logL = -0.000317596730383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7120.84427657
delta logL = 2.05809556064e-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.9482       1.0000          .0000       5.0000    
     3 'Normalizat'    .71265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0919       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=   7120.844     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    485.79        .18142E-01** at limit **
   2  alpha         1.5392        4.2178        .16998        .80324E-07
   3  Normalizat    .71265        .46611E-01    .60010E-03   -.66685E-04
   4  Prefactor     1.0919        .14214E-01    .14922E-03   -.36109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 1.5392
  Normalizat = 0.712653
  Prefactor  = 1.09188
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.844     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    17.662        .33574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5392        2.9631        .67993E-02   -.39447    
   3  Normalizat    .71265        .37506        .24004E-04   -1.0340    
   4  Prefactor     1.0919        .11475        .29843E-04   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16302e-09
Minuit parameter uncertainties:
  1  0.00108433
  2  535.68
  3  0.37642
  4  0.114777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179619': 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) = 7120.84427624
delta logL = 3.47878085449e-07

Extracting fit parameters...

4FGL J1945.1-4007
   Spectrum: LogParabola
504         norm:  1.000e-04  1.084e-03  1.000e-04  1.000e+04 ( 1.000e-13)
505        alpha:  1.539e+00  5.357e+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:  1.092e+00  1.148e-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:  7.127e-01  3.764e-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/179619/cmap_HighResolution_589248001_589507201_4FGL_J1945.1-4007_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-23 13:46:49.167366', job_id='179619', GAL2='1.09', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632430009.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1350' AND source_name='4FGL J1945.1-4007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:46:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 179619: <4FGL_J1945.1-4007_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1945.1-4007_daily_bin1350 296.292 -40.1209 589248001 589507201 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 :                                   825.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

