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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin552
RA = 150.294, Dec = 29.188
tmin = 382406401, tmax = 382665601
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='657546', job_status='RUN', time_executed='2021-09-01 09:59:07.845170', time_epoch_executed='1630515547.85' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657546/ft1_4FGL_J1001.1+2911_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657546/ft2_4FGL_J1001.1+2911_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657546/ft1_4FGL_J1001.1+2911_daily_bin552.fits outfile=/scratch/kocevski/657546/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin552.fits ra=150.294 dec=29.188 rad=12.0 tmin=382406401.0 tmax=382665601.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.86
user 4.46
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657546/ft1_filtered_4FGL_J1001.1+2911_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/657546/ft2_4FGL_J1001.1+2911_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/657546/ltcube_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.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/657546/ft2_4FGL_J1001.1+2911_daily_bin552.fits
.....................!
real 13.49
user 12.67
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657546/ft1_filtered_4FGL_J1001.1+2911_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/657546/ft2_4FGL_J1001.1+2911_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/657546/ltcube_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.fits outfile=/scratch/kocevski/657546/expmap_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.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/657546/ltcube_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.fits
.....................!
real 194.88
user 186.34
sys 6.20

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/657546/ft1_filtered_4FGL_J1001.1+2911_daily_bin552.fits scfile=/scratch/kocevski/657546/ft2_4FGL_J1001.1+2911_daily_bin552.fits outfile=/scratch/kocevski/657546/cmap_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.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.67
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657546/ft1_filtered_4FGL_J1001.1+2911_daily_bin552.fits scfile=/scratch/kocevski/657546/ft2_4FGL_J1001.1+2911_daily_bin552.fits outfile=/scratch/kocevski/657546/cmap_HighResolution_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.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.68
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8147       1.0000         .10000E-03   10000.    
     2 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11210E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28431E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.940       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6474       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7055       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89043       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0425       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=   5154.445     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2352 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8169        3.7540       -.45048E-06   -.47193E-03
   2  norm          .10000E-03    1.1933       -.18148E-06** at limit **
   3  Prefactor     .10000E-03    26.265       -.15347E-04** at limit **
   4  Prefactor     .10000E-03    3.9896       -.13685E-06** at limit **
   5  Prefactor     .10000E-03    6.1330       -.16486E-06** at limit **
   6  Prefactor     .10000E-03    15.875       -.12457E-04** at limit **
   7  Prefactor     .10000E-03    78.831        .12431E-04** at limit **
   8  Prefactor     .10000E-03    67.314        .10936E-04** at limit **
   9  Prefactor     22.392        8.6101       -.26775E-06    .48269E-04
  10  Prefactor     6.9829        9.2629       -.15374E-05   -.11613E-03
  11  Prefactor     .10000E-03    1.2821        .11523E-07** at limit **
  12  norm          12.429        7.5917        .26323E-06    .72572E-04
  13  Prefactor     .10000E-03    1.9560       -.20824E-07** at limit **
  14  Prefactor     1.0655        172.92       -.97385E-04    .17271E-04
  15  Prefactor     .10000E-03    1.6749       -.10380E-06** at limit **
  16  norm          3.5364        10.206        .14264E-05   -.20656E-03
  17  Prefactor     .10000E-03    25.161        .11397E-04** at limit **
  18  Prefactor     .10000E-03    16.311        .13566E-04** at limit **
  19  Prefactor     16.945        6.8358        .32079E-05   -.31929E-03
  20  Prefactor     4.6491        6.9557        .83250E-06   -.15619E-03
  21  Prefactor     1.7054        1.8018       -.10911E-06   -.62749E-04
  22  Prefactor     .10000E-03    7.3678        .85944E-06** at limit **
  23  Normalizat    .89034        .17211       -.96770E-06    .24831E-03
  24  Prefactor     1.0426        .18880        .14398E-05    .17725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8169
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3915
  Prefactor  = 6.98288
  Prefactor  = 0.0001
  norm       = 12.4287
  Prefactor  = 0.000100005
  Prefactor  = 1.06548
  Prefactor  = 0.0001
  norm       = 3.53643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9449
  Prefactor  = 4.64912
  Prefactor  = 1.70544
  Prefactor  = 0.0001
  Normalizat = 0.89034
  Prefactor  = 1.04255
 **********
 **   18 **HESSE 
 **********

 FCN=   5154.445     FROM HESSE     STATUS=OK           399 CALLS     2751 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8169        3.7249        .19353E-03   -1.5438    
   2  norm          .10000E-03    2.1088        .15200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1623        .27943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1346        .17365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    79.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    68.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.392        8.6116        .84651E-04   -1.4761    
  10  Prefactor     6.9829        9.2450        .15185E-03   -1.5179    
  11  Prefactor     .10000E-03    1.3149        .79293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.429        7.5898        .11362E-03   -1.5003    
  13  Prefactor     .10000E-03    7.6784        .19019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0655        181.53        .42240E-02   -1.5502    
  15  Prefactor     .10000E-03    1.6841        .90625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5364        10.184        .21476E-03   -1.5332    
  17  Prefactor     .10000E-03    25.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.945        6.8074        .97311E-04   -1.4884    
  20  Prefactor     4.6491        6.9226        .18669E-03   -1.5277    
  21  Prefactor     1.7054        1.7933        .94547E-04   -1.5447    
  22  Prefactor     .10000E-03    7.3704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89034        .19571        .23293E-03   -.96800    
  24  Prefactor     1.0426        .21608        .24675E-03   -.91324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27113e-09
