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


Performing analysis on: 4FGL_J1955.1-1604_daily_bin1171
RA = 298.777, Dec = -16.0715
tmin = 542851201, tmax = 543110401
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='357973', job_status='RUN', time_executed='2021-09-23 20:54:46.181274', time_epoch_executed='1632455686.18' WHERE source_name='4FGL J1955.1-1604' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357973

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357973/ft1_4FGL_J1955.1-1604_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357973/ft1_4FGL_J1955.1-1604_daily_bin1171.fits outfile=/scratch/kocevski/357973/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1171.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.60
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.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/357973/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.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.45
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/357973/ltcube_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.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/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits
.....................!
real 1.84
user 1.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/357973/ltcube_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.fits outfile=/scratch/kocevski/357973/expmap_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.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/357973/ltcube_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.fits
.....................!
real 193.74
user 188.67
sys 4.68

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 HESS J1825-137 in ROI with RadialGaussian spatial model.
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.
Added 247 point sources and 7 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 J1955.1-1604 @ 298.777 -16.0715

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits scfile=/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits outfile=/scratch/kocevski/357973/cmap_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.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.777 yref=-16.0715 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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits scfile=/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits outfile=/scratch/kocevski/357973/cmap_HighResolution_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.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.777 yref=-16.0715 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.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357973/Model_4FGL_J1955.1-1604_daily_bin1171.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 J1825-137
adding source HESS J1841-055
adding source Kes 73
adding source W 41
Working on...
/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits......................!
real 23.02
user 21.83
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits', '/scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits', expMap='/scratch/kocevski/357973/expmap_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.fits', expCube='/scratch/kocevski/357973/ltcube_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/357973/Model_4FGL_J1955.1-1604_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.1-1604'

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  5.966e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.029e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/357973/ft1_filtered_4FGL_J1955.1-1604_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/357973/ft2_4FGL_J1955.1-1604_daily_bin1171.fits
Exposure map: /scratch/kocevski/357973/expmap_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.fits
Exposure cube: /scratch/kocevski/357973/ltcube_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/357973/Model_4FGL_J1955.1-1604_daily_bin1171.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) = 693.262115187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12395E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    121.29       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.118       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10834E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12988E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    150.70       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9730       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33449E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .28683E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .19236E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.966       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .15038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1607       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.130       1.0000         .10000E-03   10000.    
    26 'Normalizat'    4.4437       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .13813E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   693.2384     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3734 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5406        6.2891       -.51617E-07   -.49127E-03
   2  Prefactor     .10000E-03    158.89       -.23075E-07** at limit **
   3  norm          .10000E-03    55.958        .11456E-06** at limit **
   4  Prefactor     121.27        145.59       -.29639E-06   -.96583E-04
   5  Prefactor     15.121        40.855       -.13203E-06   -.87132E-04
   6  norm          .10000E-03    15.132       -.97570E-08** at limit **
   7  norm          .10000E-03    23.548        .13537E-06** at limit **
   8  Prefactor     .10000E-03    34.841        .40214E-06** at limit **
   9  Prefactor     .10002E-03    1275.8       -.39739E-05** at limit **
  10  Prefactor     .10000E-03    156.03       -.26195E-06** at limit **
  11  Prefactor     7.9281        23.832       -.39916E-05    .43969E-03
  12  Prefactor     150.98        269.99        .85504E-06   -.46126E-04
  13  Prefactor     .10001E-03    249.76        .15404E-07** at limit **
  14  Prefactor     .10000E-03    191.27        .16450E-05** at limit **
  15  Prefactor     3.9703        9.8806        .14637E-06   -.25961E-03
  16  Prefactor     .10124E-03    7106.1       -.21317E-04** at limit **
  17  Prefactor     .10000E-03    44.300       -.10533E-06** at limit **
  18  norm          .10000E-03    238.47        .20666E-05** at limit **
  19  norm          .10006E-03    141.05       -.47044E-05** at limit **
  20  Prefactor     19.198        6320.3       -.28732E-04    .89605E-05
  21  norm          .10000E-03    42.040       -.21362E-06** at limit **
  22  norm          .10000E-03    164.12       -.11621E-05** at limit **
  23  norm          2.1594        5.7537       -.16325E-06   -.81559E-05
  24  norm          .10000E-03    15.077       -.41645E-07** at limit **
  25  Prefactor     27.127        27.315        .40524E-06   -.42172E-04
  26  Normalizat    4.4430        .72748       -.22169E-04    .12004E-04
  27  Prefactor     .10985E-08    .31414        .44531E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 6.54058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 121.271
  Prefactor  = 15.1209
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.000100001
  Prefactor  = 7.92815
  Prefactor  = 150.978
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 3.97031
  Prefactor  = 0.000101244
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100063
  Prefactor  = 19.1979
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 2.15941
  norm       = 0.0001
  Prefactor  = 27.1274
  Normalizat = 4.44302
  Prefactor  = 1.0985e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   693.2384     FROM HESSE     STATUS=OK           472 CALLS     4206 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5406        6.3090        .58856E-04   -1.5196    
   2  Prefactor     .10000E-03    158.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    55.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     121.27        145.74        .18271E-03   -1.3501    
   5  Prefactor     15.121        40.964        .10301E-03   -1.4930    
   6  norm          .10000E-03    15.132        .10008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.567        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.841        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    1284.3        .18154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    156.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9281        23.716        .14230E-03   -1.5145    
  12  Prefactor     150.98        269.08        .16416E-03   -1.3244    
  13  Prefactor     .10001E-03    250.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    191.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9703        9.8411        .11828E-03   -1.5309    
  16  Prefactor     .10124E-03    7125.2        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.306        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    240.52        .21409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10006E-03    141.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.198        6390.2        .44819E-02   -1.4831    
  21  norm          .10000E-03    42.040        .16689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    164.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1594        5.7300        .99687E-04   -1.5414    
  24  norm          .10000E-03    15.079        .99900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.127        27.332        .76913E-04   -1.4666    
  26  Normalizat    4.4430        .76573        .34168E-03   -.11275    
  27  Prefactor     .10985E-08    .76208        .84753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15548e-09
