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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin621
RA = 150.294, Dec = 29.188
tmin = 400291201, tmax = 400550401
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='657651', job_status='RUN', time_executed='2021-09-01 09:58:26.969989', time_epoch_executed='1630515506.97' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657651/ft1_4FGL_J1001.1+2911_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657651/ft2_4FGL_J1001.1+2911_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657651/ft1_4FGL_J1001.1+2911_daily_bin621.fits outfile=/scratch/kocevski/657651/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin621.fits ra=150.294 dec=29.188 rad=12.0 tmin=400291201.0 tmax=400550401.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 5.91
user 3.18
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657651/ft2_4FGL_J1001.1+2911_daily_bin621.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/657651/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin621.fits evtable="EVENTS" outfile="/scratch/kocevski/657651/ft1_filtered_4FGL_J1001.1+2911_daily_bin621.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/657651/ft1_filtered_4FGL_J1001.1+2911_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/657651/ft2_4FGL_J1001.1+2911_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/657651/ltcube_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.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/657651/ft2_4FGL_J1001.1+2911_daily_bin621.fits
.....................!
real 11.55
user 11.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657651/ft1_filtered_4FGL_J1001.1+2911_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/657651/ft2_4FGL_J1001.1+2911_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/657651/ltcube_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.fits outfile=/scratch/kocevski/657651/expmap_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.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/657651/ltcube_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.fits
.....................!
real 190.35
user 185.71
sys 4.26

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/657651/ft1_filtered_4FGL_J1001.1+2911_daily_bin621.fits scfile=/scratch/kocevski/657651/ft2_4FGL_J1001.1+2911_daily_bin621.fits outfile=/scratch/kocevski/657651/cmap_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657651/ft1_filtered_4FGL_J1001.1+2911_daily_bin621.fits scfile=/scratch/kocevski/657651/ft2_4FGL_J1001.1+2911_daily_bin621.fits outfile=/scratch/kocevski/657651/cmap_HighResolution_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0989       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    106.69       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90916E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3707       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9845       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2524       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .57964       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=   5783.534     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2718 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0991        2.6161       -.12342E-07    .47756E-06
   2  norm          2.7910        1.5664       -.13064E-07    .11356E-04
   3  Prefactor     .10000E-03    33.993        .67002E-06** at limit **
   4  Prefactor     1.8896        2.8852       -.65464E-07   -.12241E-03
   5  Prefactor     .10000E-03    21.959       -.11124E-05** at limit **
   6  Prefactor     106.69        69.652       -.18898E-05   -.12894E-04
   7  Prefactor     14.023        36.871       -.12161E-04   -.59945E-04
   8  Prefactor     .10000E-03    74.952       -.57163E-07** at limit **
   9  Prefactor     5.3778        5.3213        .33166E-06   -.12145E-02
  10  Prefactor     .10002E-03    6.8028        .13041E-05** at limit **
  11  Prefactor     .10000E-03    .54605       -.49184E-08** at limit **
  12  norm          5.3715        5.3287       -.81726E-06   -.86297E-04
  13  Prefactor     3.0263        4.3668       -.73492E-06   -.31048E-03
  14  Prefactor     .10000E-03    11.559       -.17369E-05** at limit **
  15  Prefactor     3.9851        4.7315        .64055E-06   -.66213E-04
  16  norm          5.3198        7.9752        .20510E-06   -.50253E-03
  17  Prefactor     .10000E-03    14.461        .10458E-06** at limit **
  18  Prefactor     .10000E-03    9.0560       -.18341E-07** at limit **
  19  Prefactor     1.6264        2.7979       -.63514E-07   -.79521E-04
  20  Prefactor     4.4577        5.9986        .34388E-06   -.10766E-02
  21  Prefactor     .10000E-03    1.6559       -.99523E-07** at limit **
  22  Prefactor     .10000E-03    11.315        .14869E-05** at limit **
  23  Normalizat    1.2523        .16875        .64165E-06   -.17534E-03
  24  Prefactor     .57953        .17566       -.12322E-07   -.50395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09908
  norm       = 2.79101
  Prefactor  = 0.0001
  Prefactor  = 1.88959
  Prefactor  = 0.0001
  Prefactor  = 106.69
  Prefactor  = 14.0228
  Prefactor  = 0.0001
  Prefactor  = 5.37782
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 5.37147
  Prefactor  = 3.02625
  Prefactor  = 0.0001
  Prefactor  = 3.98505
  norm       = 5.31979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6264
  Prefactor  = 4.45774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2523
  Prefactor  = 0.579526
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.534     FROM HESSE     STATUS=OK           399 CALLS     3117 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0991        2.6173        .11022E-03   -1.5356    
   2  norm          2.7910        1.5655        .69027E-04   -1.5374    
   3  Prefactor     .10000E-03    34.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8896        2.8733        .15262E-03   -1.5433    
   5  Prefactor     .10000E-03    22.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     106.69        69.628        .38934E-04   -1.3638    
   7  Prefactor     14.023        37.251        .10692E-03   -1.4959    
   8  Prefactor     .10000E-03    75.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3778        6.3281        .86646E-03   -1.5244    
  10  Prefactor     .10002E-03    22.781        .37423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .54765        .54864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3715        5.3240        .16917E-03   -1.5244    
  13  Prefactor     3.0263        4.3156        .15976E-03   -1.5360    
  14  Prefactor     .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9851        4.6758        .15181E-03   -1.5309    
  16  norm          5.3198        8.3675        .87134E-03   -1.5247    
  17  Prefactor     .10000E-03    14.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6264        2.7642        .16186E-03   -1.5453    
  20  Prefactor     4.4577        8.0599        .95380E-03   -1.5286    
  21  Prefactor     .10000E-03    1.7093        .19077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2523        .19651        .20076E-03   -.85002    
  24  Prefactor     .57953        .20098        .30222E-03   -1.0846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18418e-09
