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


Performing analysis on: 4FGL_J0035.2+1514_weekly_bin854
RA = 8.8123, Dec = 15.2405
tmin = 755481601, tmax = 756086401
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='60350577', job_status='RUN', time_executed='2024-12-17 00:02:03.091479', time_epoch_executed='1734422523.09' WHERE source_name='4FGL J0035.2+1514' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60350577

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60350577/ft1_4FGL_J0035.2+1514_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60350577/ft1_4FGL_J0035.2+1514_weekly_bin854.fits outfile=/lscratch/kocevski/60350577/ft1_filteredMKT_4FGL_J0035.2+1514_weekly_bin854.fits ra=8.8123 dec=15.2405 rad=12.0 tmin=755481601.0 tmax=756086401.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.15
user 3.72
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.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/60350577/ft1_filteredMKT_4FGL_J0035.2+1514_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.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.51
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1210

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60350577/ltcube_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.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/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits
.....................!
real 17.79
user 17.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60350577/ltcube_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.fits outfile=/lscratch/kocevski/60350577/expmap_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.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/60350577/ltcube_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.fits
.....................!
real 59.93
user 56.07
sys 3.52

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
Added 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J0035.2+1514 @ 8.8123 15.2405

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits scfile=/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits outfile=/lscratch/kocevski/60350577/cmap_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.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=8.8123 yref=15.2405 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.56
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits scfile=/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits outfile=/lscratch/kocevski/60350577/cmap_HighResolution_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.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=8.8123 yref=15.2405 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.59
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60350577/Model_4FGL_J0035.2+1514_weekly_bin854.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits.....................!
real 49.21
user 47.08
sys 1.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits', '/lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits', expMap='/lscratch/kocevski/60350577/expmap_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.fits', expCube='/lscratch/kocevski/60350577/ltcube_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60350577/Model_4FGL_J0035.2+1514_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0035.2+1514'

4FGL J0035.2+1514
   Spectrum: LogParabola
144         norm:  3.038e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
145        alpha:  1.718e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
146         beta:  8.107e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
147           Eb:  1.944e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60350577/ft1_filtered_4FGL_J0035.2+1514_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60350577/ft2_4FGL_J0035.2+1514_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60350577/expmap_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60350577/ltcube_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60350577/Model_4FGL_J0035.2+1514_weekly_bin854.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) = 13007.3950183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7329       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.1317       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11705E-05   1.0000          .0000       .10000E+07
     4 'norm      '    1.4428       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30810E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.9028       1.0000          .0000       .10000E+07
     7 'norm      '    6.6423       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7104       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.6514       1.0000          .0000       .10000E+07
    10 'norm      '    3.2729       1.0000          .0000       .10000E+07
    11 'Prefactor '    .41373E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .98493E-04   1.0000          .0000       .10000E+07
    13 'norm      '    27.474       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.015       1.0000          .0000       .10000E+07
    15 'norm      '    .13967       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15312E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6041       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2774       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13007.37     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1421 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7363        1.6411       -.79635E-08   -.19596E-03
   2  Prefactor     3.1705        6.1539        .21672E-06    .81052E-02
   3  Prefactor     .55511E-10    4.6205       -.29749E-06** at limit **
   4  norm          1.4483        2.1951       -.14727E-06   -.41316E-03
   5  Prefactor     .55511E-10    2.9667        .27712E-06** at limit **
   6  Prefactor     9.9159        2.9097        .14124E-07   -.13203E-02
   7  norm          6.6461        1.3615       -.92514E-08    .59068E-01
   8  Prefactor     1.7188        1.0993        .19278E-07    .12733E-01
   9  Prefactor     2.6527        1.5850       -.46046E-07    .24634E-01
  10  norm          3.3099        4.0174        .11467E-06    .64480E-03
  11  Prefactor      .0000        1.9963        .10116E-07** at limit **
  12  Prefactor     .11102E-09    2.5767       -.36188E-06** at limit **
  13  norm          27.484        1.1362       -.54424E-08   -.11227    
  14  Prefactor     14.963        37.187        .33994E-05   -.32998E-03
  15  norm          .13999        .23153       -.21274E-07** at limit **
  16  Prefactor     .49960E-09    3.9160        .35948E-06** at limit **
  17  Prefactor     1.6075        2.7976        .86767E-07    .15365E-03
  18  Normalizat    1.2761        .15595       -.51705E-05   -.21511E-06
  19  Prefactor     .84767        .11034        .36960E-05    .21776E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73626
  Prefactor  = 3.17047
  Prefactor  = 5.55112e-11
  norm       = 1.44829
  Prefactor  = 5.55112e-11
  Prefactor  = 9.91595
  norm       = 6.64606
  Prefactor  = 1.71876
  Prefactor  = 2.65268
  norm       = 3.30985
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  norm       = 27.4836
  Prefactor  = 14.9629
  norm       = 0.139992
  Prefactor  = 4.996e-10
  Prefactor  = 1.60746
  Normalizat = 1.27609
  Prefactor  = 0.84767
 **********
 **   18 **HESSE 
 **********

 FCN=   13007.37     FROM HESSE     STATUS=OK           312 CALLS     1733 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7363        1.6639        .79705E-03   -1.5682    
   2  Prefactor     3.1705        6.2598        .57263E-03   -1.5672    
   3  Prefactor     .55511E-10    4.6067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4483        2.2259        .89752E-03   -1.5684    
   5  Prefactor     .55511E-10    2.9575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9159        2.9223        .31818E-03   -1.5645    
   7  norm          6.6461        6.3575        .38912E-03   -1.5656    
   8  Prefactor     1.7188        8.2019        .80347E-03   -1.5682    
   9  Prefactor     2.6527        8.8029        .62579E-03   -1.5675    
  10  norm          3.3099        4.0224        .55949E-03   -1.5672    
  11  Prefactor      .0000        1.9886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    2.5810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          27.484        12.327        .19082E-03   -1.5603    
  14  Prefactor     14.963        37.132        .28875E-03   -1.5631    
  15  norm          .13999        .26922        .12967E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49960E-09    3.9646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6075        2.8272        .83649E-03   -1.5683    
  18  Normalizat    1.2761        .13315        .57969E-01   -.84283    
  19  Prefactor     .84767        .94517E-01    .44338E-01   -.97994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26399e-07
