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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin245
RA = 150.294, Dec = 29.188
tmin = 302832001, tmax = 303091201
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='654851', job_status='RUN', time_executed='2021-09-01 09:49:24.896931', time_epoch_executed='1630514964.9' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654851/ft1_4FGL_J1001.1+2911_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654851/ft1_4FGL_J1001.1+2911_daily_bin245.fits outfile=/scratch/kocevski/654851/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin245.fits ra=150.294 dec=29.188 rad=12.0 tmin=302832001.0 tmax=303091201.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.09
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.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/654851/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/654851/ltcube_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.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/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits
.....................!
real 11.86
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/654851/ltcube_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.fits outfile=/scratch/kocevski/654851/expmap_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.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/654851/ltcube_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.fits
.....................!
real 192.83
user 187.18
sys 5.22

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 J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits scfile=/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits outfile=/scratch/kocevski/654851/cmap_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.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=150.294 yref=29.188 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.75
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits scfile=/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits outfile=/scratch/kocevski/654851/cmap_HighResolution_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.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=150.294 yref=29.188 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.95
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654851/Model_4FGL_J1001.1+2911_daily_bin245.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/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits.....................!
real 58.72
user 53.80
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits', '/scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits', expMap='/scratch/kocevski/654851/expmap_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.fits', expCube='/scratch/kocevski/654851/ltcube_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654851/Model_4FGL_J1001.1+2911_daily_bin245.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1001.1+2911'

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/654851/ft1_filtered_4FGL_J1001.1+2911_daily_bin245.fits
Spacecraft file(s): /scratch/kocevski/654851/ft2_4FGL_J1001.1+2911_daily_bin245.fits
Exposure map: /scratch/kocevski/654851/expmap_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.fits
Exposure cube: /scratch/kocevski/654851/ltcube_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654851/Model_4FGL_J1001.1+2911_daily_bin245.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) = 6198.08800911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3495       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.804       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33709       1.0000         .10000E-03   10000.    
    12 'norm      '    50.102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13969E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6420       1.0000         .10000E-03   10000.    
    16 'norm      '    11.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.485       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3026       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6198.085     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2735 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3493        3.9560        .26554E-05   -.13154E-04
   2  norm          .10000E-03    .59959       -.10215E-07** at limit **
   3  Prefactor     52.868        68.169        .12962E-05   -.19494E-04
   4  Prefactor     .10000E-03    5.4661       -.16862E-06** at limit **
   5  Prefactor     14.811        23.200       -.10931E-05   -.79398E-06
   6  Prefactor     11.792        49.803       -.10350E-05   -.66904E-05
   7  Prefactor     .10000E-03    17.402        .10442E-05** at limit **
   8  Prefactor     .10000E-03    39.722        .59981E-06** at limit **
   9  Prefactor     .37558        5.0455        .16861E-05   -.53309E-03
  10  Prefactor     .10000E-03    3.4493       -.96662E-07** at limit **
  11  Prefactor     .33720        1.1038        .94956E-07   -.14319E-03
  12  norm          50.107        13.686       -.81167E-07   -.15772E-03
  13  Prefactor     .10000E-03    7.1113       -.49569E-06** at limit **
  14  Prefactor     .10000E-03    18.032        .55708E-06** at limit **
  15  Prefactor     4.6449        6.4866        .55794E-06   -.82096E-04
  16  norm          11.436        13.438        .60581E-06   -.19546E-04
  17  Prefactor     .10000E-03    20.641       -.18720E-05** at limit **
  18  Prefactor     17.516        44.422       -.64407E-05    .29672E-04
  19  Prefactor     .10000E-03    7.0041        .27195E-05** at limit **
  20  Prefactor     9.3019        7.1330        .44235E-07   -.61058E-05
  21  Prefactor     .10000E-03    1.7514       -.82646E-07** at limit **
  22  Prefactor     .10000E-03    12.860       -.12779E-06** at limit **
  23  Normalizat    1.1261        .18801       -.54696E-06   -.18211E-03
  24  Prefactor     1.1099        .19494        .34823E-06   -.13022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34931
  norm       = 0.0001
  Prefactor  = 52.8681
  Prefactor  = 0.0001
  Prefactor  = 14.8111
  Prefactor  = 11.7919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.375582
  Prefactor  = 0.0001
  Prefactor  = 0.337197
  norm       = 50.1074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64488
  norm       = 11.4359
  Prefactor  = 0.0001
  Prefactor  = 17.5159
  Prefactor  = 0.000100004
  Prefactor  = 9.3019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12606
  Prefactor  = 1.10989
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.085     FROM HESSE     STATUS=OK           397 CALLS     3132 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3493        3.9684        .99170E-03   -1.5401    
   2  norm          .10000E-03    .60253        .59524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.868        68.250        .55158E-04   -1.4252    
   4  Prefactor     .10000E-03    5.6969        .35866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.811        23.157        .10410E-03   -1.4938    
   6  Prefactor     11.792        49.788        .11668E-03   -1.5021    
   7  Prefactor     .10000E-03    17.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .37558        38.323        .30395E-02   -1.5585    
  10  Prefactor     .10000E-03    3.4562        .14279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33720        1.0769        .14427E-03   -1.5592    
  12  norm          50.107        13.684        .56656E-04   -1.4291    
  13  Prefactor     .10000E-03    7.2119        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6449        6.4304        .18680E-03   -1.5277    
  16  norm          11.436        13.424        .11846E-03   -1.5031    
  17  Prefactor     .10000E-03    20.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.516        44.670        .95783E-04   -1.4871    
  19  Prefactor     .10000E-03    7.3747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3019        7.1348        .13140E-03   -1.5098    
  21  Prefactor     .10000E-03    1.8195        .20327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1261        .22688        .25248E-03   -.88919    
  24  Prefactor     1.1099        .23530        .27383E-03   -.89151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24527e-09
