 **********
 **   18 **HESSE 
 **********

 FCN=   25363.93     FROM HESSE     STATUS=OK           239 CALLS     1150 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33016        .95441        .40625E-02   -1.5696    
   2  norm          3.8799        8.9382        .52414E-03   -1.5669    
   3  Prefactor     .96001        4.3094        .43850E-03   -1.5688    
   4  Prefactor      .0000        2.7624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.4256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.0338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1063        1.0803        .11244E-02   -1.5687    
   8  Prefactor     .14433E-08    4.2136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94369E-09    3.7360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9486        2.4249        .59156E-03   -1.5674    
  11  Prefactor      .0000        15.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.226        19.221        .28876E-03   -1.5641    
  13  Prefactor     20.072        28.142        .22756E-03   -1.5618    
  14  Prefactor     2.2390        3.5792        .68069E-03   -1.5678    
  15  Normalizat    .94971        .10755        .73879E-01   -.94735    
  16  Prefactor     1.1480        .63749E-01    .35985E-01   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51727e-08
Minuit parameter uncertainties:
  1  0.954407
  2  8.93826
  3  4.06796
  4  1.49111e-05
  5  5.12914e-06
  6  1.47816e-05
  7  1.08028
  8  0.00015696
  9  0.000118762
  10  2.42487
  11  3.60855e-05
  12  19.2211
  13  28.1422
  14  3.57918
  15  0.107572
  16  0.0637536
/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
Done.

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

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  5.129e-06  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  6.375e-02  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 3.727 32.216
Photon Flux Upper Limit: 3.27073588966e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0025612487119 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30945153/likelihoodResults_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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) = 25363.9316748
delta logL = -0.000210870672163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25363.9314692
delta logL = -5.2658651839e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22559E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.2973       1.0000          .0000       10.000    
     3 'Normalizat'    .94939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      246 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4289        .42118E-03** at limit **
   2  Index         1.4936        .76058       -.92207E-05     .0000    
   3  Normalizat    .94971        1.2824       -.49415E-05    .13792E-03
   4  Prefactor     1.1480        1.1227        .26608E-05    .25615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.49358
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM HESSE     STATUS=FAILED         9 CALLS      255 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .19973        1.3746       -.92207E-05   -.77720    
   3  Normalizat    .94971        1.2824       -.49415E-05   -.94735    
   4  Prefactor     1.1480        1.1227        .26608E-05   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.31591e-12
Minuit parameter uncertainties:
  1  2.46352e-07
  2  0.766478
  3  1.32777
  4  1.14731

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).

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/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)
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25363.931464
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  2.464e-07  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  1.494e+00  7.665e-01  0.000e+00  1.000e+01 (-1.000e+00)
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  1.147e+00  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.328e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 3.727 32.216

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/30945153/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2026-07-07 12:01:16.178499', job_id='30945153', GAL2='1.15', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1783450876.18', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='932' AND source_name='4FGL J0014.9+3212' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  7 12:01:17 PDT 2026


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

number of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0014.9+3212_weekly_bin932
RA = 3.7268, Dec = 32.2162
tmin = 802656001, tmax = 803260801
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='30945603', job_status='RUN', time_executed='2026-07-07 11:50:14.754327', time_epoch_executed='1783450214.75' WHERE source_name='4FGL J0014.9+3212' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/30945603

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/30945603/ft1_4FGL_J0014.9+3212_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/30945603/ft1_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945603/ft1_filteredMKT_4FGL_J0014.9+3212_weekly_bin932.fits ra=3.7268 dec=32.2162 rad=12.0 tmin=802656001.0 tmax=803260801.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.85
user 3.62
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.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/30945603/ft1_filteredMKT_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.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 2.22
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 2311

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" onumber of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0014.9+3212_weekly_bin932
RA = 3.7268, Dec = 32.2162
tmin = 802656001, tmax = 803260801
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='30945675', job_status='RUN', time_executed='2026-07-07 11:52:50.285378', time_epoch_executed='1783450370.29' WHERE source_name='4FGL J0014.9+3212' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/30945675

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/30945675/ft1_4FGL_J0014.9+3212_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/30945675/ft1_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945675/ft1_filteredMKT_4FGL_J0014.9+3212_weekly_bin932.fits ra=3.7268 dec=32.2162 rad=12.0 tmin=802656001.0 tmax=803260801.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.60
user 3.69
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.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/30945675/ft1_filteredMKT_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.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 1.81
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 2311

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" outfile=/lscratch/kocevski/30945603/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits
.....................!
real 17.65
user 15.58
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/30945603/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945603/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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/30945603/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
.....................!
real 60.87
user 55.42
sys 3.53

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

