/sdf/group/fermi/u/kocevski/software/conda/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)

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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/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 = 17422
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1955.1+3321_weekly_bin802
RA = 298.797, Dec = 33.35
tmin = 724032001, tmax = 724636801
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='36607654', job_status='RUN', time_executed='2023-12-19 01:15:54.620872', time_epoch_executed='1702977354.62' WHERE source_name='4FGL J1955.1+3321' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607654

Creating custom pfile directory:
/lscratch/kocevski/36607654/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36607654/ft1_4FGL_J1955.1+3321_weekly_bin802.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607654/ft1_4FGL_J1955.1+3321_weekly_bin802.fits outfile=/lscratch/kocevski/36607654/ft1_filteredMKT_4FGL_J1955.1+3321_weekly_bin802.fits ra=298.797 dec=33.35 rad=12.0 tmin=724032001.0 tmax=724636801.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 5.00
user 4.24
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/36607654/ft1_filteredMKT_4FGL_J1955.1+3321_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.69
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 11318

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36607654/ltcube_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.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 /lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits
.....................!
real 20.17
user 19.77
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607654/ltcube_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.fits outfile=/lscratch/kocevski/36607654/expmap_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.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 /lscratch/kocevski/36607654/ltcube_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.fits
.....................!
real 68.31
user 64.16
sys 3.88

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 227 point sources and 5 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+3321 @ 298.797 33.35

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits scfile=/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits outfile=/lscratch/kocevski/36607654/cmap_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.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.797 yref=33.35 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.41
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits scfile=/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits outfile=/lscratch/kocevski/36607654/cmap_HighResolution_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.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.797 yref=33.35 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.42
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36607654/Model_4FGL_J1955.1+3321_weekly_bin802.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 Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source W 51C
adding source gamma Cygni
Working on...
/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits.....................!
real 1105.42
user 1099.48
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits', '/lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits', expMap='/lscratch/kocevski/36607654/expmap_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.fits', expCube='/lscratch/kocevski/36607654/ltcube_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36607654/Model_4FGL_J1955.1+3321_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.1+3321'

4FGL J1955.1+3321
   Spectrum: LogParabola
401         norm:  2.481e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  3.167e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36607654/ft1_filtered_4FGL_J1955.1+3321_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36607654/ft2_4FGL_J1955.1+3321_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36607654/expmap_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36607654/ltcube_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36607654/Model_4FGL_J1955.1+3321_weekly_bin802.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) = 98157.3979044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.377       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25884E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6611       1.0000          .0000       .10000E+07
     4 'norm      '    9.6092       1.0000          .0000       .10000E+07
     5 'norm      '    .10399E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.7823       1.0000          .0000       .10000E+07
     7 'norm      '    6.4350       1.0000          .0000       .10000E+07
     8 'Prefactor '    24.817       1.0000          .0000       .10000E+07
     9 'norm      '    16.538       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9541       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5963       1.0000          .0000       .10000E+07
    12 'norm      '    1.1496       1.0000          .0000       .10000E+07
    13 'Prefactor '    .62222       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.4023       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .97777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98157.39     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      999 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.344        5.8754       -.15169E-07    .55519E-01
   2  Prefactor     .14433E-08    18.213        .63278E-07** at limit **
   3  Prefactor     2.7579        4.8697       -.85975E-07   -.91204E-02
   4  norm          9.5825        3.6318        .35732E-06   -.72795E-01
   5  norm          .55511E-10    1.1215        .11388E-07** at limit **
   6  Prefactor     4.6994        6.9897        .37503E-06   -.15347E-02
   7  norm          6.4608        5.0557        .13367E-05    .13958E-01
   8  Prefactor     24.818        1.0148       -.13014E-07    .11072E-01
   9  norm          16.523        3.8278        .34526E-07    .78849E-02
  10  Prefactor     1.9543        .15003        .17253E-08    .71250E-02
  11  norm          2.5943        1.8287       -.11970E-06   -.14304E-01
  12  norm          1.1380        2.9540       -.78250E-07    .32386E-02
  13  Prefactor     .61930        2.3980        .30969E-06    .49739E-03
  14  Normalizat    1.4019        .18520       -.31455E-06    .34418E-03
  15  Prefactor     .97780        .17282E-01   -.73527E-07    .72389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.344
  Prefactor  = 1.44329e-09
  Prefactor  = 2.75794
  norm       = 9.58252
  norm       = 5.55112e-11
  Prefactor  = 4.69935
  norm       = 6.46078
  Prefactor  = 24.8179
  norm       = 16.523
  Prefactor  = 1.9543
  norm       = 2.59429
  norm       = 1.13805
  Prefactor  = 0.6193
  Normalizat = 1.40187
  Prefactor  = 0.977803
 **********
 **   18 **HESSE 
 **********

 FCN=   98157.39     FROM HESSE     STATUS=OK           220 CALLS     1219 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.344        9.3702        .27361E-03   -1.5635    
   2  Prefactor     .14433E-08    18.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7579        4.9008        .62456E-03   -1.5675    
   4  norm          9.5825        10.111        .32303E-03   -1.5646    
   5  norm          .55511E-10    1.1215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6994        9.5286        .45983E-03   -1.5665    
   7  norm          6.4608        5.1278        .39541E-03   -1.5657    
   8  Prefactor     24.818        19.836        .20078E-03   -1.5608    
   9  norm          16.523        3.8925        .24601E-03   -1.5627    
  10  Prefactor     1.9543        .15161        .71861E-02   -1.5428    
  11  norm          2.5943        1.8349        .63294E-03   -1.5676    
  12  norm          1.1380        2.9340        .10794E-02   -1.5687    
  13  Prefactor     .61930        2.4149        .11760E-01   -1.5551    
  14  Normalizat    1.4019        .18914        .26342       -.80575    
  15  Prefactor     .97780        .17368E-01    .27992E-01   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26445e-06
