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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin845
RA = 150.294, Dec = 29.188
tmin = 458352001, tmax = 458611201
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='659420', job_status='RUN', time_executed='2021-09-01 10:04:16.853079', time_epoch_executed='1630515856.85' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='845'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659420

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659420/ft1_4FGL_J1001.1+2911_daily_bin845.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659420/ft2_4FGL_J1001.1+2911_daily_bin845.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659420/ft1_4FGL_J1001.1+2911_daily_bin845.fits outfile=/scratch/kocevski/659420/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin845.fits ra=150.294 dec=29.188 rad=12.0 tmin=458352001.0 tmax=458611201.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.54
user 4.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659420/ft2_4FGL_J1001.1+2911_daily_bin845.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/659420/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin845.fits evtable="EVENTS" outfile="/scratch/kocevski/659420/ft1_filtered_4FGL_J1001.1+2911_daily_bin845.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/659420/ft1_filtered_4FGL_J1001.1+2911_daily_bin845.fits" evtable="EVENTS" scfile=/scratch/kocevski/659420/ft2_4FGL_J1001.1+2911_daily_bin845.fits sctable="SC_DATA" outfile=/scratch/kocevski/659420/ltcube_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.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/659420/ft2_4FGL_J1001.1+2911_daily_bin845.fits
.....................!
real 11.76
user 11.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659420/ft1_filtered_4FGL_J1001.1+2911_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/659420/ft2_4FGL_J1001.1+2911_daily_bin845.fits sctable="SC_DATA" expcube=/scratch/kocevski/659420/ltcube_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.fits outfile=/scratch/kocevski/659420/expmap_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.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/659420/ltcube_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.fits
.....................!
real 190.72
user 186.42
sys 3.85

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/659420/ft1_filtered_4FGL_J1001.1+2911_daily_bin845.fits scfile=/scratch/kocevski/659420/ft2_4FGL_J1001.1+2911_daily_bin845.fits outfile=/scratch/kocevski/659420/cmap_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.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.71
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659420/ft1_filtered_4FGL_J1001.1+2911_daily_bin845.fits scfile=/scratch/kocevski/659420/ft2_4FGL_J1001.1+2911_daily_bin845.fits outfile=/scratch/kocevski/659420/cmap_HighResolution_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.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.60
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11666E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33212E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85469E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15174E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    41.627       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13813E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.645       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12321       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2256       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94655       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=   5316.461     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     3148 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1961        .77812E-03** at limit **
   2  norm          .10000E-03    .50273        .50381E-03** at limit **
   3  Prefactor     .10000E-03    25.652        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.9317        .98333E-03** at limit **
   5  Prefactor     .10000E-03    53.090        .18142E-02** at limit **
   6  Prefactor     74.980        93.209        .46385E-04    .30441E-04
   7  Prefactor     .10000E-03    20.191        .18142E-02** at limit **
   8  Prefactor     .10003E-03    55.856        .15330    ** at limit **
   9  Prefactor     .10000E-03    3.5268        .13330E-02** at limit **
  10  Prefactor     .10002E-03    91.017        .39883E-02** at limit **
  11  Prefactor     .10000E-03    7.7713        .16359E-02** at limit **
  12  norm          41.626        12.683        .62131E-04    .28995E-03
  13  Prefactor     .10001E-03    6.3608        .24028E-02** at limit **
  14  Prefactor     .10000E-03    100.75        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.0163        .34205E-03** at limit **
  16  norm          .10000E-03    8.3687        .18142E-02** at limit **
  17  Prefactor     15.881        46.751        .10064E-03    .35471E-04
  18  Prefactor     23.649        62.552        .82376E-04    .66438E-04
  19  Prefactor     12.027        10.839        .11551E-03    .42244E-03
  20  Prefactor     .10000E-03    6.5406        .18126E-02** at limit **
  21  Prefactor     .12138        7.1145        .15914E-02    .28069E-03
  22  Prefactor     .10000E-03    16.092        .18142E-02** at limit **
  23  Normalizat    1.2257        .21932        .23040E-03    .66692E-03
  24  Prefactor     .94668        .23370        .27753E-03    .10149E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 74.9798
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.000100002
  norm       = 41.626
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8815
  Prefactor  = 23.6489
  Prefactor  = 12.0268
  Prefactor  = 0.0001
  Prefactor  = 0.121381
  Prefactor  = 0.0001
  Normalizat = 1.22574
  Prefactor  = 0.946684
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.461     FROM HESSE     STATUS=OK           385 CALLS     3533 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1961        .15562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .50274        .10076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9320        .19667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     74.980        93.196        .92769E-05   -1.3974    
   7  Prefactor     .10000E-03    20.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    56.475        .15209       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5272        .26661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    93.435        .15953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8325        .32718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          41.626        12.683        .12426E-04   -1.4417    
  13  Prefactor     .10001E-03    6.3936        .48057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    100.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0166        .68409E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.3706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.881        46.746        .40256E-05   -1.4911    
  18  Prefactor     23.649        62.568        .16475E-04   -1.4735    
  19  Prefactor     12.027        10.842        .46203E-05   -1.5014    
  20  Prefactor     .10000E-03    6.5428        .36251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12138        7.1457        .63655E-04   -1.5638    
  22  Prefactor     .10000E-03    16.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2257        .21932        .46079E-04   -.85811    
  24  Prefactor     .94668        .23386        .55505E-04   -.94528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80691e-09