Minuit parameter uncertainties:
  1  6.30967
  2  4.99397e-05
  3  4.18988e-05
  4  146.172
  5  41.0404
  6  9.20086e-06
  7  2.15006e-05
  8  0.000112213
  9  0.0115489
  10  0.000905354
  11  23.7445
  12  271.31
  13  0.00344727
  14  0.000119212
  15  9.8451
  16  0.158395
  17  0.00017237
  18  0.000153425
  19  0.0060017
  20  526.481
  21  8.10553e-05
  22  0.00176746
  23  5.73143
  24  3.24178e-05
  25  27.3444
  26  0.768798
  27  5.86284e-05
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.510e+02  2.713e+02  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.029e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
868    Prefactor:  1.099e-09  5.863e-05  0.000e+00  1.000e+01 ( 1.000e+00)
869        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
870        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
857   Normalization:  4.443e+00  7.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 298.777 -16.072
Photon Flux Upper Limit: 9.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357973/likelihoodResults_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.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) = 693.167777583
delta logL = 0.0706119875981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 693.165144704
delta logL = 0.0732448668263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5150       1.0000          .0000       10.000    
     3 'Normalizat'    4.4040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11158E-04   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+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=   693.1651     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.013        506.78        .51380E-04    .18529E-03
   2  Index         2.5159        2.1407        .28316E-02    .17143E-03
   3  Normalizat    4.4055        .69282        .34161E-03    .16203E-03
   4  Prefactor     .72553E-12    1.1364        .92533E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.0131
  Index      = 2.51585
  Normalizat = 4.40549
  Prefactor  = 7.25531e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   693.1651     FROM HESSE     STATUS=OK            23 CALLS      326 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.013        238.04        .10276E-04   -1.4144    
   2  Index         2.5159        1.4896        .11326E-03   -.51994    
   3  Normalizat    4.4055        .68999        .68322E-04   -.12031    
   4  Prefactor     .72553E-12    1.1392        .18507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02561e-10
Minuit parameter uncertainties:
  1  241.91
  2  1.52048
  3  0.692239
  4  1.85446e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357973': 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) = 693.165134624
delta logL = 0.0732549464694

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  6.101e+01  2.419e+02  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.516e+00  1.520e+00  0.000e+00  1.000e+01 (-1.000e+00)
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
868    Prefactor:  7.255e-13  1.854e-06  0.000e+00  1.000e+01 ( 1.000e+00)
869        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
870        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
857   Normalization:  4.405e+00  6.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
Ra Dec: 298.777 -16.072

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/357973/cmap_HighResolution_542851201_543110401_4FGL_J1955.1-1604_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-02', job_status='DONE', photon_flux_upper_limit='9.39e-07', time_completed='2021-09-23 21:01:20.247776', job_id='357973', GAL2='0.00', fit_tolerance='1e-08', EG2='4.41', EG='4.44', time_epoch_completed='1632456080.25', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='7.33e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1171' AND source_name='4FGL J1955.1-1604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 357973: <4FGL_J1955.1-1604_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1955.1-1604_daily_bin1171> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 20:52:29 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 20:52:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 20:52:38 2021
Terminated at Thu Sep 23 21:01:21 2021
Results reported at Thu Sep 23 21:01:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.1-1604_daily_bin1171 298.777 -16.0715 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1955.1-1604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   397.82 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            532 sec.

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

