/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 177 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7460
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2300.7-2645_daily_bin206
RA = 345.182, Dec = -26.7502
tmin = 292723201, tmax = 292982401
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='631490', job_status='RUN', time_executed='2021-09-29 05:08:38.272955', time_epoch_executed='1632917318.27' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631490/ft1_4FGL_J2300.7-2645_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631490/ft1_4FGL_J2300.7-2645_daily_bin206.fits outfile=/scratch/kocevski/631490/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin206.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=292723201.0 tmax=292982401.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.38
user 4.16
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.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/631490/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin206.fits evtable="EVENTS" outfile="/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/631490/ltcube_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.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/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits
.....................!
real 11.77
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/631490/ltcube_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.fits outfile=/scratch/kocevski/631490/expmap_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.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/631490/ltcube_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.fits
.....................!
real 190.58
user 185.55
sys 4.67

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

Setting source of interest to:
4FGL J2300.7-2645 @ 345.182 -26.7502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits scfile=/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits outfile=/scratch/kocevski/631490/cmap_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.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=345.182 yref=-26.7502 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits scfile=/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits outfile=/scratch/kocevski/631490/cmap_HighResolution_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.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=345.182 yref=-26.7502 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/631490/Model_4FGL_J2300.7-2645_daily_bin206.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/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits......................!
real 35.00
user 33.57
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits', '/scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits', expMap='/scratch/kocevski/631490/expmap_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.fits', expCube='/scratch/kocevski/631490/ltcube_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/631490/Model_4FGL_J2300.7-2645_daily_bin206.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2300.7-2645'

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.072e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/631490/ft1_filtered_4FGL_J2300.7-2645_daily_bin206.fits
Spacecraft file(s): /scratch/kocevski/631490/ft2_4FGL_J2300.7-2645_daily_bin206.fits
Exposure map: /scratch/kocevski/631490/expmap_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.fits
Exposure cube: /scratch/kocevski/631490/ltcube_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/631490/Model_4FGL_J2300.7-2645_daily_bin206.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) = 3686.18121295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    60.717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.639       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.520       1.0000         .10000E-03   10000.    
     9 'norm      '    6.2670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.805       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.847       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1243       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .57687       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3686.167     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2703 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.401        .18277E-05** at limit **
   2  Prefactor     .10001E-03    7.6490        .74800E-06** at limit **
   3  norm          60.713        36.716       -.18585E-06   -.35963E-04
   4  Prefactor     29.594        39.232       -.12049E-05   -.82904E-04
   5  Prefactor     26.634        21.301       -.38219E-06   -.45330E-04
   6  norm          2.4150        2.4194       -.34850E-07   -.12031E-03
   7  Prefactor     .10000E-03    39.605        .12904E-06** at limit **
   8  Prefactor     10.518        12.382       -.33058E-06   -.65333E-04
   9  norm          6.2664        4.6352       -.43291E-06   -.56424E-03
  10  Prefactor     .10000E-03    22.125        .27159E-06** at limit **
  11  Prefactor     .10000E-03    11.957        .36353E-06** at limit **
  12  norm          .10000E-03    .48542        .28189E-06** at limit **
  13  Prefactor     29.922        44.803       -.17663E-06   -.77487E-05
  14  Prefactor     .10000E-03    5.7726        .19283E-06** at limit **
  15  Prefactor     .10000E-03    11.867        .33655E-06** at limit **
  16  Prefactor     .10000E-03    18.731        .19475E-06** at limit **
  17  norm          20.315        10.981       -.58354E-07   -.15818E-04
  18  Prefactor     .10000E-03    18.547        .47972E-07** at limit **
  19  norm          5.1714        4.4198       -.27151E-07   -.34021E-04
  20  Prefactor     27.766        45.922       -.71578E-06   -.37426E-04
  21  Prefactor     63.694        122.58       -.21924E-05   -.30861E-04
  22  Prefactor     .10000E-03    61.423       -.11064E-05** at limit **
  23  Normalizat    1.1246        .26745        .52340E-05   -.30353E-03
  24  Prefactor     .57661        .23043       -.67219E-05   -.17078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 60.7131
  Prefactor  = 29.5937
  Prefactor  = 26.634
  norm       = 2.41499
  Prefactor  = 0.0001
  Prefactor  = 10.5177
  norm       = 6.26636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.9221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3148
  Prefactor  = 0.0001
  norm       = 5.17136
  Prefactor  = 27.7662
  Prefactor  = 63.6944
  Prefactor  = 0.0001
  Normalizat = 1.12461
  Prefactor  = 0.576609
 **********
 **   18 **HESSE 
 **********

 FCN=   3686.167     FROM HESSE     STATUS=OK           395 CALLS     3098 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    41.974        .31362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          60.713        36.680        .51492E-04   -1.4148    
   4  Prefactor     29.594        38.562        .73646E-04   -1.4619    
   5  Prefactor     26.634        21.268        .77616E-04   -1.4675    
   6  norm          2.4150        2.4150        .90604E-04   -1.5397    
   7  Prefactor     .10000E-03    39.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.518        12.375        .12353E-03   -1.5059    
   9  norm          6.2664        4.6224        .10801E-03   -1.5207    
  10  Prefactor     .10000E-03    22.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .86249        .79455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.922        44.792        .73239E-04   -1.4613    
  14  Prefactor     .10000E-03    5.7905        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.315        10.979        .88863E-04   -1.4806    
  18  Prefactor     .10000E-03    18.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1714        4.4119        .10891E-03   -1.5253    
  20  Prefactor     27.766        45.886        .75975E-04   -1.4654    
  21  Prefactor     63.694        122.85        .25111E-03   -1.4110    
  22  Prefactor     .10000E-03    61.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1246        .26377        .22220E-03   -.88966    
  24  Prefactor     .57661        .23113        .27798E-03   -1.0858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96702e-10