Minuit parameter uncertainties:
  1  3.72537
  2  1.56857e-05
  3  3.72577e-06
  4  7.69913e-06
  5  1.58604e-06
  6  3.29085e-06
  7  0.000169584
  8  4.86817e-05
  9  8.61204
  10  9.2469
  11  1.3143e-06
  12  7.59038
  13  0.000376747
  14  27.8996
  15  1.48988e-05
  16  10.1894
  17  2.19089e-05
  18  0.000176201
  19  6.8077
  20  6.92378
  21  1.79339
  22  4.6242e-06
  23  0.195867
  24  0.216259
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.314e-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.043e+00  2.163e-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:  8.903e-01  1.959e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657546/likelihoodResults_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.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) = 5154.44910638
delta logL = -0.00361521783907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5154.44549115
delta logL = 1.0198164091e-08

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.2829       1.0000          .0000       10.000    
     3 'Normalizat'    .89039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5154.445     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.3492        .15968E-03** at limit **
   2  Index         2.2977        6.1488        .50000       -.94951E-04
   3  Normalizat    .89034        .18696        .23293E-03   -.85755E-04
   4  Prefactor     1.0426        .21374        .24674E-03   -.16218E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5154.445     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      357 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.3492        .20692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2977        6.1488        .84709E-03   -.57100    
   3  Normalizat    .89034        .18696        .76654E-04   -.96800    
   4  Prefactor     1.0426        .21374        .10513E-03   -.91324    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5154.414     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      535 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25902E-01    .78518        .63873E-04    .83210E-03
   2  Index         4.2421        6.9215        .71135E-02    .46827E-05
   3  Normalizat    .87617        .19592        .18634E-05   -.65890E-04
   4  Prefactor     1.0514        .21779        .19740E-05    .46075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0259015
  Index      = 4.24209
  Normalizat = 0.876175
  Prefactor  = 1.05142
 **********
 **   18 **HESSE 
 **********

 FCN=   5154.414     FROM HESSE     STATUS=OK            25 CALLS      560 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25902E-01    .45537        .25549E-05   -1.5740    
   2  Index         4.2421        3.4462        .28454E-03   -.15217    
   3  Normalizat    .87617        .20488        .37268E-06   -.97302    
   4  Prefactor     1.0514        .22664        .39479E-06   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0913e-10
Minuit parameter uncertainties:
  1  0.21679
  2  3.81357
  3  0.205061
  4  0.226846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657546': 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) = 5154.41424768
delta logL = 0.0312434884272

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.590e-02  2.168e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.242e+00  3.814e+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.051e+00  2.268e-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:  8.762e-01  2.051e-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/657546/cmap_HighResolution_382406401_382665601_4FGL_J1001.1+2911_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-01 10:09:40.315672', job_id='657546', GAL2='1.05', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1630516180.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.12e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='552' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 657546: <4FGL_J1001.1+2911_daily_bin552> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin552> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:16 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:18 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:55:18 2021
Terminated at Wed Sep  1 10:09:41 2021
Results reported at Wed Sep  1 10:09:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin552 150.294 29.188 382406401 382665601 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

