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


Performing analysis on: 4FGL_J1912.0+1612_weekly_bin853
RA = 288.021, Dec = 16.2021
tmin = 754876801, tmax = 755481601
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='59978704', job_status='RUN', time_executed='2024-12-10 01:06:26.046269', time_epoch_executed='1733821586.05' WHERE source_name='4FGL J1912.0+1612' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978704

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978704/ft1_4FGL_J1912.0+1612_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978704/ft1_4FGL_J1912.0+1612_weekly_bin853.fits outfile=/lscratch/kocevski/59978704/ft1_filteredMKT_4FGL_J1912.0+1612_weekly_bin853.fits ra=288.021 dec=16.2021 rad=12.0 tmin=754876801.0 tmax=755481601.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 3.00
user 2.66
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.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/59978704/ft1_filteredMKT_4FGL_J1912.0+1612_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.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.38
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 19072

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978704/ltcube_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.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/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits
.....................!
real 17.90
user 17.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978704/ltcube_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.fits outfile=/lscratch/kocevski/59978704/expmap_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.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/59978704/ltcube_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.fits
.....................!
real 63.60
user 59.58
sys 3.56

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 283 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1912.0+1612 @ 288.021 16.2021

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits scfile=/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits outfile=/lscratch/kocevski/59978704/cmap_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.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=288.021 yref=16.2021 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.42
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits scfile=/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits outfile=/lscratch/kocevski/59978704/cmap_HighResolution_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.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=288.021 yref=16.2021 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.42
user 0.23
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978704/Model_4FGL_J1912.0+1612_weekly_bin853.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits.....................!
real 1882.95
user 1868.26
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits', '/lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits', expMap='/lscratch/kocevski/59978704/expmap_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.fits', expCube='/lscratch/kocevski/59978704/ltcube_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978704/Model_4FGL_J1912.0+1612_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1912.0+1612'

4FGL J1912.0+1612
   Spectrum: PowerLaw
549    Prefactor:  2.266e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
550        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
551        Scale:  1.434e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978704/ft1_filtered_4FGL_J1912.0+1612_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978704/ft2_4FGL_J1912.0+1612_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978704/expmap_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978704/ltcube_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978704/Model_4FGL_J1912.0+1612_weekly_bin853.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) = 167510.573129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.069       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60132E-03   1.0000          .0000       .10000E+07
     3 'norm      '    12.395       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.058       1.0000          .0000       .10000E+07
     5 'norm      '    33.104       1.0000          .0000       .10000E+07
     6 'norm      '    3.5336       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.0325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39193       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.567       1.0000          .0000       .10000E+07
    10 'Prefactor '    13.576       1.0000          .0000       .10000E+07
    11 'norm      '    .79048E-07   1.0000          .0000       .10000E+07
    12 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.0052       1.0000          .0000       10.000    
    14 'norm      '    6.9339       1.0000          .0000       .10000E+07
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1044E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   167510.5     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      739 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.785        19.983        .58601E-07   -.15011E-01
   2  Prefactor     .19429E-08    9.5126        .73033E-06** at limit **
   3  norm          12.402        5.1458       -.12205E-06   -.54504E-02
   4  Prefactor     17.075        8.5061       -.34878E-07   -.46271E-01
   5  norm          33.206        1.1429       -.46120E-08    .23638E-01
   6  norm          3.5338        1.9630        .30445E-07    .11961E-02
   7  Prefactor     1.0318        1.0831        .65390E-06    .15872E-03
   8  Prefactor     .39300        .87853        .74395E-07    .20432E-02
   9  Prefactor     10.701        3.1136       -.24185E-07   -.18533    
  10  Prefactor     13.150        10.598        .15230E-06   -.42630E-01
  11  norm           .0000        .48345        .93054E-07** at limit **
  12  Normalizat    1.3584        .16889        .72356E-06   -.18306E-03
  13  Prefactor     1.0052        .12628E-01   -.53587E-06   -.33056E-02
  14  norm          6.9336        1.0988       -.18442E-07   -.11240E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7854
  Prefactor  = 1.94289e-09
  norm       = 12.4016
  Prefactor  = 17.0753
  norm       = 33.206
  norm       = 3.53382
  Prefactor  = 1.03184
  Prefactor  = 0.392998
  Prefactor  = 10.7008
  Prefactor  = 13.1504
  norm       = 0
  Normalizat = 1.35841
  Prefactor  = 1.00518
  norm       = 6.93362
 **********
 **   18 **HESSE 
 **********

 FCN=   167510.5     FROM HESSE     STATUS=OK           202 CALLS      941 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.785        20.079        .21792E-03   -1.5615    
   2  Prefactor     .19429E-08    9.4842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.402        5.1501        .28427E-03   -1.5638    
   4  Prefactor     17.075        8.6073        .24223E-03   -1.5625    
   5  norm          33.206        15.276        .17383E-03   -1.5593    
   6  norm          3.5338        1.9639        .53750E-03   -1.5670    
   7  Prefactor     1.0318        1.0915        .12458E-01   -1.5505    
   8  Prefactor     .39300        .72900        .90427E-02   -1.5695    
   9  Prefactor     10.701        12.317        .30797E-03   -1.5643    
  10  Prefactor     13.150        10.751        .27159E-03   -1.5635    
  11  norm           .0000        .48096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.3584        .17944        .31723       -.81839    
  13  Prefactor     1.0052        .13002E-01    .26186E-01   -.92557    
  14  norm          6.9336        1.1086        .38076E-03   -1.5655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01824e-06
