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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin2018
RA = 173.196, Dec = 0.5737
tmin = 762393601, tmax = 762652801
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='66270835', job_status='RUN', time_executed='2025-03-03 01:02:42.828346', time_epoch_executed='1740992562.83' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='2018'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/66270835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/66270835/ft1_4FGL_J1132.7+0034_daily_bin2018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/66270835/ft1_4FGL_J1132.7+0034_daily_bin2018.fits outfile=/lscratch/kocevski/66270835/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin2018.fits ra=173.196 dec=0.5737 rad=12.0 tmin=762393601.0 tmax=762652801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.03
user 1.51
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.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/66270835/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin2018.fits evtable="EVENTS" outfile="/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.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.69
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 42

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits" evtable="EVENTS" scfile=/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits sctable="SC_DATA" outfile=/lscratch/kocevski/66270835/ltcube_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.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/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits
.....................!
real 8.63
user 7.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits evtable="EVENTS" scfile=/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits sctable="SC_DATA" expcube=/lscratch/kocevski/66270835/ltcube_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.fits outfile=/lscratch/kocevski/66270835/expmap_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.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/66270835/ltcube_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.fits
.....................!
real 60.43
user 56.36
sys 3.57

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

Setting source of interest to:
4FGL J1132.7+0034 @ 173.196 0.5737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits scfile=/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits outfile=/lscratch/kocevski/66270835/cmap_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.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=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits scfile=/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits outfile=/lscratch/kocevski/66270835/cmap_HighResolution_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.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=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits evtable="EVENTS" scfile=/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/66270835/Model_4FGL_J1132.7+0034_daily_bin2018.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/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits.....................!
real 7.39
user 6.39
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits', '/lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits', expMap='/lscratch/kocevski/66270835/expmap_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.fits', expCube='/lscratch/kocevski/66270835/ltcube_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/66270835/Model_4FGL_J1132.7+0034_daily_bin2018.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1132.7+0034'

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/66270835/ft1_filtered_4FGL_J1132.7+0034_daily_bin2018.fits
Spacecraft file(s): /lscratch/kocevski/66270835/ft2_4FGL_J1132.7+0034_daily_bin2018.fits
Exposure map: /lscratch/kocevski/66270835/expmap_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.fits
Exposure cube: /lscratch/kocevski/66270835/ltcube_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/66270835/Model_4FGL_J1132.7+0034_daily_bin2018.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 545.50503841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 544.330968407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9276       1.0000          .0000       .10000E+07
     2 'norm      '    1.5709       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8652       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55678E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .27676E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4195       1.0000          .0000       .10000E+07
     7 'norm      '    .55920E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.122       1.0000          .0000       .10000E+07
     9 'norm      '    .79986E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .67003E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.5474       1.0000          .0000       .10000E+07
    12 'norm      '    1.6588       1.0000          .0000       .10000E+07
    13 'Prefactor '    .32348E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    15 'Prefactor '    .53322E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .37617E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .57737E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.2132       1.0000          .0000       .10000E+07
    19 'Prefactor '    .19325E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33156E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .59784E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .78695E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .11502E-06   1.0000          .0000       .10000E+07
    24 'Normalizat'    .28508       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   544.3146     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      497 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42502E-03    368.54       -.42910E-06** at limit **
   2  norm          1.6954        24.762       -.17575E-06   -.65424E-03
   3  Prefactor     5.8652        1.0037         .0000         .0000    
   4  Prefactor     .22204E-08    81.711       -.12483E-05** at limit **
   5  Prefactor     .38858E-09    29.185        .23169E-07** at limit **
   6  Prefactor     .22814E-03    499.72        .47721E-06** at limit **
   7  norm          .16653E-09    46.796       -.26000E-06** at limit **
   8  Prefactor     16.760        49.553        .16138E-05   -.43608E-01
   9  norm           .0000        59.561       -.14394E-06** at limit **
  10  Prefactor      .0000        7.3372       -.39804E-07** at limit **
  11  Prefactor     22.317        876.86       -.12467E-04   -.74455E-02
  12  norm          1.4833        49.263        .81308E-06    .43472E-03
  13  Prefactor     .55511E-10    14.264        .26587E-07** at limit **
  14  Prefactor     .39822E-03    215.02       -.10467E-05** at limit **
  15  Prefactor     .14178E-06    58.664       -.51997E-06** at limit **
  16  Prefactor     .66613E-09    16.224       -.21952E-06** at limit **
  17  Prefactor      .0000        14.211        .78233E-07** at limit **
  18  Prefactor     .61062E-09    122.22       -.31460E-06** at limit **
  19  Prefactor     .11102E-09    107.70        .19616E-06** at limit **
  20  Prefactor     .27867E-07    38.819        .45528E-07** at limit **
  21  Prefactor     .49405E-08    110.24       -.60634E-06** at limit **
  22  Prefactor     .30942E-06    74.985        .38548E-06** at limit **
  23  norm          .55511E-10    3.8540        .29063E-07** at limit **
  24  Normalizat    .28463        .67807        .27464E-04   -.66223E-04
  25  Prefactor     .90702        .47878       -.48498E-05   -.14981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000425022
  norm       = 1.69538
  Prefactor  = 5.86518
  Prefactor  = 2.22045e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 0.000228141
  norm       = 1.66533e-10
  Prefactor  = 16.7604
  norm       = 0
  Prefactor  = 0
  Prefactor  = 22.3166
  norm       = 1.48332
  Prefactor  = 5.55112e-11
  Prefactor  = 0.000398219
  Prefactor  = 1.41775e-07
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 2.78666e-08
  Prefactor  = 4.94049e-09
  Prefactor  = 3.09419e-07
  norm       = 5.55112e-11
  Normalizat = 0.284625
  Prefactor  = 0.907017
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   544.3146     FROM HESSE     STATUS=FAILED        19 CALLS      516 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42502E-03    562.14        .74790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6954        19.821        .84782E-03   -1.5682    
   3  Prefactor     41358.        41352.         .0000       -1.5660    
   4  Prefactor     .22204E-08    .58683       -.12483E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-09    .44347E-01    .23169E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22814E-03    .10816        .47721E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16653E-09    .58614       -.26000E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.760        .93653        .16138E-05   -1.5626    
   9  norm           .0000        .52573       -.14394E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .44347E-01   -.39804E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.317        1.7233       -.12467E-04   -1.5613    
  12  norm          1.4833        .99739        .81308E-06   -1.5684    
  13  Prefactor     .55511E-10    .44347E-01    .26587E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .39822E-03    .90059E-01   -.10467E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14178E-06    .44347E-01   -.51997E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .66613E-09    .44347E-01   -.21952E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .44347E-01    .78233E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .61062E-09    .26313       -.31460E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-09    .72944        .19616E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27867E-07    .44347E-01    .45528E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .49405E-08    .57533       -.60634E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .30942E-06    .44347E-01    .38548E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    .44347E-01    .29063E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .28463        .58207        .27464E-04   -1.2377    
  25  Prefactor     .90702        1.2506       -.48498E-05   -.95896    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.80598e-10