Minuit parameter uncertainties:
  1  2.61738
  2  1.56555
  3  3.43836e-06
  4  2.87349
  5  3.62175e-05
  6  69.6815
  7  37.3131
  8  3.29788e-05
  9  6.32889
  10  0.00142379
  11  4.97158e-07
  12  5.32444
  13  4.31601
  14  2.67166e-05
  15  4.67622
  16  8.36936
  17  1.14293e-06
  18  2.29686e-06
  19  2.76439
  20  8.06185
  21  3.31167e-06
  22  1.6917e-05
  23  0.196625
  24  0.201226
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.972e-07  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:  5.795e-01  2.012e-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.252e+00  1.966e-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: 4.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657651/likelihoodResults_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.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) = 5783.53391532
delta logL = -6.27755480309e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5783.53385296
delta logL = -4.1872044676e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2458       1.0000          .0000       10.000    
     3 'Normalizat'    1.2524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57954       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=   5783.534     FROM MIGRAD    STATUS=FAILED        99 CALLS      249 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7805        .55308E-02** at limit **
   2  Index         1.9038        6.0338        .50000       -.34836E-05
   3  Normalizat    1.2523        .12474E-01    .20076E-03    .18081E-03
   4  Prefactor     .57953        .13282E-01    .30222E-03    .13885E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5783.534     FROM SIMPLEX   STATUS=UNCHANGED    170 CALLS      419 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7805        .13759E-03** at limit **
   2  Index         1.9038        6.0338        .14564E-04   -.34836E-05
   3  Normalizat    1.2523        .12474E-01    .89023E-07    .18081E-03
   4  Prefactor     .57953        .13282E-01    .89621E-07    .13885E-03
                               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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5783.534     FROM MIGRAD    STATUS=FAILED        69 CALLS      488 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8281        .11512E-03** at limit **
   2  Index         1.9040        7.2602        .50000       -.33983E-05
   3  Normalizat    1.2523        .18663        .80302E-05    .18036E-03
   4  Prefactor     .57953        .19856        .24178E-05    .13824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.904
  Normalizat = 1.2523
  Prefactor  = 0.579525
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.534     FROM HESSE     STATUS=OK            27 CALLS      515 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .62384        .23024E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9040        5.7372        .50000       -.66772    
   3  Normalizat    1.2523        .19201        .16060E-05   -.85002    
   4  Prefactor     .57953        .20557        .48355E-06   -1.0846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8254e-09
Minuit parameter uncertainties:
  1  4.07846e-06
  2  48.0129
  3  0.192114
  4  0.205835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657651': 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): 1
logL (Free Index) = 5783.53384445
delta logL = 8.09232460597e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.078e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.904e+00  4.801e+01  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:  5.795e-01  2.058e-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.252e+00  1.921e-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/657651/cmap_HighResolution_400291201_400550401_4FGL_J1001.1+2911_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', job_status='DONE', photon_flux_upper_limit='4.05e-08', time_completed='2021-09-01 10:09:10.195717', job_id='657651', GAL2='0.58', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630516150.2', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='621' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:09:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 657651: <4FGL_J1001.1+2911_daily_bin621> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin621 150.294 29.188 400291201 400550401 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 :                                   639.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