Setting source of interest to:
4FGL J0014.9+3212 @ 3.7268 32.2162

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits scfile=/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945603/cmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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=3.7268 yref=32.2162 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 1.96
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits scfile=/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945603/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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=3.7268 yref=32.2162 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 1.81
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/30945603/Model_4FGL_J0014.9+3212_weekly_bin932.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 GALutfile=/lscratch/kocevski/30945675/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits
.....................!
real 19.35
user 17.78
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/30945675/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945675/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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/30945675/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
.....................!
real 63.12
user 57.73
sys 3.47

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

Setting source of interest to:
4FGL J0014.9+3212 @ 3.7268 32.2162

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits scfile=/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945675/cmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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=3.7268 yref=32.2162 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 2.25
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits scfile=/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945675/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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=3.7268 yref=32.2162 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 1.79
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/30945675/Model_4FGL_J0014.9+3212_weekly_bin932.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/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits.....................!
real 77.57
user 74.76
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits', '/lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits', expMap='/lscratch/kocevski/30945603/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits', expCube='/lscratch/kocevski/30945603/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/30945603/Model_4FGL_J0014.9+3212_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.9+3212'

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  2.454e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/30945603/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/30945603/ft2_4FGL_J0014.9+3212_weekly_bin932.fits
Exposure map: /lscratch/kocevski/30945603/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/30945603/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/30945603/Model_4FGL_J0014.9+3212_weekly_bin932.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 25364.6622199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32651       1.0000          .0000       .10000E+07
     2 'norm      '    3.7087       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0024       1.0000          .0000       .10000E+07
     4 'Prefactor '    .80524E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13006E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10450E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.1070       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57441E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.9451       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10137E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.014       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.325       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.2741       1.0000          .0000       .10000E+07
    15 'Normalizat'    .94887       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      911 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33016        1.5194        .58575E-09   -.39514E-04
   2  norm          3.8799        6.9676       -.16025E-07    .89760E-02
   3  Prefactor     .96001        2.0322        .10864E-07   -.16886E-01
   4  Prefactor      .0000        2.7635        .10242E-06** at limit **
   5  Prefactor      .0000        1.4340       -.12233E-07** at limit **
   6  Prefactor      .0000        4.0333        .63316E-08** at limit **
   7  norm          1.1063        1.0606       -.36333E-07    .38590E-03
   8  Prefactor     .14433E-08    4.1325       -.33329E-07** at limit **
   9  Prefactor     .94369E-09    3.6349        .13842E-07** at limit **
  10  norm          2.9486        2.4208       -.48373E-07    .92421E-04
  11  Prefactor      .0000        16.079        .80601E-07** at limit **
  12  Prefactor     11.226        19.205       -.49464E-07   -.99709E-03
  13  Prefactor     20.072        27.801       -.94652E-07    .10889E-02
  14  Prefactor     2.2390        3.4801        .15243E-07    .16000E-03
  15  Normalizat    .94971        .12327        .39551E-06   -.10025E-04
  16  Prefactor     1.1480        .73698E-01    .71032E-06   -.22480E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.330158
  norm       = 3.87985
  Prefactor  = 0.96001
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.10633
  Prefactor  = 1.44329e-09
  Prefactor  = 9.4369e-10
  norm       = 2.94865
  Prefactor  = 0
  Prefactor  = 11.2264
  Prefactor  = 20.0718
  Prefactor  = 2.23903
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********

 FCN=   25363.93     FROM HESSE     STATUS=OK           239 CALLS     1150 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33016        .95441        .40625E-02   -1.5696    
   2  norm          3.8799        8.9382        .52414E-03   -1.5669    
   3  Prefactor     .96001        4.3094        .43850E-03   -1.5688    
   4  Prefactor      .0000        2.7624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.4256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.0338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1063        1.0803        .11244E-02   -1.5687    
   8  Prefactor     .14433E-08    4.2136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94369E-09    3.7360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9486        2.4249        .59156E-03   -1.5674    
  11  Prefactor      .0000        15.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.226        19.221        .28876E-03   -1.5641    
  13  Prefactor     20.072        28.142        .22756E-03   -1.5618    
  14  Prefactor     2.2390        3.5792        .68069E-03   -1.5678    
  15  Normalizat    .94971        .10755        .73879E-01   -.94735    
  16  Prefactor     1.1480        .63749E-01    .35985E-01   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51727e-08