Minuit parameter uncertainties:
  1  1.66388
  2  6.25982
  3  3.62443e-05
  4  2.22588
  5  2.21475e-05
  6  2.92231
  7  6.35752
  8  7.50923
  9  8.80294
  10  4.02236
  11  1.38749e-05
  12  3.03475e-05
  13  12.3275
  14  37.1328
  15  0.269219
  16  9.10698e-05
  17  2.82722
  18  0.133186
  19  0.0945347
Done.

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

Extracting fit parameters...

4FGL J0035.2+1514
   Spectrum: LogParabola
144         norm:  6.646e+00  6.358e+00  0.000e+00  1.000e+06 ( 1.000e-13)
145        alpha:  1.718e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
146         beta:  8.107e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
147           Eb:  1.944e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  8.477e-01  9.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  1.276e+00  1.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 8.812 15.241
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.05e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.50e-05

TS (Fixed Index): 1.97
Ra Dec: 8.812 15.241
Photon Flux Upper Limit: 3.67574833897e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25666643537e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60350577/likelihoodResults_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.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) = 13006.8699539
delta logL = 0.499194174934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13006.8493278
delta logL = 0.519820324853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0722       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3736       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+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=   13006.85     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      287 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0720        6.1417        .17849E-04    .16816E-03
   2  alpha         2.3735        .71759        .15125E-01    .22123E-04
   3  Normalizat    1.2644        .15466        .25731E-03   -.84036E-04
   4  Prefactor     .84814        .11014        .21906E-03   -.16026E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.07201
  alpha      = 2.37348
  Normalizat = 1.26437
  Prefactor  = 0.84814
 **********
 **   18 **HESSE 
 **********

 FCN=   13006.85     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0720        5.3720        .71394E-06   -1.5663    
   2  alpha         2.3735        .62945        .60499E-03   -.50631E-01
   3  Normalizat    1.2644        .15436        .10292E-04   -.84636    
   4  Prefactor     .84814        .11008        .87624E-05   -.97978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29716e-11
Minuit parameter uncertainties:
  1  5.37203
  2  0.636314
  3  0.154413
  4  0.110112
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) = 13006.8493274
delta logL = 0.5198207171

Extracting fit parameters...

4FGL J0035.2+1514
   Spectrum: LogParabola
144         norm:  5.072e+00  5.372e+00  0.000e+00  1.000e+06 ( 1.000e-13)
145        alpha:  2.373e+00  6.363e-01  0.000e+00  5.000e+00 ( 1.000e+00)
146         beta:  8.107e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
147           Eb:  1.944e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  8.481e-01  1.101e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  1.264e+00  1.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 8.812 15.241
Photon Index (Free Index): 2.37 +/- 0.64
Photon Flux (Free Index): 2.75e-08 +/- 2.54e-08
Energy Flux (Free Index): 1.10e-05 +/- 8.56e-06

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/60350577/cmap_HighResolution_755481601_756086401_4FGL_J0035.2+1514_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-05', comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='1.10e-05', photon_flux_error='1.05e-08', dlogl='5.20e-01', energy_flux='1.57e-05', photon_flux2='2.75e-08', job_status='DONE', time_completed='2024-12-17 00:07:53.240595', photon_index_error2='0.64', photon_index2='2.37', ts='1.97', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='3.68e-08', energy_flux_error2='8.56e-06', EG='1.28', time_epoch_completed='1734422873.24', return_code='0', job_id='60350577', GAL2='0.85', EG2='1.26', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.54e-08', ts2='3.00', photon_index='1.72' WHERE bin_id='854' AND source_name='4FGL J0035.2+1514' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:07:53 PST 2024