Minuit parameter uncertainties:
  1  0.977681
  2  11.5939
  3  1.00368
  4  7.25522e-05
  5  8.23474e-06
  6  0.00993513
  7  1.81556e-05
  8  0.936532
  9  5.07953e-06
  10  1.36394e-06
  11  1.72334
  12  0.997389
  13  3.29645e-06
  14  0.0119772
  15  0.000158584
  16  1.10538e-05
  17  1.67631e-06
  18  2.54848e-05
  19  1.79823e-05
  20  7.02993e-05
  21  0.000106775
  22  0.000234283
  23  2.66659e-06
  24  0.595153
  25  1.29399
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 544.314632639

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  0.000e+00  1.364e-06  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  9.070e-01  1.294e+00  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  2.846e-01  5.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 5.76576772367e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0437158172882 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/66270835/likelihoodResults_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.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) = 544.314910326
delta logL = -0.000277687651078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 544.314637295
delta logL = -4.65663026716e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   544.3146     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      263 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    .68275E-01    .42118E-03** at limit **
   2  Index         2.4680        8.6902        .50000        .96634E-10
   3  Normalizat    .28463        .14316E-02    .95611E-01    .77936E-04
   4  Prefactor     .90702        .10200E-02    .45099E-01    .16128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 2.46802
  Normalizat = 0.284632
  Prefactor  = 0.907018
 **********
 **   18 **HESSE 
 **********

 FCN=   544.3146     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    .52215        .56413E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4680        6.1148        .50000       -.53100    
   3  Normalizat    .28463        .39490E-02    .42343E-03   -1.2377    
   4  Prefactor     .90702        .28193E-02    .17160E-03   -.95896    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.7449e-12
Minuit parameter uncertainties:
  1  2.89104e-05
  2  18473.3
  3  0.00394903
  4  0.00281933
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) = 544.314632639
delta logL = -4.55884219264e-11

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.886e-10  2.891e-05  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.468e+00  1.847e+04  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  9.070e-01  2.819e-03  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  2.846e-01  3.949e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 173.196 0.574

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/66270835/cmap_HighResolution_762393601_762652801_4FGL_J1132.7+0034_daily_bin2018.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-02', job_status='DONE', photon_flux_upper_limit='5.77e-07', time_completed='2025-03-03 01:06:45.127786', job_id='66270835', GAL2='0.91', fit_tolerance='1e-08', EG2='0.28', EG='0.28', time_epoch_completed='1740992805.13', return_code2='102', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='-4.56e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='2018' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  3 01:06:45 PST 2025

