/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packa/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use ast/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 160 seconds before starting...
Proceeding.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 17354
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0245.4+2408_weekly_bin760
RA = 41.3545, Dec = 24.1498
tmin = 698630401, tmax = 699235201
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='4942', job_status='RUN', time_executed='2023-02-28 06:42:24.844337', time_epoch_executed='1677595344.84' WHERE source_name='4FGL J0245.4+2408' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4942

Creating custom pfile directory:
/scratch/kocevski/4942/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=698630401.0 && nMetStart<699235201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=698630401.0 && nMetStart<699235201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4942/ft1_4FGL_J0245.4+2408_weekly_bin760.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=698630401.0 && nMetStart<699235201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4942/ft1_4FGL_J0245.4+2408_weekly_bin760.fits outfile=/scratch/kocevski/4942/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin760.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.26
user 5.98
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/4942/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 3551

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/4942/ltcube_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.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 /scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits
.....................!
real 34.19
user 33.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/4942/ltcube_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.fits outfile=/scratch/kocevski/4942/expmap_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.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 /scratch/kocevski/4942/ltcube_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.fits
.....................!
real 190.93
user 185.88
sys 4.51

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits scfile=/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits outfile=/scratch/kocevski/4942/cmap_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.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=41.3545 yref=24.1498 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits scfile=/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits outfile=/scratch/kocevski/4942/cmap_HighResolution_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.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=41.3545 yref=24.1498 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.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4942/Model_4FGL_J0245.4+2408_weekly_bin760.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...
/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits.....................!
real 499.81
user 497.61
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits', '/scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits', expMap='/scratch/kocevski/4942/expmap_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.fits', expCube='/scratch/kocevski/4942/ltcube_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4942/Model_4FGL_J0245.4+2408_weekly_bin760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/4942/ft1_filtered_4FGL_J0245.4+2408_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/4942/ft2_4FGL_J0245.4+2408_weekly_bin760.fits
Exposure map: /scratch/kocevski/4942/expmap_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.fits
Exposure cube: /scratch/kocevski/4942/ltcube_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4942/Model_4FGL_J0245.4+2408_weekly_bin760.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) = 37249.9547215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36201E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.0467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32568E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .48221E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .43727E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .40408E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16165E-06   1.0000          .0000       .10000E+07
     8 'norm      '    1.0817       1.0000          .0000       .10000E+07
     9 'Prefactor '    .38535E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .51532       1.0000          .0000       .10000E+07
    11 'Prefactor '    .26621E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74082E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .12221E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.3883       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.8935       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.6510       1.0000          .0000       .10000E+07
    17 'norm      '    .77853       1.0000          .0000       .10000E+07
    18 'norm      '    11.807       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.3697       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11972E-05   1.0000          .0000       .10000E+07
    21 'norm      '    2.8449       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1440       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37249.76     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1488 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .88565       -.54776E-07** at limit **
   2  Prefactor     5.0476        4.3829       -.87113E-08   -.18888E-05
   3  Prefactor      .0000        .59340        .45974E-07** at limit **
   4  norm           .0000        8.7735        .95120E-07** at limit **
   5  Prefactor     .55511E-10    32.747       -.32707E-07** at limit **
   6  Prefactor      .0000        23.305        .10838E-06** at limit **
   7  Prefactor      .0000        2.2848       -.51100E-07** at limit **
   8  norm          1.0819        .71351       -.30991E-07    .58934E-03
   9  Prefactor      .0000        3.1690        .73001E-07** at limit **
  10  norm          .51536        .22904        .38260E-08   -.68305E-04
  11  Prefactor      .0000        12.132        .52986E-07** at limit **
  12  Prefactor      .0000        5.9749        .17949E-06** at limit **
  13  Prefactor      .0000        35.494        .13056E-06** at limit **
  14  Prefactor     4.4163        3.9383       -.39387E-07    .81240E-04
  15  Prefactor     5.8985        5.5435       -.17362E-08   -.31760E-04
  16  Prefactor     2.4729        1.3970        .13787E-08    .12450E-02
  17  norm          .78416        .52959       -.16451E-08    .45330E-02
  18  norm          12.099        9.4258       -.17258E-07   -.30756E-03
  19  Prefactor     6.3692        2.9021       -.72870E-10    .11770E-03
  20  Prefactor      .0000        1.4550       -.19506E-07** at limit **
  21  norm          2.8455        1.2542       -.41705E-08    .12241E-03
  22  Normalizat    1.1441        .11853       -.12188E-05    .35930E-05
  23  Prefactor     1.0264        .46419E-01    .63210E-06   -.19921E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.04764
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.08188
  Prefactor  = 0
  norm       = 0.515359
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.41634
  Prefactor  = 5.89855
  Prefactor  = 2.47288
  norm       = 0.784158
  norm       = 12.0993
  Prefactor  = 6.36917
  Prefactor  = 0
  norm       = 2.84553
  Normalizat = 1.14409
  Prefactor  = 1.02643
 **********
 **   18 **HESSE 
 **********

 FCN=   37249.76     FROM HESSE     STATUS=OK           418 CALLS     1906 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .87737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0476        4.3848        .44736E-03   -1.5663    
   3  Prefactor      .0000        .59302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        8.7817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    5.0531        .15800E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        23.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.2798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0819        .72882        .11570E-02   -1.5687    
   9  Prefactor      .0000        3.1637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51536        .23255        .77183E-03   -1.5694    
  11  Prefactor      .0000        12.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.9604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        35.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4163        3.9464        .48054E-03   -1.5666    
  15  Prefactor     5.8985        5.5372        .41342E-03   -1.5659    
  16  Prefactor     2.4729        26.141        .62584E-03   -1.5677    
  17  norm          .78416        4.0125        .54549E-03   -1.5690    
  18  norm          12.099        9.4551        .29129E-03   -1.5638    
  19  Prefactor     6.3692        2.9094        .39746E-03   -1.5657    
  20  Prefactor      .0000        1.4570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8455        1.2637        .60257E-03   -1.5674    
  22  Normalizat    1.1441        .10775        .86482E-01   -.88349    
  23  Prefactor     1.0264        .41378E-01    .41542E-01   -.91853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47163e-08