Minuit parameter uncertainties:
  1  0.954407
  2  8.93826
  3  4.06796
  4  1.49111e-05
  5  5.12914e-06
  6  1.47816e-05
  7  1.08028
  8  0.00015696
  9  0.000118762
  10  2.42487
  11  3.60855e-05
  12  19.2211
  13  28.1422
  14  3.57918
  15  0.107572
  16  0.0637536
Done.

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

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  5.129e-06  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  6.375e-02  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 3.727 32.216
Photon Flux Upper Limit: 3.27073588966e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0025612487119 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30945603/likelihoodResults_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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) = 25363.9316748
delta logL = -0.000210870672163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25363.9314692
delta logL = -5.2658651839e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22559E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.2973       1.0000          .0000       10.000    
     3 'Normalizat'    .94939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      246 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4289        .42118E-03** at limit **
   2  Index         1.4936        .76058       -.92207E-05     .0000    
   3  Normalizat    .94971        1.2824       -.49415E-05    .13792E-03
   4  Prefactor     1.1480        1.1227        .26608E-05    .25615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.49358
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM HESSE     STATUS=FAILED         9 CALLS      255 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .19973        1.3746       -.92207E-05   -.77720    
   3  Normalizat    .94971        1.2824       -.49415E-05   -.94735    
   4  Prefactor     1.1480        1.1227        .26608E-05   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.31591e-12
Minuit parameter uncertainties:
  1  2.46352e-07
  2  0.766478
  3  1.32777
  4  1.14731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25363.931464
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  2.464e-07  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  1.494e+00  7.665e-01  0.000e+00  1.000e+01 (-1.000e+00)
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  1.147e+00  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.328e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 3.727 32.216

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/30945603/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2026-07-07 12:14:25.089617', job_id='30945603', GAL2='1.15', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1783451665.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='932' AND source_name='4FGL J0014.9+3212' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  7 12:14:26 PDT 2026