Minuit parameter uncertainties:
  1  4.11346e-06
  2  2.44485e-06
  3  6.73284e-05
  4  2.37496e-05
  5  0.000336529
  6  93.3783
  7  2.09111e-05
  8  0.00247709
  9  1.93623e-07
  10  0.00280069
  11  0.000247729
  12  12.6838
  13  0.000376937
  14  0.000429319
  15  7.8516e-06
  16  3.23148e-05
  17  46.8539
  18  62.7421
  19  10.8435
  20  6.07198e-05
  21  1.86211
  22  3.846e-05
  23  0.21948
  24  0.234106
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.477e-04  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:  9.467e-01  2.341e-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.226e+00  2.195e-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: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659420/likelihoodResults_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.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) = 5316.46124172
delta logL = -0.000615358416326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5316.46063419
delta logL = -7.83084487921e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37806E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3715       1.0000          .0000       10.000    
     3 'Normalizat'    1.2262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94620       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=   5316.454     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      338 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13943        29.078        .14774E-02   -.21870E-03
   2  Index         2.9155        1.6748        .50000        .39206E-05
   3  Normalizat    1.2212        .15997E-01    .23040E-03    .25659E-05
   4  Prefactor     .94804        .17263E-01    .27753E-03    .15730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.139431
  Index      = 2.91548
  Normalizat = 1.22119
  Prefactor  = 0.948039
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.454     FROM HESSE     STATUS=OK            29 CALLS      367 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13943        3.6610        .59096E-04   -1.5783    
   2  Index         2.9155        2.9111        .80241E-02   -.43004    
   3  Normalizat    1.2212        .21901        .92159E-05   -.85950    
   4  Prefactor     .94804        .23264        .11101E-04   -.94482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3257e-10
Minuit parameter uncertainties:
  1  1.42851
  2  3.15956
  3  0.219172
  4  0.232886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659420': 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) = 5316.45430697
delta logL = 0.00631938792503

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.394e-01  1.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.915e+00  3.160e+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:  9.480e-01  2.329e-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.221e+00  2.192e-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/659420/cmap_HighResolution_458352001_458611201_4FGL_J1001.1+2911_daily_bin845.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-01 10:15:04.166589', job_id='659420', GAL2='0.95', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1630516504.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.32e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='845' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 659420: <4FGL_J1001.1+2911_daily_bin845> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin845> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:36 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:00:37 2021
Terminated at Wed Sep  1 10:15:05 2021
Results reported at Wed Sep  1 10:15:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin845 150.294 29.188 458352001 458611201 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 :                                   644.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

