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


Performing analysis on: 4FGL_J2001.2+4353_daily_bin1215
RA = 300.302, Dec = 43.8862
tmin = 554256001, tmax = 554515201
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='538355', job_status='RUN', time_executed='2021-09-24 07:13:43.580366', time_epoch_executed='1632492823.58' WHERE source_name='4FGL J2001.2+4353' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538355/ft1_4FGL_J2001.2+4353_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538355/ft1_4FGL_J2001.2+4353_daily_bin1215.fits outfile=/scratch/kocevski/538355/ft1_filteredMKT_4FGL_J2001.2+4353_daily_bin1215.fits ra=300.302 dec=43.8862 rad=12.0 tmin=554256001.0 tmax=554515201.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.05
user 3.79
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.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/538355/ft1_filteredMKT_4FGL_J2001.2+4353_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/538355/ltcube_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.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/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits
.....................!
real 11.69
user 11.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/538355/ltcube_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.fits outfile=/scratch/kocevski/538355/expmap_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.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/538355/ltcube_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.fits
.....................!
real 190.11
user 185.27
sys 4.47

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 200 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2001.2+4353 @ 300.302 43.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits scfile=/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits outfile=/scratch/kocevski/538355/cmap_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.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=300.302 yref=43.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits scfile=/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits outfile=/scratch/kocevski/538355/cmap_HighResolution_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.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=300.302 yref=43.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.00
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538355/Model_4FGL_J2001.2+4353_daily_bin1215.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits....................!
real 38.48
user 36.52
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits', '/scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits', expMap='/scratch/kocevski/538355/expmap_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.fits', expCube='/scratch/kocevski/538355/ltcube_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538355/Model_4FGL_J2001.2+4353_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2001.2+4353'

4FGL J2001.2+4353
   Spectrum: LogParabola
336         norm:  9.913e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
337        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
338         beta:  9.675e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  2.071e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538355/ft1_filtered_4FGL_J2001.2+4353_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/538355/ft2_4FGL_J2001.2+4353_daily_bin1215.fits
Exposure map: /scratch/kocevski/538355/expmap_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.fits
Exposure cube: /scratch/kocevski/538355/ltcube_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538355/Model_4FGL_J2001.2+4353_daily_bin1215.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) = 1101.53926719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18352E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    248.32       1.0000         .10000E-03   10000.    
     6 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .68891E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1306       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    76.672       1.0000         .10000E-03   10000.    
    15 'norm      '    29.697       1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    167.69       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .58786       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1101.327     FROM MIGRAD    STATUS=CONVERGED     60 CALLS     1524 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.221        4.0025        .52386E-05   -.14651E-01
   2  Prefactor     .82847E-03    9.8114       -.78432E-04** at limit **
   3  Prefactor     .10044E-03    17.056        .94807E-04** at limit **
   4  norm          .10054E-03    16.074        .91898E-04** at limit **
   5  Prefactor     248.32        1.0036       -.70948E-07    .54221E-03
   6  norm          .10072E-03    20.363       -.57736E-04** at limit **
   7  Prefactor     .10081E-03    10.776        .65768E-04** at limit **
   8  norm          .43018E-02    15.208       -.99220E-04    .32260E-02
   9  Prefactor     .11134E-03    82.288       -.12638E-03** at limit **
  10  norm          .10000E-03    8.7073       -.25453E-05** at limit **
  11  norm          .10000E-03    13.983        .36200E-05** at limit **
  12  Prefactor     2.1304        1.1179       -.10313E-06   -.14683E-03
  13  norm          .10000E-03    6.8943        .56216E-05** at limit **
  14  norm          76.677        1.4968        .16274E-05   -.33741E-02
  15  norm          29.697        1.0003        .31321E-07   -.60607E-04
  16  norm          .10013E-03    14.917       -.33010E-04** at limit **
  17  Prefactor     167.69        1.0018        .60801E-07   -.30680E-03
  18  Normalizat    .10000E-01    1.3408        .21726E-03** at limit **
  19  Prefactor     .58777        .80230E-01   -.38986E-05   -.56254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.2206
  Prefactor  = 0.000828471
  Prefactor  = 0.00010044
  norm       = 0.00010054
  Prefactor  = 248.316
  norm       = 0.00010072
  Prefactor  = 0.000100806
  norm       = 0.00430176
  Prefactor  = 0.000111336
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.13039
  norm       = 0.0001
  norm       = 76.6766
  norm       = 29.6974
  norm       = 0.000100129
  Prefactor  = 167.687
  Normalizat = 0.01
  Prefactor  = 0.587773
 **********
 **   18 **HESSE 
 **********

 FCN=   1101.327     FROM HESSE     STATUS=OK           294 CALLS     1818 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.221        137.05        .10463E-02   -1.3784    
   2  Prefactor     .82847E-03    657.70        .10152E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10044E-03    43.897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10054E-03    43.437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     248.32        218.34        .64263E-03   -1.2543    
   6  norm          .10072E-03    35.319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10081E-03    40.745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .43018E-02    950.84        .93627E-02   -1.5695    
   9  Prefactor     .11134E-03    84.299        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.6944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1304        1.1423        .55049E-02   -1.5416    
  13  norm          .10000E-03    6.8896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          76.677        55.856        .11465E-02   -1.3954    
  15  norm          29.697        30.403        .18380E-02   -1.4618    
  16  norm          .10013E-03    36.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     167.69        156.36        .77880E-03   -1.3111    
  18  Normalizat    .10000E-01    1.0298        .32214       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58777        .90095E-01    .24518E-01   -1.0810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87773e-06
