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


Performing analysis on: 4FGL_J1955.1-1604_daily_bin1261
RA = 298.777, Dec = -16.0715
tmin = 566179201, tmax = 566438401
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='358103', job_status='RUN', time_executed='2021-09-23 20:56:17.325227', time_epoch_executed='1632455777.33' WHERE source_name='4FGL J1955.1-1604' and cadence='daily' and bin_id='1261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358103/ft1_4FGL_J1955.1-1604_daily_bin1261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358103/ft1_4FGL_J1955.1-1604_daily_bin1261.fits outfile=/scratch/kocevski/358103/ft1_filteredMKT_4FGL_J1955.1-1604_daily_bin1261.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=566179201.0 tmax=566438401.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits" evtable="EVENTS" scfile=/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits sctable="SC_DATA" outfile=/scratch/kocevski/358103/ltcube_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.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/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits
.....................!
real 12.14
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits sctable="SC_DATA" expcube=/scratch/kocevski/358103/ltcube_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.fits outfile=/scratch/kocevski/358103/expmap_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.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/358103/ltcube_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.fits
.....................!
real 190.15
user 184.72
sys 5.03

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/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits scfile=/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits outfile=/scratch/kocevski/358103/cmap_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits scfile=/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits outfile=/scratch/kocevski/358103/cmap_HighResolution_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358103/Model_4FGL_J1955.1-1604_daily_bin1261.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/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits.............................!
real 23.99
user 22.73
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits', '/scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits', expMap='/scratch/kocevski/358103/expmap_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.fits', expCube='/scratch/kocevski/358103/ltcube_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358103/Model_4FGL_J1955.1-1604_daily_bin1261.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/358103/ft1_filtered_4FGL_J1955.1-1604_daily_bin1261.fits
Spacecraft file(s): /scratch/kocevski/358103/ft2_4FGL_J1955.1-1604_daily_bin1261.fits
Exposure map: /scratch/kocevski/358103/expmap_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.fits
Exposure cube: /scratch/kocevski/358103/ltcube_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358103/Model_4FGL_J1955.1-1604_daily_bin1261.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 709.50024202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 707.574714433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91949E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30992       1.0000         .10000E-03   10000.    
     5 'Prefactor '    101.85       1.0000         .10000E-03   10000.    
     6 'norm      '    .10848E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .47373E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19060E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12522E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88998E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5441       1.0000         .10000E-03   10000.    
    19 'norm      '    309.86       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1472       1.0000         .10000E-03   10000.    
    21 'norm      '    .21172E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .18515       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1766       1.0000         .10000E-03   10000.    
    24 'norm      '    .11582E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2226       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   707.5679     FROM MIGRAD    STATUS=CONVERGED    198 CALLS      644 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.277        .20501E-04** at limit **
   2  Prefactor     .10482E-03    1.2402       -.20185E-05** at limit **
   3  norm          7.5798        19.507       -.43825E-05    .85222E-03
   4  Prefactor     .10000E-03    119.11        .89368E-05** at limit **
   5  Prefactor     101.45        31.437       -.23328E-05   -.26581E-01
   6  norm          .10000E-03    15.349        .35384E-05** at limit **
   7  norm          .10006E-03    132.32       -.13863E-04** at limit **
   8  Prefactor     .10000E-03    67.781       -.12287E-04** at limit **
   9  Prefactor     .26761        7323.2       -.22017E-03    .16568E-02
  10  Prefactor     22.484        52.516        .46309E-05   -.60703E-02
  11  Prefactor     12.306        3.2761       -.74284E-06   -.68895E-03
  12  Prefactor     .10001E-03    234.74        .30530E-04** at limit **
  13  Prefactor     .10001E-03    115.94       -.16719E-05** at limit **
  14  Prefactor     .10000E-03    325.11        .43823E-04** at limit **
  15  Prefactor     .10000E-03    55.210       -.32639E-05** at limit **
  16  Prefactor     .10000E-03    120.17       -.11738E-04** at limit **
  17  Prefactor     .18042E-03    675.28        .19265E-04** at limit **
  18  norm          6.5441        1.0029         .0000         .0000    
  19  norm          321.78        428.84        .35864E-04    .86809E-02
  20  Prefactor     .11276E-03    1504.3        .70873E-04** at limit **
  21  norm          .10000E-03    34.934        .72764E-05** at limit **
  22  norm          .10009E-03    170.21       -.44088E-04** at limit **
  23  norm          1.1757        5.6520       -.67974E-05    .18558E-04
  24  norm          .10000E-03    45.550        .12981E-05** at limit **
  25  Prefactor     1.2226        1.1268         .0000         .0000    
  26  Normalizat    .10000E-01    .44343        .30316E-04** at limit **
  27  Prefactor     .68508        .11223        .45415E-05   -.23929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000104819
  norm       = 7.5798
  Prefactor  = 0.000100001
  Prefactor  = 101.454
  norm       = 0.0001
  norm       = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 0.267612
  Prefactor  = 22.4837
  Prefactor  = 12.3061
  Prefactor  = 0.000100008
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000180418
  norm       = 6.54408
  norm       = 321.783
  Prefactor  = 0.000112758
  norm       = 0.0001
  norm       = 0.000100086
  norm       = 1.17573
  norm       = 0.0001
  Prefactor  = 1.22262
  Normalizat = 0.01
  Prefactor  = 0.685085
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   707.5679     FROM HESSE     STATUS=FAILED        79 CALLS      723 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10482E-03    197.60        .10408E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.5798        158.39        .37076E-02   -1.5157    
   4  Prefactor     .10000E-03    119.03        .10468E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     101.45        107.57        .99598E-03   -1.3690    
   6  norm          .10000E-03    15.351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10006E-03    132.71        .92573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.723        .95421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26761        9485.3        .38375E-02   -1.5605    
  10  Prefactor     22.484        52.705        .20936E-02   -1.4759    
  11  Prefactor     12.306        24.829        .28534E-02   -1.5006    
  12  Prefactor     .10001E-03    234.27        .96015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    116.09        .91180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    324.43        .12749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    120.17        .10500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18042E-03    683.22        .94587E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          517.15        510.57         .0000       -1.5196    
  19  norm          321.78        1.0184        .35864E-04   -1.2101    
  20  Prefactor     .11276E-03    .29257        .70873E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .25444        .72764E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10009E-03    .24550       -.44088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1757        1.1441       -.67974E-05   -1.5491    
  24  norm          .10000E-03    .20615        .12981E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2226        1.1268         .0000       -1.5487    
  26  Normalizat    .10000E-01    .25505        .30316E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .68508        1.0346        .45415E-05   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.03212e-10