_V02
Working on...
/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits.....................!
real 80.43
user 77.46
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits', '/lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits', expMap='/lscratch/kocevski/30945675/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits', expCube='/lscratch/kocevski/30945675/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/30945675/Model_4FGL_J0014.9+3212_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.9+3212'

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  2.454e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/30945675/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/30945675/ft2_4FGL_J0014.9+3212_weekly_bin932.fits
Exposure map: /lscratch/kocevski/30945675/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/30945675/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/30945675/Model_4FGL_J0014.9+3212_weekly_bin932.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 25364.6622199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32651       1.0000          .0000       .10000E+07
     2 'norm      '    3.7087       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0024       1.0000          .0000       .10000E+07
     4 'Prefactor '    .80524E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13006E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10450E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.1070       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57441E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.9451       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10137E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.014       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.325       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.2741       1.0000          .0000       .10000E+07
    15 'Normalizat'    .94887       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      911 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33016        1.5194        .58575E-09   -.39514E-04
   2  norm          3.8799        6.9676       -.16025E-07    .89760E-02
   3  Prefactor     .96001        2.0322        .10864E-07   -.16886E-01
   4  Prefactor      .0000        2.7635        .10242E-06** at limit **
   5  Prefactor      .0000        1.4340       -.12233E-07** at limit **
   6  Prefactor      .0000        4.0333        .63316E-08** at limit **
   7  norm          1.1063        1.0606       -.36333E-07    .38590E-03
   8  Prefactor     .14433E-08    4.1325       -.33329E-07** at limit **
   9  Prefactor     .94369E-09    3.6349        .13842E-07** at limit **
  10  norm          2.9486        2.4208       -.48373E-07    .92421E-04
  11  Prefactor      .0000        16.079        .80601E-07** at limit **
  12  Prefactor     11.226        19.205       -.49464E-07   -.99709E-03
  13  Prefactor     20.072        27.801       -.94652E-07    .10889E-02
  14  Prefactor     2.2390        3.4801        .15243E-07    .16000E-03
  15  Normalizat    .94971        .12327        .39551E-06   -.10025E-04
  16  Prefactor     1.1480        .73698E-01    .71032E-06   -.22480E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.330158
  norm       = 3.87985
  Prefactor  = 0.96001
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.10633
  Prefactor  = 1.44329e-09
  Prefactor  = 9.4369e-10
  norm       = 2.94865
  Prefactor  = 0
  Prefactor  = 11.2264
  Prefactor  = 20.0718
  Prefactor  = 2.23903
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********

 FCN=   25363.93     FROM HESSE     STATUS=OK           239 CALLS     1150 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33016        .95441        .40625E-02   -1.5696    
   2  norm          3.8799        8.9382        .52414E-03   -1.5669    
   3  Prefactor     .96001        4.3094        .43850E-03   -1.5688    
   4  Prefactor      .0000        2.7624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.4256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.0338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1063        1.0803        .11244E-02   -1.5687    
   8  Prefactor     .14433E-08    4.2136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94369E-09    3.7360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9486        2.4249        .59156E-03   -1.5674    
  11  Prefactor      .0000        15.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.226        19.221        .28876E-03   -1.5641    
  13  Prefactor     20.072        28.142        .22756E-03   -1.5618    
  14  Prefactor     2.2390        3.5792        .68069E-03   -1.5678    
  15  Normalizat    .94971        .10755        .73879E-01   -.94735    
  16  Prefactor     1.1480        .63749E-01    .35985E-01   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51727e-08
Minuit parameter uncertainties:
  1  0.954407
  2  8.93826
  3  4.06796
  4  1.49111e-05
  5  5.12914e-06
  6  1.47816e-05
  7  1.08028
  8  0.00015696
  9  0.000118762
  10  2.42487
  11  3.60855e-05
  12  19.2211
  13  28.1422
  14  3.57918
  15  0.107572
  16  0.0637536
Done.

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

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  5.129e-06  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  6.375e-02  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 3.727 32.216
Photon Flux Upper Limit: 3.27073588966e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0025612487119 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30945675/likelihoodResults_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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) = 25363.9316748
delta logL = -0.000210870672163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25363.9314692
delta logL = -5.2658651839e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22559E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.2973       1.0000          .0000       10.000    
     3 'Normalizat'    .94939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      246 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4289        .42118E-03** at limit **
   2  Index         1.4936        .76058       -.92207E-05     .0000    
   3  Normalizat    .94971        1.2824       -.49415E-05    .13792E-03
   4  Prefactor     1.1480        1.1227        .26608E-05    .25615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.49358
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM HESSE     STATUS=FAILED         9 CALLS      255 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .19973        1.3746       -.92207E-05   -.77720    
   3  Normalizat    .94971        1.2824       -.49415E-05   -.94735    
   4  Prefactor     1.1480        1.1227        .26608E-05   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.31591e-12
