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


Performing analysis on: 4FGL_J1954.6-1122_daily_bin1583
RA = 298.669, Dec = -11.3815
tmin = 649641601, tmax = 649900801
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='299485', job_status='RUN', time_executed='2021-09-23 18:08:25.953503', time_epoch_executed='1632445705.95' WHERE source_name='4FGL J1954.6-1122' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299485/ft1_4FGL_J1954.6-1122_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299485/ft1_4FGL_J1954.6-1122_daily_bin1583.fits outfile=/scratch/kocevski/299485/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1583.fits ra=298.669 dec=-11.3815 rad=12.0 tmin=649641601.0 tmax=649900801.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.54
user 2.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.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/299485/ft1_filteredMKT_4FGL_J1954.6-1122_daily_bin1583.fits evtable="EVENTS" outfile="/scratch/kocevski/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/299485/ltcube_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.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/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits
.....................!
real 13.20
user 12.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/299485/ltcube_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.fits outfile=/scratch/kocevski/299485/expmap_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.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/299485/ltcube_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.fits
.....................!
real 189.86
user 185.31
sys 4.17

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/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits scfile=/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits outfile=/scratch/kocevski/299485/cmap_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits scfile=/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits outfile=/scratch/kocevski/299485/cmap_HighResolution_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/299485/Model_4FGL_J1954.6-1122_daily_bin1583.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/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits........................!
real 35.70
user 34.15
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits', '/scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits', expMap='/scratch/kocevski/299485/expmap_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.fits', expCube='/scratch/kocevski/299485/ltcube_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/299485/Model_4FGL_J1954.6-1122_daily_bin1583.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/299485/ft1_filtered_4FGL_J1954.6-1122_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/299485/ft2_4FGL_J1954.6-1122_daily_bin1583.fits
Exposure map: /scratch/kocevski/299485/expmap_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.fits
Exposure cube: /scratch/kocevski/299485/ltcube_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/299485/Model_4FGL_J1954.6-1122_daily_bin1583.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) = 1131.3446594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.457       1.0000         .10000E-03   10000.    
     2 'norm      '    .10716E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    158.39       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    158.79       1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40509E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11377E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    90.758       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13672E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    493.06       1.0000         .10000E-03   10000.    
    21 'norm      '    .11281E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.329       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66753       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=   1131.316     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2838 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.454        14.180        .10278E-07   -.14105E-03
   2  norm          .10000E-03    136.44        .15338E-06** at limit **
   3  Prefactor     158.47        292.30       -.19684E-05   -.54878E-05
   4  Prefactor     .10000E-03    32.610        .15903E-07** at limit **
   5  norm          5.8290        84.897        .14224E-05   -.13128E-04
   6  Prefactor     .10000E-03    88.880       -.20906E-07** at limit **
   7  Prefactor     .10000E-03    1592.7       -.81327E-06** at limit **
   8  Prefactor     158.79        103.15        .16602E-07   -.95787E-04
   9  Prefactor     63.464        75.195       -.82555E-07   -.36918E-04
  10  Prefactor     .10000E-03    747.69       -.33748E-06** at limit **
  11  Prefactor     .10000E-03    324.27        .12517E-06** at limit **
  12  Prefactor     .10000E-03    493.08       -.97216E-07** at limit **
  13  Prefactor     .10000E-03    232.19        .14583E-06** at limit **
  14  Prefactor     .10000E-03    166.24       -.77101E-07** at limit **
  15  Prefactor     .10000E-03    8837.0       -.22550E-06** at limit **
  16  norm          .10000E-03    8811.5       -.44902E-06** at limit **
  17  Prefactor     90.813        102.13       -.74232E-06   -.50526E-04
  18  Prefactor     .10000E-03    6338.3       -.94357E-06** at limit **
  19  norm          .10000E-03    143.40        .54633E-06** at limit **
  20  norm          493.23        494.40       -.12974E-05   -.91670E-05
  21  norm          .10000E-03    8.0687        .69655E-06** at limit **
  22  Prefactor     89.336        74.102       -.13179E-05   -.10796E-03
  23  norm          .10000E-03    15.039        .23207E-06** at limit **
  24  Normalizat    .10000E-01    .42651        .21740E-04** at limit **
  25  Prefactor     .66779        .10959       -.12470E-05   -.35571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4544
  norm       = 0.0001
  Prefactor  = 158.474
  Prefactor  = 0.0001
  norm       = 5.82902
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 158.79
  Prefactor  = 63.4636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 90.8126
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 493.23
  norm       = 0.0001
  Prefactor  = 89.3362
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.66779
 **********
 **   18 **HESSE 
 **********

 FCN=   1131.316     FROM HESSE     STATUS=OK           409 CALLS     3247 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.454        14.340        .93227E-04   -1.4849    
   2  norm          .10000E-03    136.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     158.47        290.02        .16019E-03   -1.3184    
   4  Prefactor     .10000E-03    32.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8290        83.265        .16605E-03   -1.5225    
   6  Prefactor     .10000E-03    88.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1592.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     158.79        103.55        .31998E-04   -1.3181    
   9  Prefactor     63.464        75.236        .50355E-04   -1.4113    
  10  Prefactor     .10000E-03    747.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    324.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    493.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    232.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    166.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8836.9        .21258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8811.6        .20675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     90.813        102.67        .21090E-03   -1.3799    
  18  Prefactor     .10000E-03    6337.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    143.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          493.23        494.91        .92376E-04   -1.1229    
  21  norm          .10000E-03    8.1548        .92909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     89.336        75.343        .42513E-04   -1.3815    
  23  norm          .10000E-03    15.034        .12740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .51157        .13054E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .66779        .11609        .12461E-03   -1.0480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99033e-10
