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


Performing analysis on: 4FGL_J1954.6-1122_daily_bin1388
RA = 298.669, Dec = -11.3815
tmin = 599097601, tmax = 599356801
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='296736', job_status='RUN', time_executed='2021-09-23 17:57:14.035083', time_epoch_executed='1632445034.04' WHERE source_name='4FGL J1954.6-1122' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296736/ft1_4FGL_J1954.6-1122_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296736/ft1_4FGL_J1954.6-1122_daily_bin1388.fits outfile=/scratch/kocevski/296736/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1388.fits ra=298.669 dec=-11.3815 rad=12.0 tmin=599097601.0 tmax=599356801.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.84
user 2.63
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.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/296736/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.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/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/296736/ltcube_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.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/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits
.....................!
real 12.34
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/296736/ltcube_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.fits outfile=/scratch/kocevski/296736/expmap_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.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/296736/ltcube_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.fits
.....................!
real 191.23
user 186.40
sys 4.45

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
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 280 point sources and 9 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1954.6-1122 @ 298.669 -11.3815

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits scfile=/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits outfile=/scratch/kocevski/296736/cmap_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.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=298.669 yref=-11.3815 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/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits scfile=/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits outfile=/scratch/kocevski/296736/cmap_HighResolution_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.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=298.669 yref=-11.3815 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296736/Model_4FGL_J1954.6-1122_daily_bin1388.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits....................!
real 111.12
user 109.66
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits', '/scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits', expMap='/scratch/kocevski/296736/expmap_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.fits', expCube='/scratch/kocevski/296736/ltcube_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/296736/Model_4FGL_J1954.6-1122_daily_bin1388.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1954.6-1122'

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  2.246e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
685        Scale:  8.706e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/296736/ft1_filtered_4FGL_J1954.6-1122_daily_bin1388.fits
Spacecraft file(s): /scratch/kocevski/296736/ft2_4FGL_J1954.6-1122_daily_bin1388.fits
Exposure map: /scratch/kocevski/296736/expmap_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.fits
Exposure cube: /scratch/kocevski/296736/ltcube_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/296736/Model_4FGL_J1954.6-1122_daily_bin1388.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) = 5752.4347814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0290       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    37.136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.145       1.0000         .10000E-03   10000.    
     7 'Prefactor '    137.68       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    164.79       1.0000         .10000E-03   10000.    
    19 'norm      '    12.993       1.0000         .10000E-03   10000.    
    20 'norm      '    49.608       1.0000         .10000E-03   10000.    
    21 'norm      '    5.7449       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7900       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82989       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0639       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1025E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5752.416     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2873 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0209        13.572       -.28102E-05   -.87539E-04
   2  norm          .10000E-03    48.221       -.21673E-04** at limit **
   3  Prefactor     .10000E-03    146.15       -.11179E-03** at limit **
   4  Prefactor     .10000E-03    24.495       -.14065E-04** at limit **
   5  norm          37.127        31.589       -.27170E-05    .45320E-04
   6  Prefactor     33.127        52.116       -.19108E-04   -.91479E-06
   7  Prefactor     137.67        100.23       -.80273E-05   -.56709E-05
   8  Prefactor     45.417        38.729       -.18055E-04   -.19487E-04
   9  Prefactor     .10000E-03    5.0380        .45637E-07** at limit **
  10  Prefactor     .10000E-03    23.983       -.14959E-04** at limit **
  11  Prefactor     .10000E-03    47.302       -.21501E-04** at limit **
  12  Prefactor     .10000E-03    84.734        .52364E-04** at limit **
  13  Prefactor     4.9737        4.6123       -.10135E-05   -.73576E-03
  14  Prefactor     .10000E-03    89.535        .51149E-04** at limit **
  15  Prefactor     .10000E-03    22.490        .13283E-04** at limit **
  16  norm          17.546        21.568        .10649E-04   -.92836E-04
  17  Prefactor     .10000E-03    28.876        .29046E-04** at limit **
  18  Prefactor     164.54        185.66       -.18747E-03   -.16984E-04
  19  norm          12.993        14.016       -.33350E-06   -.12190E-04
  20  norm          49.613        34.665        .26313E-05   -.52720E-05
  21  norm          5.7452        2.3911       -.37129E-06   -.18510E-03
  22  Prefactor     8.7928        18.558       -.31990E-05   -.60434E-04
  23  norm          .10000E-03    1.1301       -.14601E-06** at limit **
  24  Normalizat    .82902        .45042        .22856E-04    .37037E-04
  25  Prefactor     1.0642        .11064        .25640E-05   -.70419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.02086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.1272
  Prefactor  = 33.1273
  Prefactor  = 137.673
  Prefactor  = 45.4167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5457
  Prefactor  = 0.0001
  Prefactor  = 164.538
  norm       = 12.993
  norm       = 49.6133
  norm       = 5.74525
  Prefactor  = 8.79281
  norm       = 0.0001
  Normalizat = 0.829019
  Prefactor  = 1.06417
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.416     FROM HESSE     STATUS=OK           423 CALLS     3296 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0209        13.702        .17931E-03   -1.5260    
   2  norm          .10000E-03    48.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    146.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          37.127        31.606        .65767E-04   -1.4489    
   6  Prefactor     33.127        52.067        .69602E-04   -1.4556    
   7  Prefactor     137.67        100.23        .17163E-03   -1.3356    
   8  Prefactor     45.417        38.885        .59474E-04   -1.4359    
   9  Prefactor     .10000E-03    5.0660        .16619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9737        4.5860        .14149E-03   -1.5262    
  14  Prefactor     .10000E-03    89.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.546        21.444        .95633E-04   -1.4870    
  17  Prefactor     .10000E-03    28.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     164.54        185.76        .15710E-03   -1.3135    
  19  norm          12.993        14.014        .11112E-03   -1.4987    
  20  norm          49.613        34.646        .56936E-04   -1.4298    
  21  norm          5.7452        2.3843        .65880E-04   -1.5229    
  22  Prefactor     8.7928        18.499        .13520E-03   -1.5115    
  23  norm          .10000E-03    1.1326        .78734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82902        .46116        .66918E-03   -.99001    
  25  Prefactor     1.0642        .11767        .15387E-03   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26477e-09