Minuit parameter uncertainties:
  1  2.46352e-07
  2  0.766478
  3  1.32777
  4  1.14731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25363.931464
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  2.464e-07  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  1.494e+00  7.665e-01  0.000e+00  1.000e+01 (-1.000e+00)
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  1.147e+00  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.328e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 3.727 32.216

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/30945675/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2026-07-07 12:16:11.581718', job_id='30945675', GAL2='1.15', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1783451771.58', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='932' AND source_name='4FGL J0014.9+3212' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  7 12:16:12 PDT 2026

number of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0014.9+3212_weekly_bin932
RA = 3.7268, Dec = 32.2162
tmin = 802656001, tmax = 803260801
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='30945957', job_status='RUN', time_executed='2026-07-07 12:01:39.765590', time_epoch_executed='1783450899.77' WHERE source_name='4FGL J0014.9+3212' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/30945957

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/30945957/ft1_4FGL_J0014.9+3212_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/30945957/ft1_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945957/ft1_filteredMKT_4FGL_J0014.9+3212_weekly_bin932.fits ra=3.7268 dec=32.2162 rad=12.0 tmin=802656001.0 tmax=803260801.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.22
user 3.56
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.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/30945957/ft1_filteredMKT_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.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 1.55
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 2311

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" outfile=/lscratch/kocevski/30945957/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits
.....................!
real 17.46
user 15.74
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/30945957/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945957/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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/30945957/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
.....................!
real 60.39
user 55.70
sys 3.54

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

Setting source of interest to:
4FGL J0014.9+3212 @ 3.7268 32.2162

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits scfile=/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945957/cmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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=3.7268 yref=32.2162 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 1.27
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits scfile=/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits outfile=/lscratch/kocevski/30945957/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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=3.7268 yref=32.2162 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 1.61
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/30945957/Model_4FGL_J0014.9+3212_weekly_bin932.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/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits.....................!
real 77.40
user 74.44
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits', '/lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits', expMap='/lscratch/kocevski/30945957/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits', expCube='/lscratch/kocevski/30945957/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/30945957/Model_4FGL_J0014.9+3212_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.9+3212'

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  2.454e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/30945957/ft1_filtered_4FGL_J0014.9+3212_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/30945957/ft2_4FGL_J0014.9+3212_weekly_bin932.fits
Exposure map: /lscratch/kocevski/30945957/expmap_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/30945957/ltcube_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/30945957/Model_4FGL_J0014.9+3212_weekly_bin932.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 25364.6622199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32651       1.0000          .0000       .10000E+07
     2 'norm      '    3.7087       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0024       1.0000          .0000       .10000E+07
     4 'Prefactor '    .80524E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13006E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10450E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.1070       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57441E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.9451       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10137E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.014       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.325       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.2741       1.0000          .0000       .10000E+07
    15 'Normalizat'    .94887       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      911 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33016        1.5194        .58575E-09   -.39514E-04
   2  norm          3.8799        6.9676       -.16025E-07    .89760E-02
   3  Prefactor     .96001        2.0322        .10864E-07   -.16886E-01
   4  Prefactor      .0000        2.7635        .10242E-06** at limit **
   5  Prefactor      .0000        1.4340       -.12233E-07** at limit **
   6  Prefactor      .0000        4.0333        .63316E-08** at limit **
   7  norm          1.1063        1.0606       -.36333E-07    .38590E-03
   8  Prefactor     .14433E-08    4.1325       -.33329E-07** at limit **
   9  Prefactor     .94369E-09    3.6349        .13842E-07** at limit **
  10  norm          2.9486        2.4208       -.48373E-07    .92421E-04
  11  Prefactor      .0000        16.079        .80601E-07** at limit **
  12  Prefactor     11.226        19.205       -.49464E-07   -.99709E-03
  13  Prefactor     20.072        27.801       -.94652E-07    .10889E-02
  14  Prefactor     2.2390        3.4801        .15243E-07    .16000E-03
  15  Normalizat    .94971        .12327        .39551E-06   -.10025E-04
  16  Prefactor     1.1480        .73698E-01    .71032E-06   -.22480E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.330158
  norm       = 3.87985
  Prefactor  = 0.96001
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.10633
  Prefactor  = 1.44329e-09
  Prefactor  = 9.4369e-10
  norm       = 2.94865
  Prefactor  = 0
  Prefactor  = 11.2264
  Prefactor  = 20.0718
  Prefactor  = 2.23903
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********

 FCN=   25363.93     FROM HESSE     STATUS=OK           239 CALLS     1150 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33016        .95441        .40625E-02   -1.5696    
   2  norm          3.8799        8.9382        .52414E-03   -1.5669    
   3  Prefactor     .96001        4.3094        .43850E-03   -1.5688    
   4  Prefactor      .0000        2.7624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.4256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.0338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1063        1.0803        .11244E-02   -1.5687    
   8  Prefactor     .14433E-08    4.2136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94369E-09    3.7360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9486        2.4249        .59156E-03   -1.5674    
  11  Prefactor      .0000        15.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.226        19.221        .28876E-03   -1.5641    
  13  Prefactor     20.072        28.142        .22756E-03   -1.5618    
  14  Prefactor     2.2390        3.5792        .68069E-03   -1.5678    
  15  Normalizat    .94971        .10755        .73879E-01   -.94735    
  16  Prefactor     1.1480        .63749E-01    .35985E-01   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51727e-08
