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


Performing analysis on: 4FGL_J1522.1+3144_weekly_bin802
RA = 230.545, Dec = 31.7395
tmin = 724032001, tmax = 724636801
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='36606981', job_status='RUN', time_executed='2023-12-19 01:00:49.856634', time_epoch_executed='1702976449.86' WHERE source_name='4FGL J1522.1+3144' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36606981

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36606981/ft1_4FGL_J1522.1+3144_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36606981/ft1_4FGL_J1522.1+3144_weekly_bin802.fits outfile=/lscratch/kocevski/36606981/ft1_filteredMKT_4FGL_J1522.1+3144_weekly_bin802.fits ra=230.545 dec=31.7395 rad=12.0 tmin=724032001.0 tmax=724636801.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.69
user 4.30
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.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/36606981/ft1_filteredMKT_4FGL_J1522.1+3144_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.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.42
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1463

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36606981/ltcube_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.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/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits
.....................!
real 19.04
user 18.70
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36606981/ltcube_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.fits outfile=/lscratch/kocevski/36606981/expmap_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.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/36606981/ltcube_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.fits
.....................!
real 74.47
user 69.98
sys 4.13

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

Setting source of interest to:
4FGL J1522.1+3144 @ 230.545 31.7395

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits scfile=/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits outfile=/lscratch/kocevski/36606981/cmap_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.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=230.545 yref=31.7395 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.44
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits scfile=/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits outfile=/lscratch/kocevski/36606981/cmap_HighResolution_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.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=230.545 yref=31.7395 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.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36606981/Model_4FGL_J1522.1+3144_weekly_bin802.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/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits.....................!
real 45.37
user 43.63
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits', '/lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits', expMap='/lscratch/kocevski/36606981/expmap_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.fits', expCube='/lscratch/kocevski/36606981/ltcube_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36606981/Model_4FGL_J1522.1+3144_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1522.1+3144'

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.555e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36606981/ft1_filtered_4FGL_J1522.1+3144_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36606981/ft2_4FGL_J1522.1+3144_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36606981/expmap_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36606981/ltcube_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36606981/Model_4FGL_J1522.1+3144_weekly_bin802.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) = 16017.4730757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1362       1.0000          .0000       .10000E+07
     2 'norm      '    4.7844       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.993       1.0000          .0000       .10000E+07
     4 'norm      '    .73275E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .95675       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13726E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3824       1.0000          .0000       .10000E+07
     8 'norm      '    .46851E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    37.934       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.3304       1.0000          .0000       .10000E+07
    11 'Prefactor '    .21290E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .70255       1.0000          .0000       .10000E+07
    13 'Prefactor '    .50796E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24358       1.0000          .0000       .10000E+07
    15 'norm      '    .78388E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .31542       1.0000          .0000       .10000E+07
    17 'Prefactor '    .73544E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12797E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34608       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16017.47     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1656 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1298        2.8952       -.37671E-06    .10402E-02
   2  norm          4.7807        2.4078        .14187E-06    .22294E-02
   3  Prefactor     14.008        7.4610       -.24173E-06   -.51191E-01
   4  norm           .0000        .91522       -.55922E-07** at limit **
   5  Prefactor     .99037        10.197        .32333E-05    .12779E-01
   6  Prefactor      .0000        1.0978       -.98733E-08** at limit **
   7  Prefactor     1.3971        4.4944       -.45763E-06    .15958E-02
   8  norm           .0000        .20254        .62341E-07** at limit **
   9  Prefactor     38.028        12.164        .14612E-05   -.21275E-01
  10  Prefactor     6.3115        7.9880       -.20830E-06   -.13699E-02
  11  Prefactor     .11102E-09    3.3807       -.76382E-07** at limit **
  12  norm          .70309        .51644        .48002E-07   -.33474E-02
  13  Prefactor     .66613E-09    26.274        .23200E-05** at limit **
  14  Prefactor     .30148E-06    209.13       -.20524E-04** at limit **
  15  norm          .27756E-09    4.6887        .29689E-06** at limit **
  16  Prefactor     .31589        1.1315       -.32622E-06    .34179E-02
  17  Prefactor     .11102E-09    2.9815       -.80520E-07** at limit **
  18  Prefactor      .0000        2.5450       -.40549E-06** at limit **
  19  Prefactor     .34526        1.2408       -.15189E-06    .27686E-03
  20  Normalizat    1.1025        .12400        .25559E-05    .23480E-03
  21  Prefactor     .92335        .10281       -.24415E-05    .36049E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1298
  norm       = 4.78066
  Prefactor  = 14.0084
  norm       = 0
  Prefactor  = 0.990374
  Prefactor  = 0
  Prefactor  = 1.39711
  norm       = 0
  Prefactor  = 38.0275
  Prefactor  = 6.31148
  Prefactor  = 1.11022e-10
  norm       = 0.703091
  Prefactor  = 6.66134e-10
  Prefactor  = 3.01481e-07
  norm       = 2.77556e-10
  Prefactor  = 0.315891
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0.345262
  Normalizat = 1.1025
  Prefactor  = 0.923349
 **********
 **   18 **HESSE 
 **********

 FCN=   16017.47     FROM HESSE     STATUS=OK           365 CALLS     2021 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1298        2.9080        .57220E-03   -1.5673    
   2  norm          4.7807        2.4179        .45973E-03   -1.5664    
   3  Prefactor     14.008        19.511        .26750E-03   -1.5633    
   4  norm           .0000        .91920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .99037        11.268        .42228E-03   -1.5688    
   6  Prefactor      .0000        1.0962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3971        4.5261        .92514E-03   -1.5684    
   8  norm           .0000        .20364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.028        31.686        .16238E-03   -1.5585    
  10  Prefactor     6.3115        8.0126        .39871E-03   -1.5658    
  11  Prefactor     .11102E-09    3.3838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .70309        .52081        .60502E-04   -1.5691    
  13  Prefactor     .66613E-09    25.441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .30148E-06    8.6757        .14138E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .27756E-09    4.6984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31589        1.1254        .10002E-02   -1.5697    
  17  Prefactor     .11102E-09    2.9887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.5417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .34526        1.2463        .96019E-03   -1.5696    
  20  Normalizat    1.1025        .10913        .37891E-01   -.89672    
  21  Prefactor     .92335        .88976E-01    .45299E-01   -.95330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31077e-07