Minuit parameter uncertainties:
  1  0.000302352
  2  0.0015705
  3  36.6932
  4  38.5949
  5  21.2743
  6  2.41506
  7  6.88613e-06
  8  12.3776
  9  4.62264
  10  3.28626e-05
  11  1.1559e-07
  12  7.55234e-07
  13  44.8426
  14  1.19509e-05
  15  1.9732e-05
  16  2.57766e-05
  17  10.9797
  18  4.67591e-06
  19  4.41219
  20  45.9441
  21  123.347
  22  0.000223708
  23  0.264083
  24  0.231514
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.973e-05  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  5.766e-01  2.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  1.125e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 345.182 -26.750
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631490/likelihoodResults_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.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) = 3686.16722588
delta logL = -0.000398421410409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3686.16682901
delta logL = -1.55576526595e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11591E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4222       1.0000          .0000       10.000    
     3 'Normalizat'    1.1243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3686.167     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      252 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10310E-03    .14705        .62824E-01** at limit **
   2  Index         2.5179        8.7359        .50000       -.13490E-04
   3  Normalizat    1.1246        .73335E-03    .22220E-03    .45895E-04
   4  Prefactor     .57661        .67888E-03    .27799E-03    .29997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103103
  Index      = 2.5179
  Normalizat = 1.12461
  Prefactor  = 0.576608
 **********
 **   18 **HESSE 
 **********

 FCN=   3686.167     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10310E-03    42.081        .32648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5179        8.1715        .50000       -.51947    
   3  Normalizat    1.1246        .95303E-02    .88879E-05   -.88966    
   4  Prefactor     .57661        .88224E-02    .11120E-04   -1.0858    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.02817e-08
Minuit parameter uncertainties:
  1  0.0228719
  2  239.36
  3  0.0095303
  4  0.00882237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631490': 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) = 3686.16682725
delta logL = 2.04443495022e-07

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.031e-04  2.287e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.518e+00  2.394e+02  0.000e+00  1.000e+01 (-1.000e+00)
350        Scale:  1.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  5.766e-01  8.822e-03  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  1.125e+00  9.530e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 345.182 -26.750

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 /scratch/kocevski/631490/cmap_HighResolution_292723201_292982401_4FGL_J2300.7-2645_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 05:17:12.348633', job_id='631490', GAL2='0.58', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632917832.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='206' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 631490: <4FGL_J2300.7-2645_daily_bin206> in cluster <slac> Done

Job <4FGL_J2300.7-2645_daily_bin206> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 05:05:30 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 05:05:33 2021
Terminated at Wed Sep 29 05:17:13 2021
Results reported at Wed Sep 29 05:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin206 345.182 -26.7502 292723201 292982401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2300.7-2645 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   513.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            703 sec.

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

