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


Performing analysis on: 4FGL_J1200.2+0201_weekly_bin906
RA = 180.055, Dec = 2.0172
tmin = 786931201, tmax = 787536001
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='17378722', job_status='RUN', time_executed='2025-12-16 02:20:46.472979', time_epoch_executed='1765880446.47' WHERE source_name='4FGL J1200.2+0201' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378722

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378722/ft1_4FGL_J1200.2+0201_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378722/ft1_4FGL_J1200.2+0201_weekly_bin906.fits outfile=/lscratch/kocevski/17378722/ft1_filteredMKT_4FGL_J1200.2+0201_weekly_bin906.fits ra=180.055 dec=2.0172 rad=12.0 tmin=786931201.0 tmax=787536001.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.63
user 4.84
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.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/17378722/ft1_filteredMKT_4FGL_J1200.2+0201_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.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.92
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1839

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378722/ltcube_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.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/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits
.....................!
real 17.86
user 16.77
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378722/ltcube_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.fits outfile=/lscratch/kocevski/17378722/expmap_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.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/17378722/ltcube_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.fits
.....................!
real 66.80
user 62.22
sys 3.49

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits scfile=/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits outfile=/lscratch/kocevski/17378722/cmap_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.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=180.055 yref=2.0172 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.86
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits scfile=/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits outfile=/lscratch/kocevski/17378722/cmap_HighResolution_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.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=180.055 yref=2.0172 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.05
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378722/Model_4FGL_J1200.2+0201_weekly_bin906.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/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits.....................!
real 58.51
user 55.99
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits', '/lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits', expMap='/lscratch/kocevski/17378722/expmap_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.fits', expCube='/lscratch/kocevski/17378722/ltcube_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378722/Model_4FGL_J1200.2+0201_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378722/ft1_filtered_4FGL_J1200.2+0201_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378722/ft2_4FGL_J1200.2+0201_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378722/expmap_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378722/ltcube_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378722/Model_4FGL_J1200.2+0201_weekly_bin906.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) = 19862.1841905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47184E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .12379E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.4554       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.367       1.0000          .0000       .10000E+07
     5 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.1464       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    .28089E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12434E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .51459E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.393       1.0000          .0000       .10000E+07
    12 'Prefactor '    33.334       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7744       1.0000          .0000       .10000E+07
    14 'Prefactor '    .68351E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    19.766       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22905E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    8.1720       1.0000          .0000       .10000E+07
    18 'norm      '    .26096E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .74385E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    21 'norm      '    .95479E-08   1.0000          .0000       .10000E+07
    22 'norm      '    3.2428       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.2167       1.0000          .0000       .10000E+07
    24 'norm      '    .85452       1.0000          .0000       .10000E+07
    25 'Prefactor '    .31783       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19862.15     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2360 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .72899        .29890E-07** at limit **
   2  norm          .55511E-09    3.8485       -.10581E-06** at limit **
   3  Prefactor     2.4556        1.2744        .46209E-07   -.29032E-03
   4  Prefactor     13.363        1.5630        .11958E-07   -.91196E-01
   5  norm           .0000        .80051       -.14897E-07** at limit **
   6  Prefactor     4.1468        1.9995        .35064E-07    .14429E-03
   7  Prefactor     .26090E-08    13.269       -.19792E-06** at limit **
   8  Prefactor      .0000        1.9319       -.19719E-07** at limit **
   9  Prefactor      .0000        2.1912       -.19696E-06** at limit **
  10  Prefactor      .0000        2.3978       -.77248E-07** at limit **
  11  Prefactor     15.395        1.0635        .19069E-08   -.21118E-01
  12  Prefactor     33.313        1.0064       -.17308E-08   -.70203E-04
  13  Prefactor     3.7723        1.0233        .29988E-08    .12101E-02
  14  Prefactor     .24980E-08    16.454        .17142E-06** at limit **
  15  Prefactor     19.768        1.0970        .23666E-08   -.13538E-01
  16  Prefactor     .14433E-08    38.988        .10017E-05** at limit **
  17  Prefactor     8.1731        5.0577        .10892E-07   -.10681E-03
  18  norm           .0000        .92180       -.95560E-07** at limit **
  19  norm           .0000        .93597       -.13244E-06** at limit **
  20  Prefactor     .55511E-09    3.4968       -.34402E-08** at limit **
  21  norm          .12768E-08    5.8809       -.18535E-06** at limit **
  22  norm          3.2429        .40766       -.30596E-08   -.10815E-03
  23  Prefactor     5.2168        4.7255       -.43639E-07   -.45519E-03
  24  norm          .85452        .65240       -.17003E-07    .58287E-03
  25  Prefactor     .31924        5.3978        .50299E-06   -.39218E-03
  26  Normalizat    1.1103        .13261       -.23138E-05    .19895E-04
  27  Prefactor     .98041        .10639        .83865E-06    .14968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.55112e-10
  Prefactor  = 2.45562
  Prefactor  = 13.3634
  norm       = 0
  Prefactor  = 4.14676
  Prefactor  = 2.60902e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.3952
  Prefactor  = 33.3131
  Prefactor  = 3.77227
  Prefactor  = 2.498e-09
  Prefactor  = 19.7676
  Prefactor  = 1.44329e-09
  Prefactor  = 8.17306
  norm       = 0
  norm       = 0
  Prefactor  = 5.55112e-10
  norm       = 1.27676e-09
  norm       = 3.24289
  Prefactor  = 5.21676
  norm       = 0.854522
  Prefactor  = 0.319239
  Normalizat = 1.11032
  Prefactor  = 0.980405
 **********
 **   18 **HESSE 
 **********

 FCN=   19862.15     FROM HESSE     STATUS=OK           546 CALLS     2906 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .72702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-09    3.8650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4556        1.2817        .65247E-03   -1.5677    
   4  Prefactor     13.363        10.749        .27371E-03   -1.5635    
   5  norm           .0000        .80042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1468        2.0169        .49476E-03   -1.5667    
   7  Prefactor     .26090E-08    13.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.9329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        2.1864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.4002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.395        8.4526        .25502E-03   -1.5629    
  12  Prefactor     33.313        34.233        .17323E-03   -1.5593    
  13  Prefactor     3.7723        16.249        .51939E-03   -1.5669    
  14  Prefactor     .24980E-08    16.471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.768        10.683        .22500E-03   -1.5619    
  16  Prefactor     .14433E-08    38.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1731        5.1408        .35047E-03   -1.5651    
  18  norm           .0000        .88893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .92919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-09    3.5063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .12768E-08    5.9084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2429        .40842        .56221E-03   -1.5672    
  23  Prefactor     5.2168        4.7593        .43987E-03   -1.5662    
  24  norm          .85452        .65438        .48957E-03   -1.5689    
  25  Prefactor     .31924        1.6351        .68325E-02   -1.5697    
  26  Normalizat    1.1103        .11517        .63400E-01   -.89421    
  27  Prefactor     .98041        .91363E-01    .46020E-01   -.93386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23226e-07