Minuit parameter uncertainties:
  1  5.37765e-05
  2  0.061924
  3  69.5094
  4  0.000742879
  5  107.773
  6  1.07922e-05
  7  0.00575943
  8  0.00010782
  9  129.238
  10  52.8148
  11  24.8497
  12  0.00282027
  13  0.00199434
  14  0.000977999
  15  2.48488e-05
  16  0.00118586
  17  0.474311
  18  1.00295
  19  1.01844
  20  0.00386391
  21  3.07171e-06
  22  0.000290091
  23  1.14413
  24  2.68319e-07
  25  1.12677
  26  4.75276e-07
  27  1.066
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 707.567942506

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  2.820e-03  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:  6.851e-01  1.066e+00  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:  1.000e-02  4.753e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 298.777 -16.072
Photon Flux Upper Limit: 1.60e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358103/likelihoodResults_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.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) = 707.567964177
delta logL = -2.16708134531e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 707.56794304
delta logL = -5.34320179213e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18191E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2353       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68508       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=   707.5679     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      281 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10234E-03    66.047        .18142E-01** at limit **
   2  Index         2.2606        8.5648        .50000        .22340E-05
   3  Normalizat    .10000E-01    .36454E-03    .10469E-01** at limit **
   4  Prefactor     .68508        .29774E-02    .10757E-03   -.13148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102344
  Index      = 2.26057
  Normalizat = 0.01
  Prefactor  = 0.685084
 **********
 **   18 **HESSE 
 **********

 FCN=   707.5679     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10234E-03    424.27        .33199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2606        8.8306        .50000       -.57983    
   3  Normalizat    .10000E-01    .23813E-02    .20938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68508        .76092E-02    .21514E-04   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.02474e-10
Minuit parameter uncertainties:
  1  0.0635306
  2  384.479
  3  2.33894e-06
  4  0.00760921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358103': 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): 102
logL (Free Index) = 707.567942608
delta logL = -1.0238932191e-07

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  1.023e-04  6.353e-02  1.000e-04  1.000e+04 ( 1.000e-14)
578        Index:  2.261e+00  3.845e+02  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:  6.851e-01  7.609e-03  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:  1.000e-02  2.339e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/358103/cmap_HighResolution_566179201_566438401_4FGL_J1955.1-1604_daily_bin1261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.60e-06', time_completed='2021-09-23 21:02:22.805069', job_id='358103', GAL2='0.69', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632456142.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.69', dlogl='-1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1261' AND source_name='4FGL J1955.1-1604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:02:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 358103: <4FGL_J1955.1-1604_daily_bin1261> in cluster <slac> Done

Job <4FGL_J1955.1-1604_daily_bin1261> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 20:52:37 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 20:52:51 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:51 2021
Terminated at Thu Sep 23 21:02:23 2021
Results reported at Thu Sep 23 21:02:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.1-1604_daily_bin1261 298.777 -16.0715 566179201 566438401 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 :                                   363.37 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             222.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            586 sec.

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