Minuit parameter uncertainties:
  1  3.96885
  2  7.61631e-07
  3  68.3512
  4  1.32555e-05
  5  23.1709
  6  48.5289
  7  6.80067e-05
  8  8.66769e-05
  9  7.59175
  10  3.35929e-06
  11  1.07695
  12  13.6845
  13  0.000107201
  14  4.10561e-05
  15  6.43137
  16  13.4278
  17  0.000104594
  18  44.7555
  19  0.000342994
  20  7.1355
  21  3.3564e-06
  22  5.34157e-06
  23  0.227074
  24  0.235523
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.372e-01  1.077e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.110e+00  2.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.126e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654851/likelihoodResults_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.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) = 6198.01452024
delta logL = 0.0707360042861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6198.00959503
delta logL = 0.0756612091536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55022       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7733       1.0000          .0000       10.000    
     3 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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=   6198.010     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      290 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54924        1.2540        .15828E-02    .50346E-02
   2  Index         1.7737        1.0783        .14212E-01   -.34993E-04
   3  Normalizat    1.1288        .21320        .25220E-03   -.63110E-06
   4  Prefactor     1.1065        .23090        .27415E-03    .11197E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.549237
  Index      = 1.77366
  Normalizat = 1.12882
  Prefactor  = 1.10651
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.010     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54924        1.2534        .31656E-03   -1.5560    
   2  Index         1.7737        1.0797        .28424E-02   -.70137    
   3  Normalizat    1.1288        .21343        .10088E-04   -.88832    
   4  Prefactor     1.1065        .23116        .10966E-04   -.89259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09363e-11
Minuit parameter uncertainties:
  1  1.25344
  2  1.09464
  3  0.213594
  4  0.231373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654851': 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) = 6198.00959463
delta logL = 0.0756616141534

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  5.492e-01  1.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.774e+00  1.095e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.107e+00  2.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.129e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 150.294 29.188

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/654851/cmap_HighResolution_302832001_303091201_4FGL_J1001.1+2911_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-01 10:00:37.765855', job_id='654851', GAL2='1.11', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630515637.77', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='7.57e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='245' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:00:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 654851: <4FGL_J1001.1+2911_daily_bin245> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin245> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:46:13 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:46:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:46:14 2021
Terminated at Wed Sep  1 10:00:45 2021
Results reported at Wed Sep  1 10:00:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin245 150.294 29.188 302832001 303091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1001.1+2911 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            872 sec.

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