Minuit parameter uncertainties:
  1  137.522
  2  1.4
  3  0.00879528
  4  0.00969479
  5  219.063
  6  0.0100922
  7  0.0114714
  8  4.06381
  9  0.0619142
  10  1.50739e-06
  11  2.52108e-05
  12  1.14228
  13  1.11911e-05
  14  55.894
  15  30.4192
  16  0.00431745
  17  156.749
  18  7.32164e-06
  19  0.0901166
Done.

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

Extracting fit parameters...

4FGL J2001.2+4353
   Spectrum: LogParabola
336         norm:  4.302e-03  4.064e+00  1.000e-04  1.000e+04 ( 1.000e-13)
337        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
338         beta:  9.675e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  2.071e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  5.878e-01  9.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.000e-02  7.322e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 300.302 43.886
Photon Flux Upper Limit: 7.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538355/likelihoodResults_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.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) = 1101.32687261
delta logL = -2.64647769654e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1101.32687203
delta logL = -2.06530944524e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42994E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8109       1.0000          .0000       5.0000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+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=   1101.268     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      301 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.230        121.77        .19403E-01    .21656E-04
   2  alpha         1.1493        1.2087        .17330       -.88421E-06
   3  Normalizat    .10000E-01    1.3514        .19241E-01** at limit **
   4  Prefactor     .58473        .78963E-01    .10834E-03    .15958E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 35.2297
  alpha      = 1.14929
  Normalizat = 0.01
  Prefactor  = 0.584734
 **********
 **   18 **HESSE 
 **********

 FCN=   1101.268     FROM HESSE     STATUS=OK            27 CALLS      328 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.230        115.60        .62964E-03   -1.4520    
   2  alpha         1.1493        1.1734        .18696E-02   -.57077    
   3  Normalizat    .10000E-01    1.3532        .38482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58473        .78903E-01    .21667E-04   -1.0823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47271e-11
Minuit parameter uncertainties:
  1  116.349
  2  1.24481
  3  1.05962e-05
  4  0.0789182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538355': 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): 0
logL (Free Index) = 1101.26800429
delta logL = 0.0588656756474

Extracting fit parameters...

4FGL J2001.2+4353
   Spectrum: LogParabola
336         norm:  3.523e+01  1.163e+02  1.000e-04  1.000e+04 ( 1.000e-13)
337        alpha:  1.149e+00  1.245e+00  0.000e+00  5.000e+00 ( 1.000e+00)
338         beta:  9.675e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  2.071e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  5.847e-01  7.892e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.000e-02  1.060e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 300.302 43.886

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/538355/cmap_HighResolution_554256001_554515201_4FGL_J2001.2+4353_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-04', job_status='DONE', photon_flux_upper_limit='7.40e-07', time_completed='2021-09-24 07:20:28.329952', job_id='538355', GAL2='0.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632493228.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='5.89e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1215' AND source_name='4FGL J2001.2+4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 07:20:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 538355: <4FGL_J2001.2+4353_daily_bin1215> in cluster <slac> Done

Job <4FGL_J2001.2+4353_daily_bin1215> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 07:11:42 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 07:11:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 07:11:45 2021
Terminated at Fri Sep 24 07:20:29 2021
Results reported at Fri Sep 24 07:20:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2001.2+4353_daily_bin1215 300.302 43.8862 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2001.2+4353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   400.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            527 sec.

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