Minuit parameter uncertainties:
  1  2.82493e-07
  2  4.38481
  3  2.58224e-07
  4  2.76331e-07
  5  2.58933e-05
  6  1.40631e-05
  7  2.93448e-07
  8  0.728817
  9  7.15825e-07
  10  0.232547
  11  1.48109e-05
  12  1.43863e-06
  13  1.60733e-05
  14  3.94635
  15  5.53718
  16  16.0804
  17  3.54764
  18  9.45512
  19  2.90938
  20  5.13306e-07
  21  1.26373
  22  0.107766
  23  0.0413797
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  4.416e+00  3.946e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.026e+00  4.138e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.144e+00  1.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 41.355 24.150
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 6.22e-06 +/- 5.56e-06

TS (Fixed Index): 1.53
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4942/likelihoodResults_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37249.0538259
delta logL = 0.708906138359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37249.0394956
delta logL = 0.723236434176

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   37249.04     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      311 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30805        1.1976        .14774E-02    .13116    
   2  Index         5.1341        1.7237        .20143        .64354E-03
   3  Normalizat    1.1063        .18595E-01    .87776E-01    .90782E-04
   4  Prefactor     1.0375        .74574E-02    .40704E-01   -.25702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.308053
  Index      = 5.13407
  Normalizat = 1.10632
  Prefactor  = 1.03751
 **********
 **   18 **HESSE 
 **********

 FCN=   37249.04     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      346 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30805        5.7248        .65779E-04   -1.5697    
   2  Index         5.1341        7.2957        .10735E-01    .26818E-01
   3  Normalizat    1.1063        .80901E-01    .38871E-03   -.89549    
   4  Prefactor     1.0375        .32099E-01    .15966E-03   -.91490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57652e-10
Minuit parameter uncertainties:
  1  2.65598
  2  5.63473
  3  0.0809097
  4  0.0320992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4942': No such file or directory
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) = 37249.039492
delta logL = 0.723240036714

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.081e-01  2.656e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  5.134e+00  5.635e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.038e+00  3.210e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.106e+00  8.091e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 41.355 24.150
Photon Index (Free Index): 5.13 +/- 5.63
Photon Flux (Free Index): 4.78e-08 +/- 3.17e-08
Energy Flux (Free Index): 6.29e-06 +/- 6.08e-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 /scratch/kocevski/4942/cmap_HighResolution_698630401_699235201_4FGL_J0245.4+2408_weekly_bin760.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/4942

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='6.29e-06', photon_flux_error='2.26e-08', dlogl='7.23e-01', energy_flux='6.22e-06', photon_flux2='4.78e-08', job_status='DONE', time_completed='2023-02-28 07:17:16.650100', photon_index_error2='5.63', photon_index2='5.13', ts='1.53', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='6.08e-06', EG='1.14', time_epoch_completed='1677597436.65', return_code='0', job_id='4942', GAL2='1.04', EG2='1.11', return_code2='102', energy_flux_error='5.56e-06', photon_flux_error2='3.17e-08', ts2='3.16', photon_index='2.68' WHERE bin_id='760' AND source_name='4FGL J0245.4+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 07:17:16 PST 2023

_J0245.4+2408_weekly_bin760> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Feb 28 00:06:00 2023
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 00:06:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 00:06:15 2023
Terminated at Tue Feb 28 00:45:01 2023
Results reported at Tue Feb 28 00:45:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_weekly_bin760 41.3545 24.1498 698630401 699235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2083.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             364.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2325 sec.
    Turnaround time :                            2341 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 4942: <4FGL_J0245.4+2408_weekly_bin760> in cluster <slac> Done

Job <4FGL_J0245.4+2408_weekly_bin760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 28 00:05:28 2023
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 00:05:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 00:05:29 2023
Terminated at Tue Feb 28 07:17:19 2023
Results reported at Tue Feb 28 07:17:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_weekly_bin760 41.3545 24.1498 698630401 699235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2105.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             77.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   25908 sec.
    Turnaround time :                            25911 sec.

The output (if any) is above this job summary.

