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


Performing analysis on: 4FGL_J1955.2+1358_daily_bin654
RA = 298.82, Dec = 13.9824
tmin = 408844801, tmax = 409104001
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='367754', job_status='RUN', time_executed='2021-09-23 21:29:06.382277', time_epoch_executed='1632457746.38' WHERE source_name='4FGL J1955.2+1358' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367754/ft1_4FGL_J1955.2+1358_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367754/ft1_4FGL_J1955.2+1358_daily_bin654.fits outfile=/scratch/kocevski/367754/ft1_filteredMKT_4FGL_J1955.2+1358_daily_bin654.fits ra=298.82 dec=13.9824 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.32
user 4.10
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.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/367754/ft1_filteredMKT_4FGL_J1955.2+1358_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/367754/ltcube_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.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/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits
.....................!
real 11.61
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/367754/ltcube_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.fits outfile=/scratch/kocevski/367754/expmap_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.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/367754/ltcube_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.fits
.....................!
real 190.92
user 185.52
sys 5.08

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
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.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 256 point sources and 6 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.2+1358 @ 298.82 13.9824

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits scfile=/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits outfile=/scratch/kocevski/367754/cmap_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.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.82 yref=13.9824 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits scfile=/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits outfile=/scratch/kocevski/367754/cmap_HighResolution_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.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.82 yref=13.9824 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/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367754/Model_4FGL_J1955.2+1358_daily_bin654.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 Cygnus Loop
adding source EG_v02
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits.....................!
real 210.48
user 208.82
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits', '/scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits', expMap='/scratch/kocevski/367754/expmap_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.fits', expCube='/scratch/kocevski/367754/ltcube_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367754/Model_4FGL_J1955.2+1358_daily_bin654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.2+1358'

4FGL J1955.2+1358
   Spectrum: LogParabola
576         norm:  1.281e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
577        alpha:  2.277e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
578         beta:  1.829e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
579           Eb:  1.033e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367754/ft1_filtered_4FGL_J1955.2+1358_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/367754/ft2_4FGL_J1955.2+1358_daily_bin654.fits
Exposure map: /scratch/kocevski/367754/expmap_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.fits
Exposure cube: /scratch/kocevski/367754/ltcube_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367754/Model_4FGL_J1955.2+1358_daily_bin654.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) = 5318.03719431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    70.273       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    43.614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13508E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2445       1.0000         .10000E-03   10000.    
    13 'Normalizat'    .79334       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0326       1.0000          .0000       10.000    
    15 'norm      '    1.8795       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5318.023     FROM MIGRAD    STATUS=CONVERGED    281 CALLS     1317 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.526        .14704E-05** at limit **
   2  norm          70.280        83.791       -.22385E-05   -.54515E-04
   3  norm          .10000E-03    8.4118        .42426E-08** at limit **
   4  Prefactor     11.373        10.783        .55350E-06   -.26363E-03
   5  Prefactor     .10000E-03    4.8538       -.47842E-07** at limit **
   6  Prefactor     .10000E-03    38.891       -.18074E-05** at limit **
   7  Prefactor     .10000E-03    29.036        .73780E-06** at limit **
   8  norm          .10000E-03    12.704       -.17205E-06** at limit **
   9  norm          43.621        43.038       -.46235E-06    .69980E-06
  10  Prefactor     32.066        44.920       -.25961E-06    .15951E-03
  11  Prefactor     .10001E-03    46.561        .17922E-05** at limit **
  12  norm          3.2451        2.5714       -.50185E-07    .30220E-03
  13  Normalizat    .79218        .80890        .20911E-04    .73619E-04
  14  Prefactor     1.0327        .77633E-01   -.25978E-05   -.12979E-02
  15  norm          1.8763        5.8406        .82944E-05   -.59476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 70.2799
  norm       = 0.0001
  Prefactor  = 11.3732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 43.6208
  Prefactor  = 32.0664
  Prefactor  = 0.000100011
  norm       = 3.24505
  Normalizat = 0.792178
  Prefactor  = 1.03274
  norm       = 1.87632
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.023     FROM HESSE     STATUS=OK           174 CALLS     1491 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          70.280        84.111        .47886E-04   -1.4029    
   3  norm          .10000E-03    8.4179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.373        10.830        .11879E-03   -1.5033    
   5  Prefactor     .10000E-03    4.8593        .15691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          43.621        43.039        .60705E-04   -1.4386    
  10  Prefactor     32.066        44.594        .70770E-04   -1.4575    
  11  Prefactor     .10001E-03    46.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2451        2.5727        .48655E-03   -1.5348    
  13  Normalizat    .79218        .75914        .14710E-02   -1.0036    
  14  Prefactor     1.0327        .75591E-01    .11698E-03   -.91646    
  15  norm          1.8763        5.8232        .14120E-02   -1.5434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47608e-09