Minuit parameter uncertainties:
  1  0.954407
  2  8.93826
  3  4.06796
  4  1.49111e-05
  5  5.12914e-06
  6  1.47816e-05
  7  1.08028
  8  0.00015696
  9  0.000118762
  10  2.42487
  11  3.60855e-05
  12  19.2211
  13  28.1422
  14  3.57918
  15  0.107572
  16  0.0637536
Done.

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

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  5.129e-06  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  6.375e-02  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 3.727 32.216
Photon Flux Upper Limit: 3.27073588966e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0025612487119 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30945957/likelihoodResults_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.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) = 25363.9316748
delta logL = -0.000210870672163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25363.9314692
delta logL = -5.2658651839e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22559E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.2973       1.0000          .0000       10.000    
     3 'Normalizat'    .94939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      246 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4289        .42118E-03** at limit **
   2  Index         1.4936        .76058       -.92207E-05     .0000    
   3  Normalizat    .94971        1.2824       -.49415E-05    .13792E-03
   4  Prefactor     1.1480        1.1227        .26608E-05    .25615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.49358
  Normalizat = 0.949711
  Prefactor  = 1.14798
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25363.93     FROM HESSE     STATUS=FAILED         9 CALLS      255 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .19973        1.3746       -.92207E-05   -.77720    
   3  Normalizat    .94971        1.2824       -.49415E-05   -.94735    
   4  Prefactor     1.1480        1.1227        .26608E-05   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.31591e-12
Minuit parameter uncertainties:
  1  2.46352e-07
  2  0.766478
  3  1.32777
  4  1.14731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 25363.931464
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  0.000e+00  2.464e-07  0.000e+00  1.000e+06 ( 1.000e-12)
60         Index:  1.494e+00  7.665e-01  0.000e+00  1.000e+01 (-1.000e+00)
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.148e+00  1.147e+00  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.497e-01  1.328e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 3.727 32.216

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/30945957/cmap_HighResolution_802656001_803260801_4FGL_J0014.9+3212_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2026-07-07 12:22:50.752371', job_id='30945957', GAL2='1.15', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1783452170.75', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='932' AND source_name='4FGL J0014.9+3212' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  7 12:22:51 PDT 2026