Minuit parameter uncertainties:
  1  9.37022
  2  0.000323323
  3  4.90079
  4  10.1115
  5  1.45156e-05
  6  9.52861
  7  5.12778
  8  19.8362
  9  3.8925
  10  0.151607
  11  1.83493
  12  2.93402
  13  2.41531
  14  0.18923
  15  0.017368
Done.

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

Extracting fit parameters...

4FGL J1955.1+3321
   Spectrum: LogParabola
401         norm:  9.583e+00  1.011e+01  0.000e+00  1.000e+06 ( 1.000e-13)
402        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  3.167e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
824    Prefactor:  9.778e-01  1.737e-02  0.000e+00  1.000e+01 ( 1.000e+00)
825        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
826        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
823   Normalization:  1.402e+00  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 298.797 33.350
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.41e-05

TS (Fixed Index): 1.52
Ra Dec: 298.797 33.350
Photon Flux Upper Limit: 6.37707095131e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61866255405e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36607654/likelihoodResults_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.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) = 98154.5317582
delta logL = 2.85336548208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 98154.5290167
delta logL = 2.85610698475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9034       1.0000          .0000       .10000E+07
     2 'alpha     '    3.9611       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8390E+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=   98154.53     FROM MIGRAD    STATUS=FAILED        99 CALLS      355 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8967        22.469        .20171E-04   -.35170E-02
   2  alpha         3.9624        3.9548        .17849E-01    .32635E-02
   3  Normalizat    1.3501        .18639        .11974E-02    .72009E-04
   4  Prefactor     .97468        .15036E-01    .12380E-03    .19688E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   98154.53     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      433 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8967        22.469        .13253E-04   -.35170E-02
   2  alpha         3.9624        3.9548        .13926E-02    .32635E-02
   3  Normalizat    1.3501        .18639        .16119E-03    .72009E-04
   4  Prefactor     .97468        .15036E-01    .18924E-04    .19688E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98154.53     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      464 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8967        8.1847        .80683E-06   -.36409E-02
   2  alpha         3.9624        1.1953        .35697E-02   -.23542E-04
   3  Normalizat    1.3501        .18799        .47894E-04    .71401E-04
   4  Prefactor     .97468        .16644E-01    .49521E-05    .19101E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89666
  alpha      = 3.9624
  Normalizat = 1.35009
  Prefactor  = 0.974684
 **********
 **   18 **HESSE 
 **********

 FCN=   98154.53     FROM HESSE     STATUS=OK            23 CALLS      487 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8967        4.6136        .37370E-06   -1.5674    
   2  alpha         3.9624        .70518        .14279E-03    .62483    
   3  Normalizat    1.3501        .18295        .95789E-05   -.82083    
   4  Prefactor     .97468        .16531E-01    .99041E-06   -.93578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01557e-11
Minuit parameter uncertainties:
  1  4.61365
  2  0.720234
  3  0.183041
  4  0.0165312
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) = 98154.5290138
delta logL = 2.85610985245

Extracting fit parameters...

4FGL J1955.1+3321
   Spectrum: LogParabola
401         norm:  2.897e+00  4.614e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        alpha:  3.962e+00  7.202e-01  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  3.167e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
824    Prefactor:  9.747e-01  1.653e-02  0.000e+00  1.000e+01 ( 1.000e+00)
825        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
826        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
823   Normalization:  1.350e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.34
Ra Dec: 298.797 33.350
Photon Index (Free Index): 3.96 +/- 0.72
Photon Flux (Free Index): 1.79e-07 +/- 8.08e-08
Energy Flux (Free Index): 3.82e-05 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/36607654/cmap_HighResolution_724032001_724636801_4FGL_J1955.1+3321_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='3.82e-05', photon_flux_error='1.95e-08', dlogl='2.86e+00', energy_flux='1.34e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2023-12-19 02:09:03.870260', photon_index_error2='0.72', photon_index2='3.96', ts='1.52', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='1.54e-05', EG='1.40', time_epoch_completed='1702980543.87', return_code='0', job_id='36607654', GAL2='0.97', EG2='1.35', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='8.08e-08', ts2='7.34', photon_index='2.30' WHERE bin_id='802' AND source_name='4FGL J1955.1+3321' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 02:09:03 PST 2023