Minuit parameter uncertainties:
  1  0.000626249
  2  84.2539
  3  1.40903e-06
  4  10.8318
  5  9.22329e-06
  6  0.000161318
  7  0.000109218
  8  3.94995e-05
  9  43.0701
  10  44.6408
  11  0.00141146
  12  2.57282
  13  0.769651
  14  0.0755984
  15  5.82493
Done.

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

Extracting fit parameters...

4FGL J1955.2+1358
   Spectrum: LogParabola
576         norm:  1.000e-04  3.950e-05  1.000e-04  1.000e+04 ( 1.000e-12)
577        alpha:  2.277e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
578         beta:  1.829e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
579           Eb:  1.033e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
929    Prefactor:  1.033e+00  7.560e-02  0.000e+00  1.000e+01 ( 1.000e+00)
930        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
931        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
925   Normalization:  7.922e-01  7.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 298.820 13.982
Photon Flux Upper Limit: 2.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367754/likelihoodResults_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.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) = 5318.02300962
delta logL = -0.000368019281268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.02264151
delta logL = 9.0984030976e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3008       1.0000          .0000       5.0000    
     3 'Normalizat'    .79216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5318.023     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.100        .90712E-02** at limit **
   2  alpha         2.3256        3.5281        .41318       -.95712E-05
   3  Normalizat    .79215        .76586        .32840        .57376E-04
   4  Prefactor     1.0327        .71479E-01    .26468E-01    .38689E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.32557
  Normalizat = 0.792153
  Prefactor  = 1.03274
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.023     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3256        3.5096        .16527       -.69828E-01
   3  Normalizat    .79215        .70462        .14710E-02   -1.0036    
   4  Prefactor     1.0327        .66505E-01    .11698E-03   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28374e-10
Minuit parameter uncertainties:
  1  0.000288434
  2  2.49568
  3  0.71298
  4  0.0665106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367754': 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) = 5318.02264142
delta logL = 1.85673343367e-07

Extracting fit parameters...

4FGL J1955.2+1358
   Spectrum: LogParabola
576         norm:  1.000e-04  2.884e-04  1.000e-04  1.000e+04 ( 1.000e-12)
577        alpha:  2.326e+00  2.496e+00  0.000e+00  5.000e+00 ( 1.000e+00)
578         beta:  1.829e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
579           Eb:  1.033e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
929    Prefactor:  1.033e+00  6.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
930        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
931        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
925   Normalization:  7.922e-01  7.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 298.820 13.982

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/367754/cmap_HighResolution_408844801_409104001_4FGL_J1955.2+1358_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', job_status='DONE', photon_flux_upper_limit='2.84e-07', time_completed='2021-09-23 21:42:19.898701', job_id='367754', GAL2='1.03', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632458539.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='654' AND source_name='4FGL J1955.2+1358' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:42:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 367754: <4FGL_J1955.2+1358_daily_bin654> in cluster <slac> Done

Job <4FGL_J1955.2+1358_daily_bin654> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 21:26:37 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 21:26:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 21:26:41 2021
Terminated at Thu Sep 23 21:42:20 2021
Results reported at Thu Sep 23 21:42:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.2+1358_daily_bin654 298.82 13.9824 408844801 409104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1955.2+1358 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             375.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            943 sec.

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