Minuit parameter uncertainties:
  1  20.0793
  2  0.000272882
  3  5.15014
  4  8.60735
  5  15.276
  6  1.96393
  7  1.09149
  8  0.729002
  9  12.3168
  10  10.7513
  11  4.71672e-06
  12  0.179522
  13  0.0130016
  14  1.10859
Done.

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

Extracting fit parameters...

4FGL J1912.0+1612
   Spectrum: PowerLaw
549    Prefactor:  1.708e+01  8.607e+00  0.000e+00  1.000e+06 ( 1.000e-13)
550        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
551        Scale:  1.434e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1026    Prefactor:  1.005e+00  1.300e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1027        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1028        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1022   Normalization:  1.358e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.37
Ra Dec: 288.021 16.202
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.32e-05

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) = 167510.498819
delta logL = 0.0032145595178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 167510.497407
delta logL = 0.00462729710853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.608       1.0000          .0000       .10000E+07
     2 'Index     '    2.4743       1.0000          .0000       10.000    
     3 'Normalizat'    1.3602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0052       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1044E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   167510.5     FROM MIGRAD    STATUS=FAILED       100 CALLS      267 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.607        11.488        .95365E-05   -.16785E-02
   2  Index         2.4744        .49271        .13657E-01    .33643E-02
   3  Normalizat    1.3602        .16932        .14274E-02   -.15623E-03
   4  Prefactor     1.0052        .12266E-01    .11572E-03   -.37189E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   167510.5     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      341 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.607        11.488        .10791E-04   -1.5624    
   2  Index         2.4744        .49271        .64779E-03   -.52953    
   3  Normalizat    1.3602        .16932        .22374E-03   -.81786    
   4  Prefactor     1.0052        .12266E-01    .17503E-04   -.92555    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   167510.5     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      369 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.607        10.510        .38146E-06   -.58597E-03
   2  Index         2.4744        .45109        .27314E-02    .95897E-05
   3  Normalizat    1.3602        .16899        .57098E-04   -.38229E-05
   4  Prefactor     1.0052        .12267E-01    .46290E-05   -.47155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6067
  Index      = 2.47438
  Normalizat = 1.36024
  Prefactor  = 1.00523
 **********
 **   18 **HESSE 
 **********

 FCN=   167510.5     FROM HESSE     STATUS=OK            23 CALLS      392 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.607        10.345        .37251E-06   -1.5624    
   2  Index         2.4744        .44374        .10926E-03   -.52953    
   3  Normalizat    1.3602        .16889        .11420E-04   -.81786    
   4  Prefactor     1.0052        .12268E-01    .92580E-06   -.92555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86939e-12
Minuit parameter uncertainties:
  1  10.3449
  2  0.444522
  3  0.168956
  4  0.012268
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) = 167510.497407
delta logL = 0.00462731005973

Extracting fit parameters...

4FGL J1912.0+1612
   Spectrum: PowerLaw
549    Prefactor:  1.761e+01  1.034e+01  0.000e+00  1.000e+06 ( 1.000e-13)
550        Index:  2.474e+00  4.445e-01  0.000e+00  1.000e+01 (-1.000e+00)
551        Scale:  1.434e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1026    Prefactor:  1.005e+00  1.227e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1027        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1028        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1022   Normalization:  1.360e+00  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 288.021 16.202
Photon Index (Free Index): 2.47 +/- 0.44
Photon Flux (Free Index): 8.70e-08 +/- 6.79e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /lscratch/kocevski/59978704/cmap_HighResolution_754876801_755481601_4FGL_J1912.0+1612_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='2.60e-05', photon_flux_error='4.63e-08', dlogl='4.63e-03', energy_flux='2.62e-05', photon_flux2='8.70e-08', job_status='DONE', time_completed='2024-12-10 02:22:10.713088', photon_index_error2='0.44', photon_index2='2.47', ts='6.37', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.36', time_epoch_completed='1733826130.71', return_code='0', job_id='59978704', GAL2='1.01', EG2='1.36', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.79e-08', ts2='6.38', photon_index='2.52' WHERE bin_id='853' AND source_name='4FGL J1912.0+1612' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 02:22:10 PST 2024