Minuit parameter uncertainties:
  1  14.3428
  2  6.41625e-05
  3  292.691
  4  2.18034e-06
  5  44.1354
  6  3.46425e-05
  7  0.00336845
  8  103.671
  9  75.3492
  10  0.000942638
  11  0.000283655
  12  8.85139e-05
  13  0.000225255
  14  7.66008e-05
  15  0.00243736
  16  0.00945335
  17  102.868
  18  0.00589705
  19  0.000291823
  20  499.32
  21  5.45385e-05
  22  75.4241
  23  3.00653e-05
  24  1.23952e-05
  25  0.116134
Done.

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

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  6.346e+01  7.535e+01  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:  6.678e-01  1.161e-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:  1.000e-02  1.240e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 298.669 -11.382
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 8.70e-07 +/- 1.03e-06
Energy Flux (Fixed Index): 2.70e-04 +/- 3.20e-04

TS (Fixed Index): 1.25
Ra Dec: 298.669 -11.382
Photon Flux Upper Limit: 3.76e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/299485/likelihoodResults_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.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) = 1131.28882547
delta logL = 0.0275358135807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1131.28813224
delta logL = 0.0282290474809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.083       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7196       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66761       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1131.288     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.098        90.365        .56667E-04   -.42880E-03
   2  Index         2.7200        1.2701        .54997E-02   -.21800E-03
   3  Normalizat    .10000E-01    .50633        .13004E-01** at limit **
   4  Prefactor     .66759        .95330E-01    .12459E-03    .23121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.0975
  Index      = 2.72001
  Normalizat = 0.01
  Prefactor  = 0.667587
 **********
 **   18 **HESSE 
 **********

 FCN=   1131.288     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.098        86.042        .11333E-04   -1.4291    
   2  Index         2.7200        1.2108        .21999E-03   -.47349    
   3  Normalizat    .10000E-01    .50642        .26008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66759        .95309E-01    .24919E-04   -1.0481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89428e-09
Minuit parameter uncertainties:
  1  86.256
  2  1.22625
  3  1.17768e-07
  4  0.0953322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299485': 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) = 1131.28812984
delta logL = 0.0282314468491

Extracting fit parameters...

4FGL J1954.6-1122
   Spectrum: PowerLaw
683    Prefactor:  5.010e+01  8.626e+01  1.000e-04  1.000e+04 ( 1.000e-12)
684        Index:  2.720e+00  1.226e+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:  6.676e-01  9.533e-02  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:  1.000e-02  1.178e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 298.669 -11.382
Photon Index (Free Index): 2.72 +/- 1.23
Photon Flux (Free Index): 1.05e-06 +/- 1.41e-06
Energy Flux (Free Index): 2.49e-04 +/- 2.96e-04

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/299485/cmap_HighResolution_649641601_649900801_4FGL_J1954.6-1122_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-01', comment='SUCCESS', photon_flux='8.70e-07', energy_flux2='2.49e-04', photon_flux_error='1.03e-06', dlogl='2.82e-02', energy_flux='2.70e-04', photon_flux2='1.05e-06', job_status='DONE', time_completed='2021-09-23 18:16:08.969400', photon_index_error2='1.23', photon_index2='2.72', ts='1.25', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='3.76e-06', energy_flux_error2='2.96e-04', EG='0.01', time_epoch_completed='1632446168.97', return_code='0', job_id='299485', GAL2='0.67', EG2='0.01', return_code2='0', energy_flux_error='3.20e-04', photon_flux_error2='1.41e-06', ts2='1.30', photon_index='2.44' WHERE bin_id='1583' AND source_name='4FGL J1954.6-1122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 18:16:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 299485: <4FGL_J1954.6-1122_daily_bin1583> in cluster <slac> Done

Job <4FGL_J1954.6-1122_daily_bin1583> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 18:06:38 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 18:06:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 18:06:40 2021
Terminated at Thu Sep 23 18:16:09 2021
Results reported at Thu Sep 23 18:16:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1954.6-1122_daily_bin1583 298.669 -11.3815 649641601 649900801 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 :                                   462.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             265.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            571 sec.

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

