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


Performing analysis on: 4FGL_J1955.2+1358_daily_bin637
RA = 298.82, Dec = 13.9824
tmin = 404438401, tmax = 404697601
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='367726', job_status='RUN', time_executed='2021-09-23 21:29:55.065385', time_epoch_executed='1632457795.07' WHERE source_name='4FGL J1955.2+1358' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367726/ft1_4FGL_J1955.2+1358_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367726/ft1_4FGL_J1955.2+1358_daily_bin637.fits outfile=/scratch/kocevski/367726/ft1_filteredMKT_4FGL_J1955.2+1358_daily_bin637.fits ra=298.82 dec=13.9824 rad=12.0 tmin=404438401.0 tmax=404697601.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 12.70
user 12.33
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.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/367726/ft1_filteredMKT_4FGL_J1955.2+1358_daily_bin637.fits evtable="EVENTS" outfile="/scratch/kocevski/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/367726/ltcube_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.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/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits
.....................!
real 11.30
user 10.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/367726/ltcube_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.fits outfile=/scratch/kocevski/367726/expmap_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.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/367726/ltcube_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.fits
.....................!
real 191.48
user 185.03
sys 5.27

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/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits scfile=/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits outfile=/scratch/kocevski/367726/cmap_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits scfile=/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits outfile=/scratch/kocevski/367726/cmap_HighResolution_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367726/Model_4FGL_J1955.2+1358_daily_bin637.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/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits........................!
real 31.10
user 29.88
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits', '/scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits', expMap='/scratch/kocevski/367726/expmap_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.fits', expCube='/scratch/kocevski/367726/ltcube_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367726/Model_4FGL_J1955.2+1358_daily_bin637.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/367726/ft1_filtered_4FGL_J1955.2+1358_daily_bin637.fits
Spacecraft file(s): /scratch/kocevski/367726/ft2_4FGL_J1955.2+1358_daily_bin637.fits
Exposure map: /scratch/kocevski/367726/expmap_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.fits
Exposure cube: /scratch/kocevski/367726/ltcube_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367726/Model_4FGL_J1955.2+1358_daily_bin637.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) = 516.585541295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    281.00       1.0000         .10000E-03   10000.    
     2 'norm      '    .20806       1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17257E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98450E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34014E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82891       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4633       1.0000         .10000E-03   10000.    
    12 'norm      '    .11092E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    3.8628       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .30124       1.0000          .0000       10.000    
    15 'norm      '    67.781       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   512.5340     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      430 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     281.36        478.02        .60512E-03   -.82066E-02
   2  norm          .10771E-03    317.20        .10014E-01** at limit **
   3  norm          .10000E-03    29.444        .90712E-02** at limit **
   4  Prefactor     .24761E-03    264.45        .90712E-02** at limit **
   5  Prefactor     .10000E-03    28.517        .90712E-02** at limit **
   6  Prefactor     .10033E-03    449.46        .95038E-02** at limit **
   7  Prefactor     .10007E-03    186.80        .91918E-02** at limit **
   8  norm          .10001E-03    114.56        .90712E-02** at limit **
   9  norm          1.3023        1.1041         .0000         .0000    
  10  Prefactor     .10352E-03    .39358       -.11987E-04** at limit **
  11  Prefactor     .10138E-03    .73783E-01   -.19216E-04** at limit **
  12  norm          .10000E-03    .20571       -.66992E-06** at limit **
  13  Normalizat    3.8628        1.0012        .15355E-04    .17261E-04
  14  Prefactor     .30122        .61501       -.30999E-05   -.89109E-04
  15  norm          67.799        1.0002       -.17410E-07    .19153E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 281.36
  norm       = 0.000107706
  norm       = 0.0001
  Prefactor  = 0.000247609
  Prefactor  = 0.0001
  Prefactor  = 0.000100331
  Prefactor  = 0.000100068
  norm       = 0.000100006
  norm       = 1.30227
  Prefactor  = 0.000103519
  Prefactor  = 0.000101377
  norm       = 0.0001
  Normalizat = 3.86279
  Prefactor  = 0.301219
  norm       = 67.7987
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   512.5340     FROM HESSE     STATUS=FAILED        25 CALLS      455 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     281.36        478.02        .60512E-03   -1.2337    
   2  norm          .10771E-03    317.20        .10014E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    29.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24761E-03    264.45        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10033E-03    449.46        .95038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10007E-03    186.80        .91918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    114.56        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          581.71        580.17         .0000       -1.5480    
  10  Prefactor     .10352E-03    .39358       -.11987E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10138E-03    .73783E-01   -.19216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571       -.66992E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    3.8628        1.0012        .15355E-04   -.23071    
  14  Prefactor     .30122        .61501       -.30999E-05   -1.2219    
  15  norm          67.799        1.0002       -.17410E-07   -1.4059    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.1171e-09
