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


Performing analysis on: 4FGL_J2107.7+3529_daily_bin1869
RA = 316.943, Dec = 35.4885
tmin = 723772801, tmax = 724032001
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='35827925', job_status='RUN', time_executed='2023-12-12 00:50:51.620286', time_epoch_executed='1702371051.62' WHERE source_name='4FGL J2107.7+3529' and cadence='daily' and bin_id='1869'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35827925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35827925/ft1_4FGL_J2107.7+3529_daily_bin1869.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35827925/ft1_4FGL_J2107.7+3529_daily_bin1869.fits outfile=/lscratch/kocevski/35827925/ft1_filteredMKT_4FGL_J2107.7+3529_daily_bin1869.fits ra=316.943 dec=35.4885 rad=12.0 tmin=723772801.0 tmax=724032001.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 2.68
user 2.43
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.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/35827925/ft1_filteredMKT_4FGL_J2107.7+3529_daily_bin1869.fits evtable="EVENTS" outfile="/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.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.37
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 4223

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35827925/ltcube_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.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/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits
.....................!
real 8.34
user 8.04
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35827925/ltcube_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.fits outfile=/lscratch/kocevski/35827925/expmap_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.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/35827925/ltcube_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.fits
.....................!
real 58.96
user 55.47
sys 3.16

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 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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 197 point sources and 4 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 J2107.7+3529 @ 316.943 35.4885

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits scfile=/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits outfile=/lscratch/kocevski/35827925/cmap_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.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=316.943 yref=35.4885 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.37
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits scfile=/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits outfile=/lscratch/kocevski/35827925/cmap_HighResolution_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.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=316.943 yref=35.4885 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.40
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35827925/Model_4FGL_J2107.7+3529_daily_bin1869.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 gamma Cygni
Working on...
/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits.....................!
real 257.66
user 254.96
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits', '/lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits', expMap='/lscratch/kocevski/35827925/expmap_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.fits', expCube='/lscratch/kocevski/35827925/ltcube_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35827925/Model_4FGL_J2107.7+3529_daily_bin1869.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2107.7+3529'

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  3.801e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  9.237e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35827925/ft1_filtered_4FGL_J2107.7+3529_daily_bin1869.fits
Spacecraft file(s): /lscratch/kocevski/35827925/ft2_4FGL_J2107.7+3529_daily_bin1869.fits
Exposure map: /lscratch/kocevski/35827925/expmap_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.fits
Exposure cube: /lscratch/kocevski/35827925/ltcube_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35827925/Model_4FGL_J2107.7+3529_daily_bin1869.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) = 36640.3254729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32662       1.0000          .0000       .10000E+07
     2 'norm      '    15.325       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9350       1.0000         .10000E-03   10000.    
     4 'norm      '    .59708E-06   1.0000          .0000       .10000E+07
     5 'norm      '    6.7934       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.5874       1.0000         .10000E-03   10000.    
     7 'norm      '    .13479E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    57.972       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.105       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.0988       1.0000          .0000       .10000E+07
    11 'norm      '    1.0407       1.0000          .0000       .10000E+07
    12 'norm      '    .14753E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .76319E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2885       1.0000          .0000       .10000E+07
    15 'Prefactor '    .23565E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .93452       1.0000          .0000       .10000E+07
    17 'Normalizat'    .43924       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   36640.30     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1392 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        65.366       -.37264E-07** at limit **
   2  norm          15.379        6.0475        .98715E-07    .15301E-03
   3  Prefactor     1.9350        .22947       -.18302E-07   -.19156E-03
   4  norm           .0000        .59796        .20263E-06** at limit **
   5  norm          6.7589        5.4390        .74061E-08    .20060E-03
   6  Prefactor     4.5454        4.1947        .10204E-05   -.18264E-04
   7  norm           .0000        13.298       -.43812E-06** at limit **
   8  Prefactor     61.263        73.327        .23766E-06    .75911E-04
   9  Prefactor     32.370        25.421       -.11192E-07    .53673E-04
  10  Prefactor     .99999        4.7232       -.29278E-07    .12894E-04
  11  norm          1.0908        4.7343        .11317E-05    .19914E-03
  12  norm           .0000        6.1577       -.24132E-06** at limit **
  13  norm           .0000        38.649       -.72085E-07** at limit **
  14  Prefactor     1.2837        4.6715        .23868E-07    .11174E-03
  15  Prefactor      .0000        3.6658       -.22802E-06** at limit **
  16  norm          .93571        .87640       -.22347E-07   -.20875E-04
  17  Normalizat    .43753        .24157       -.23810E-05    .19577E-05
  18  Prefactor     1.0888        .30233E-01    .14286E-06    .35737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 15.3787
  Prefactor  = 1.93502
  norm       = 0
  norm       = 6.75889
  Prefactor  = 4.54542
  norm       = 0
  Prefactor  = 61.2634
  Prefactor  = 32.3698
  Prefactor  = 0.999991
  norm       = 1.0908
  norm       = 0
  norm       = 0
  Prefactor  = 1.28372
  Prefactor  = 0
  norm       = 0.935708
  Normalizat = 0.437534
  Prefactor  = 1.08876
 **********
 **   18 **HESSE 
 **********

 FCN=   36640.30     FROM HESSE     STATUS=OK           296 CALLS     1688 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        64.155        .98534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.379        6.0490        .25558E-03   -1.5630    
   3  Prefactor     1.9350        .23058        .67224E-02   -1.5430    
   4  norm           .0000        .59620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7589        5.4412        .38472E-03   -1.5656    
   6  Prefactor     4.5454        4.2214        .46984E-02   -1.5282    
   7  norm           .0000        13.316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     61.263        74.808        .13135E-03   -1.5551    
   9  Prefactor     32.370        25.951        .17651E-03   -1.5594    
  10  Prefactor     .99999        6.4081        .11344E-02   -1.5688    
  11  norm          1.0908        6.0243        .12268E-02   -1.5687    
  12  norm           .0000        .46796        .66129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        5.5220        .14615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2837        4.7478        .97568E-03   -1.5685    
  15  Prefactor      .0000        3.6622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .93571        .90530        .43402E-03   -1.5689    
  17  Normalizat    .43753        .31422        .34404       -1.1540    
  18  Prefactor     1.0888        .35871E-01    .28968E-01   -.89827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92202e-05
