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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin305
RA = 150.294, Dec = 29.188
tmin = 318384001, tmax = 318643201
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='656037', job_status='RUN', time_executed='2021-09-01 09:53:56.313694', time_epoch_executed='1630515236.31' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656037/ft1_4FGL_J1001.1+2911_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656037/ft1_4FGL_J1001.1+2911_daily_bin305.fits outfile=/scratch/kocevski/656037/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin305.fits ra=150.294 dec=29.188 rad=12.0 tmin=318384001.0 tmax=318643201.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 3.33
user 3.09
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.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/656037/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin305.fits evtable="EVENTS" outfile="/scratch/kocevski/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/656037/ltcube_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.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/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits
.....................!
real 12.37
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/656037/ltcube_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.fits outfile=/scratch/kocevski/656037/expmap_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.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/656037/ltcube_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.fits
.....................!
real 190.87
user 185.25
sys 3.89

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/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.fits scfile=/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits outfile=/scratch/kocevski/656037/cmap_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.fits scfile=/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits outfile=/scratch/kocevski/656037/cmap_HighResolution_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.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.56
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.fits', '/scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits', expMap='/scratch/kocevski/656037/expmap_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.fits', expCube='/scratch/kocevski/656037/ltcube_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/656037/Model_4FGL_J1001.1+2911_daily_bin305.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/656037/ft1_filtered_4FGL_J1001.1+2911_daily_bin305.fits
Spacecraft file(s): /scratch/kocevski/656037/ft2_4FGL_J1001.1+2911_daily_bin305.fits
Exposure map: /scratch/kocevski/656037/expmap_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.fits
Exposure cube: /scratch/kocevski/656037/ltcube_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/656037/Model_4FGL_J1001.1+2911_daily_bin305.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) = 5122.89480302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7909       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3487       1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.631       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.948       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12474E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.7604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19682E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23764E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0120       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61490       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2641       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=   5122.872     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2746 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7906        2.7079        .96802E-08   -.14992E-05
   2  norm          1.3482        1.4061        .53413E-07    .38310E-05
   3  Prefactor     53.012        46.757       -.16980E-05   -.23753E-03
   4  Prefactor     .10000E-03    .97264        .87142E-08** at limit **
   5  Prefactor     40.634        26.488       -.75460E-07   -.64978E-04
   6  Prefactor     19.954        32.098       -.45258E-07   -.10605E-04
   7  Prefactor     .10004E-03    51.181       -.80997E-05** at limit **
   8  Prefactor     .10000E-03    12.419       -.10217E-06** at limit **
   9  Prefactor     1.7731        5.4844        .62291E-06   -.15597E-03
  10  Prefactor     .10000E-03    3.6482        .14544E-07** at limit **
  11  Prefactor     .10000E-03    1.1975       -.25372E-07** at limit **
  12  norm          6.7613        7.3786        .19019E-05   -.35644E-03
  13  Prefactor     .10270E-03    2.0004        .10909E-05** at limit **
  14  Prefactor     .10000E-03    210.50       -.24542E-05** at limit **
  15  Prefactor     .10000E-03    2.7791        .35251E-07** at limit **
  16  norm          .10000E-03    3.0077        .12008E-07** at limit **
  17  Prefactor     .10000E-03    19.344        .43892E-07** at limit **
  18  Prefactor     .10000E-03    11.179        .99517E-07** at limit **
  19  Prefactor     .10000E-03    1.3477        .14626E-07** at limit **
  20  Prefactor     .10000E-03    2.6386       -.15109E-07** at limit **
  21  Prefactor     1.0095        1.6265        .20235E-06    .14648E-03
  22  Prefactor     .10000E-03    7.6134        .51407E-08** at limit **
  23  Normalizat    .61453        .15775       -.87643E-06   -.28102E-03
  24  Prefactor     1.2646        .18341        .17503E-07   -.27526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79064
  norm       = 1.34823
  Prefactor  = 53.012
  Prefactor  = 0.0001
  Prefactor  = 40.6336
  Prefactor  = 19.9536
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 1.77306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.76131
  Prefactor  = 0.000102697
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00945
  Prefactor  = 0.0001
  Normalizat = 0.61453
  Prefactor  = 1.26464
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.872     FROM HESSE     STATUS=OK           393 CALLS     3139 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7906        2.7112        .11304E-03   -1.5374    
   2  norm          1.3482        1.3901        .84251E-04   -1.5476    
   3  Prefactor     53.012        47.769        .55080E-04   -1.4250    
   4  Prefactor     .10000E-03    .97956        .68916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.634        26.467        .62885E-04   -1.4432    
   6  Prefactor     19.954        32.097        .89677E-04   -1.4814    
   7  Prefactor     .10004E-03    58.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7731        5.4797        .27697E-03   -1.5442    
  10  Prefactor     .10000E-03    3.6573        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2260        .15276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7613        7.7984        .77160E-03   -1.5188    
  13  Prefactor     .10270E-03    60.651        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    217.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8347        .23239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0116        .12123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3533        .81138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6567        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0095        1.4334        .11267E-02   -1.5507    
  22  Prefactor     .10000E-03    7.6191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .61453        .18252        .24901E-03   -1.0737    
  24  Prefactor     1.2646        .21650        .21356E-03   -.84365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15922e-08
Minuit parameter uncertainties:
  1  2.71136
  2  1.39013
  3  47.8031
  4  1.20992e-06
  5  26.4745
  6  32.1245
  7  0.00324466
  8  1.90711e-05
  9  5.48127
  10  2.19323e-06
  11  1.7005e-06
  12  7.79958
  13  0.0256042
  14  0.00178062
  15  1.07533e-05
  16  7.80915e-08
  17  5.70811e-06
  18  1.48206e-05
  19  3.97994e-08
  20  1.39115e-06
  21  1.4335
  22  7.01467e-08
  23  0.182703
  24  0.216657
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.700e-06  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.265e+00  2.167e-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:  6.145e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/656037/likelihoodResults_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.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) = 5122.87573876
delta logL = -0.00387040250644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5122.87186858
delta logL = -2.23005372391e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2785       1.0000          .0000       10.000    
     3 'Normalizat'    .61456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2647       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=   5122.872     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.2419        .15322E-03** at limit **
   2  Index         2.2886        6.1443        .50000       -.68002E-04
   3  Normalizat    .61453        .17852        .24901E-03    .76016E-04
   4  Prefactor     1.2646        .21380        .21356E-03    .99004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.28864
  Normalizat = 0.614531
  Prefactor  = 1.26464
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.872     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.2354        .30644E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2886        6.1443        .50000       -.57314    
   3  Normalizat    .61453        .17867        .99605E-05   -1.0737    
   4  Prefactor     1.2646        .21399        .42712E-04   -.84365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53984e-09
Minuit parameter uncertainties:
  1  0.000170845
  2  4.20141
  3  0.178842
  4  0.214137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656037': 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) = 5122.87186803
delta logL = 3.22481355397e-07

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.708e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.289e+00  4.201e+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.265e+00  2.141e-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:  6.145e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/656037/cmap_HighResolution_318384001_318643201_4FGL_J1001.1+2911_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-01 10:04:01.554781', job_id='656037', GAL2='1.26', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630515841.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='305' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 656037: <4FGL_J1001.1+2911_daily_bin305> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin305> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:38 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:50:40 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:50:40 2021
Terminated at Wed Sep  1 10:04:02 2021
Results reported at Wed Sep  1 10:04:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin305 150.294 29.188 318384001 318643201 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 :                                   603.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            804 sec.

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