Minuit parameter uncertainties:
  1  2.90802
  2  2.41789
  3  19.5106
  4  2.74474e-06
  5  6.68133
  6  1.0168e-06
  7  4.5261
  8  1.81816e-07
  9  31.6862
  10  8.01266
  11  3.41806e-05
  12  0.520809
  13  0.000258277
  14  0.00323467
  15  7.21861e-05
  16  1.12538
  17  3.79907e-05
  18  1.27541e-06
  19  1.24627
  20  0.109156
  21  0.08899
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.031e-01  5.208e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.233e-01  8.899e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.102e+00  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 7.22e-06 +/- 5.35e-06

TS (Fixed Index): 3.82
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 5.88632561292e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85354324839e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36606981/likelihoodResults_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.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) = 16017.4537502
delta logL = 0.0154118214941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16017.4374131
delta logL = 0.031748933985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54420       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9796       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16017.44     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54416        .46352        .74382E-03   -.16603E-01
   2  alpha         1.9797        .57915        .42339       -.14909E-03
   3  Normalizat    1.1150        .10453        .37419E-01    .48504E-03
   4  Prefactor     .91811        .88058E-01    .45235E-01    .54350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.544156
  alpha      = 1.97966
  Normalizat = 1.11503
  Prefactor  = 0.918109
 **********
 **   18 **HESSE 
 **********

 FCN=   16017.44     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54416        .78616        .75766E-05   -1.5693    
   2  alpha         1.9797        1.2306        .28776E-01   -.20967    
   3  Normalizat    1.1150        .12389        .23562E-03   -.89271    
   4  Prefactor     .91811        .10200        .21702E-03   -.95511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64968e-09
Minuit parameter uncertainties:
  1  0.786156
  2  1.28958
  3  0.123923
  4  0.102022
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) = 16017.4374131
delta logL = 0.0317489633635

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  5.442e-01  7.862e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  1.980e+00  1.290e+00  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.181e-01  1.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.115e+00  1.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 230.545 31.739
Photon Index (Free Index): 1.98 +/- 1.29
Photon Flux (Free Index): 1.31e-08 +/- 2.85e-08
Energy Flux (Free Index): 6.99e-06 +/- 6.05e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/36606981/cmap_HighResolution_724032001_724636801_4FGL_J1522.1+3144_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='6.99e-06', photon_flux_error='1.70e-08', dlogl='3.17e-02', energy_flux='7.22e-06', photon_flux2='1.31e-08', job_status='DONE', time_completed='2023-12-19 01:08:56.489441', photon_index_error2='1.29', photon_index2='1.98', ts='3.82', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='5.89e-08', energy_flux_error2='6.05e-06', EG='1.10', time_epoch_completed='1702976936.49', return_code='0', job_id='36606981', GAL2='0.92', EG2='1.12', return_code2='0', energy_flux_error='5.35e-06', photon_flux_error2='2.85e-08', ts2='3.87', photon_index='2.37' WHERE bin_id='802' AND source_name='4FGL J1522.1+3144' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:08:56 PST 2023