Minuit parameter uncertainties:
  1  1.17869e-05
  2  6.049
  3  0.23058
  4  4.64977e-07
  5  5.44117
  6  4.22165
  7  4.86007e-06
  8  74.8094
  9  25.9513
  10  5.06283
  11  5.12693
  12  1.15081e-07
  13  1.35534e-05
  14  4.7478
  15  6.32454e-07
  16  0.905298
  17  0.315494
  18  0.0358719
Done.

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

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  3.237e+01  2.595e+01  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  9.237e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.089e+00  3.587e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  4.375e-01  3.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 316.943 35.489
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.33e-05

TS (Fixed Index): 2.52
Ra Dec: 316.943 35.489
Photon Flux Upper Limit: 1.59642905544e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0124493051185 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35827925/likelihoodResults_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.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) = 36640.29791
delta logL = 0.00251181991189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 36640.2965221
delta logL = 0.00389969187381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.853       1.0000          .0000       .10000E+07
     2 'Index     '    2.6013       1.0000          .0000       10.000    
     3 'Normalizat'    .43389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+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=   36640.30     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      276 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.834        33.582        .72024E-05    .54299E-03
   2  Index         2.6010        .74859        .13756E-01    .94827E-04
   3  Normalizat    .43501        .21827        .15186E-02   -.56296E-04
   4  Prefactor     1.0888        .27741E-01    .12802E-03    .75309E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.8341
  Index      = 2.60103
  Normalizat = 0.435007
  Prefactor  = 1.08885
 **********
 **   18 **HESSE 
 **********

 FCN=   36640.30     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.834        30.157        .28809E-06   -1.5597    
   2  Index         2.6010        .67279        .55022E-03   -.50042    
   3  Normalizat    .43501        .21790        .60745E-04   -1.1553    
   4  Prefactor     1.0888        .27715E-01    .51206E-05   -.89824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79388e-10
Minuit parameter uncertainties:
  1  30.1573
  2  0.675459
  3  0.218323
  4  0.0277157
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) = 36640.2964978
delta logL = 0.00392403237493

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  3.083e+01  3.016e+01  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.601e+00  6.755e-01  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  9.237e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.089e+00  2.772e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  4.350e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 316.943 35.489
Photon Index (Free Index): 2.60 +/- 0.68
Photon Flux (Free Index): 6.26e-08 +/- 5.72e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35827925/cmap_HighResolution_723772801_724032001_4FGL_J2107.7+3529_daily_bin1869.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='1.64e-05', photon_flux_error='4.79e-08', dlogl='3.92e-03', energy_flux='1.66e-05', photon_flux2='6.26e-08', job_status='DONE', time_completed='2023-12-12 01:08:41.593160', photon_index_error2='0.68', photon_index2='2.60', ts='2.52', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.29e-05', EG='0.44', time_epoch_completed='1702372121.59', return_code='0', job_id='35827925', GAL2='1.09', EG2='0.44', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.72e-08', ts2='2.53', photon_index='2.54' WHERE bin_id='1869' AND source_name='4FGL J2107.7+3529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 12 01:08:41 PST 2023