Minuit parameter uncertainties:
  1  4.73368e-07
  2  9.23286e-05
  3  1.28166
  4  10.749
  5  7.56825e-07
  6  2.0169
  7  0.000372171
  8  2.21073e-06
  9  1.0125e-05
  10  2.69045e-06
  11  8.45259
  12  34.2334
  13  15.6585
  14  0.000407353
  15  10.6833
  16  0.000473389
  17  5.14075
  18  1.97664e-06
  19  1.89166e-06
  20  8.73166e-05
  21  0.000175444
  22  0.408424
  23  4.75926
  24  0.654385
  25  1.44498
  26  0.115196
  27  0.091377
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  1.012e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.804e-01  9.138e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.110e+00  1.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 2.93031091498e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00221720802717 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378722/likelihoodResults_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19862.1523606
delta logL = -0.00137083361551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19861.8673332
delta logL = 0.283656594915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78463E-02   1.0000          .0000       .10000E+07
     2 'Index     '    4.9338       1.0000          .0000       10.000    
     3 'Normalizat'    1.0726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19861.87     FROM MIGRAD    STATUS=CONVERGED    202 CALLS      416 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79613E-02    .57471E-01    .35387E-03** at limit **
   2  Index         4.9288        1.4297        .12312        .44597E-03
   3  Normalizat    1.0723        .13856E-01    .64399E-01   -.94868E-04
   4  Prefactor     1.0002        .11352E-01    .46102E-01   -.57535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00796135
  Index      = 4.92884
  Normalizat = 1.07228
  Prefactor  = 1.00015
 **********
 **   18 **HESSE 
 **********

 FCN=   19861.87     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      451 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79613E-02    .60834        .13901E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.9288        7.3953        .84084E-02   -.14232E-01
   3  Normalizat    1.0723        .73859E-01    .28487E-03   -.90647    
   4  Prefactor     1.0002        .59325E-01    .23958E-03   -.92724    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75821e-08
Minuit parameter uncertainties:
  1  0.139186
  2  6.60357
  3  0.0738657
  4  0.0593285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19861.8673248
delta logL = 0.283664971823

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  7.961e-03  1.392e-01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  4.929e+00  6.604e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.000e+00  5.933e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.072e+00  7.387e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 180.055 2.017

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/17378722/cmap_HighResolution_786931201_787536001_4FGL_J1200.2+0201_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-03', job_status='DONE', photon_flux_upper_limit='2.93e-08', time_completed='2025-12-16 02:36:02.190635', job_id='17378722', GAL2='1.00', fit_tolerance='1e-08', EG2='1.07', EG='1.11', time_epoch_completed='1765881362.19', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.84e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='906' AND source_name='4FGL J1200.2+0201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:36:02 PST 2025