Minuit parameter uncertainties:
  1  484.94
  2  0.0994083
  3  5.24895e-05
  4  0.396909
  5  8.07049e-05
  6  0.024595
  7  0.00717454
  8  0.00170265
  9  1.10413
  10  0.00235374
  11  0.000637428
  12  1.69593e-05
  13  1.00843
  14  0.629115
  15  1.00016
Done.

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

Extracting fit parameters...

4FGL J1955.2+1358
   Spectrum: LogParabola
576         norm:  1.000e-04  1.703e-03  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:  3.012e-01  6.291e-01  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:  3.863e+00  1.008e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 298.820 13.982
Photon Flux Upper Limit: 6.60e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367726/likelihoodResults_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.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) = 512.534089044
delta logL = -4.10399075008e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 512.534049115
delta logL = -1.11090378141e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10619E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4477       1.0000          .0000       5.0000    
     3 'Normalizat'    3.8628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30117       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   512.5340     FROM MIGRAD    STATUS=FAILED       104 CALLS      276 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7438.2        .13689E-01** at limit **
   2  alpha         1.5467        2.7469        .18282        .14124E-07
   3  Normalizat    3.8627        .48154        .73873E-03   -.27646E-04
   4  Prefactor     .30122        .33760E-01    .14686E-03   -.14120E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   512.5340     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      458 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7438.2        .18228E-02** at limit **
   2  alpha         1.5467        2.7469        .25783E-06    .14124E-07
   3  Normalizat    3.8627        .48154        .77204E-07   -.27646E-04
   4  Prefactor     .30122        .33760E-01    .34912E-08   -.14120E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   512.5340     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      486 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    146.94        .26811E-02** at limit **
   2  alpha         1.5271        3.6786        .73129E-02   -.66071E-09
   3  Normalizat    3.8627        2.1706        .14775E-03   -.27576E-04
   4  Prefactor     .30122        .15727        .29373E-04   -.14106E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52713
  Normalizat = 3.86275
  Prefactor  = 0.30122
 **********
 **   18 **HESSE 
 **********

 FCN=   512.5340     FROM HESSE     STATUS=OK            23 CALLS      509 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    146.22        .53621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5271        2.7869        .14626E-02   -.39971    
   3  Normalizat    3.8627        2.1707        .29549E-04   -.23072    
   4  Prefactor     .30122        .15728        .58745E-05   -1.2219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02027e-10
Minuit parameter uncertainties:
  1  0.000139447
  2  1765.93
  3  2.25013
  4  0.157506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367726': 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) = 512.53404791
delta logL = 9.46065483731e-08

Extracting fit parameters...

4FGL J1955.2+1358
   Spectrum: LogParabola
576         norm:  1.000e-04  1.394e-04  1.000e-04  1.000e+04 ( 1.000e-12)
577        alpha:  1.527e+00  1.766e+03  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:  3.012e-01  1.575e-01  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:  3.863e+00  2.250e+00  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/367726/cmap_HighResolution_404438401_404697601_4FGL_J1955.2+1358_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='6.60e-06', time_completed='2021-09-23 21:36:49.065378', job_id='367726', GAL2='0.30', fit_tolerance='1e-08', EG2='3.86', EG='3.86', time_epoch_completed='1632458209.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.30', dlogl='9.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='637' AND source_name='4FGL J1955.2+1358' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 21:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 367726: <4FGL_J1955.2+1358_daily_bin637> in cluster <slac> Done

Job <4FGL_J1955.2+1358_daily_bin637> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 21:26:36 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 21:26: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 21:26:38 2021
Terminated at Thu Sep 23 21:36:49 2021
Results reported at Thu Sep 23 21:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.2+1358_daily_bin637 298.82 13.9824 404438401 404697601 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 :                                   410.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             263.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