Minuit parameter uncertainties:
  1  13.7106
  2  5.25332e-07
  3  0.000168478
  4  1.18844e-05
  5  31.6198
  6  52.1387
  7  100.359
  8  38.9067
  9  1.09244e-05
  10  3.61605e-05
  11  0.000118471
  12  0.00040053
  13  4.58636
  14  0.000160821
  15  9.83036e-05
  16  21.4539
  17  0.000110655
  18  186.431
  19  14.0175
  20  34.6603
  21  2.38429
  22  18.5112
  23  4.33679e-06
  24  0.463361
  25  0.117701
Done.

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

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  1.000e-04  1.092e-05  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
685        Scale:  8.706e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1001    Prefactor:  1.064e+00  1.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1002        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1003        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  8.290e-01  4.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 298.669 -11.382
Photon Flux Upper Limit: 2.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/296736/likelihoodResults_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.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) = 5752.41674815
delta logL = -0.0009409109025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5752.41580788
delta logL = -6.48602508591e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4650       1.0000          .0000       10.000    
     3 'Normalizat'    .82851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1025E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5752.416     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.065        .90712E-02** at limit **
   2  Index         2.4872        5.1708        .50000       -.38887E-04
   3  Normalizat    .82901        .39956        .15062        .70469E-04
   4  Prefactor     1.0642        .10406        .39137E-01    .16883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.48722
  Normalizat = 0.829009
  Prefactor  = 1.06417
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.416     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5671        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4872        6.2138        .50000       -.52655    
   3  Normalizat    .82901        .41370        .66916E-03   -.99002    
   4  Prefactor     1.0642        .10844        .15387E-03   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58171e-09
Minuit parameter uncertainties:
  1  0.000193585
  2  5.18253
  3  0.415286
  4  0.10846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296736': 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) = 5752.41580684
delta logL = 3.93746631744e-07

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  1.000e-04  1.936e-04  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  2.487e+00  5.183e+00  0.000e+00  1.000e+01 (-1.000e+00)
685        Scale:  8.706e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1001    Prefactor:  1.064e+00  1.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1002        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1003        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  8.290e-01  4.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 298.669 -11.382

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/296736/cmap_HighResolution_599097601_599356801_4FGL_J1954.6-1122_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', job_status='DONE', photon_flux_upper_limit='2.44e-07', time_completed='2021-09-23 18:13:26.680213', job_id='296736', GAL2='1.06', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632446006.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1388' AND source_name='4FGL J1954.6-1122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 18:13:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 296736: <4FGL_J1954.6-1122_daily_bin1388> in cluster <slac> Done

Job <4FGL_J1954.6-1122_daily_bin1388> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 17:57:01 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 17:57:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 17:57:03 2021
Terminated at Thu Sep 23 18:13:27 2021
Results reported at Thu Sep 23 18:13:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1954.6-1122_daily_bin1388 298.669 -11.3815 599097601 599356801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1954.6-1122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   969.41 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             352.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

