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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin311
RA = 150.294, Dec = 29.188
tmin = 319939201, tmax = 320198401
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='656046', job_status='RUN', time_executed='2021-09-01 09:54:52.522913', time_epoch_executed='1630515292.52' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656046/ft1_4FGL_J1001.1+2911_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656046/ft2_4FGL_J1001.1+2911_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656046/ft1_4FGL_J1001.1+2911_daily_bin311.fits outfile=/scratch/kocevski/656046/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin311.fits ra=150.294 dec=29.188 rad=12.0 tmin=319939201.0 tmax=320198401.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.59
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656046/ft1_filtered_4FGL_J1001.1+2911_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/656046/ft2_4FGL_J1001.1+2911_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/656046/ltcube_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.fits outfile=/scratch/kocevski/656046/expmap_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.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/656046/ltcube_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.fits
.....................!
real 191.22
user 185.70
sys 4.80

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/656046/ft1_filtered_4FGL_J1001.1+2911_daily_bin311.fits scfile=/scratch/kocevski/656046/ft2_4FGL_J1001.1+2911_daily_bin311.fits outfile=/scratch/kocevski/656046/cmap_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.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/656046/ft1_filtered_4FGL_J1001.1+2911_daily_bin311.fits scfile=/scratch/kocevski/656046/ft2_4FGL_J1001.1+2911_daily_bin311.fits outfile=/scratch/kocevski/656046/cmap_HighResolution_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1100       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20559E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .90384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7854       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14905E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12133E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14046E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5244       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4579       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79222       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96015       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=   4773.999     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2759 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1103        2.8442        .83532E-07   -.58736E-04
   2  norm          1.9817        1.3096        .64379E-09    .37505E-04
   3  Prefactor     .10000E-03    50.068        .68434E-06** at limit **
   4  Prefactor     .10000E-03    .70704        .21992E-07** at limit **
   5  Prefactor     .10000E-03    10.920        .74145E-07** at limit **
   6  Prefactor     .10000E-03    61.857       -.37132E-05** at limit **
   7  Prefactor     99.622        49.029       -.47598E-07    .19353E-05
   8  Prefactor     .90131        39.907        .45679E-06   -.25462E-04
   9  Prefactor     2.4497        5.6064        .43914E-06   -.11972E-03
  10  Prefactor     .10000E-03    11.610        .54146E-08** at limit **
  11  Prefactor     .10000E-03    1.0308        .10972E-07** at limit **
  12  norm          7.6586        8.0049        .14111E-06   -.50986E-05
  13  Prefactor     4.7867        3.6767        .30991E-07    .27459E-05
  14  Prefactor     .10000E-03    68.556        .33213E-05** at limit **
  15  Prefactor     .10000E-03    2.8643        .73934E-07** at limit **
  16  norm          .10000E-03    8.2255        .31812E-07** at limit **
  17  Prefactor     .10000E-03    352.66        .44135E-05** at limit **
  18  Prefactor     .10496E-03    42.321        .20762E-05** at limit **
  19  Prefactor     7.9071        6.2159       -.13927E-05    .41785E-03
  20  Prefactor     2.5272        9.5602       -.25698E-06   -.11241E-03
  21  Prefactor     4.4573        3.4973        .28043E-07    .54562E-04
  22  Prefactor     .10000E-03    8.8087        .20910E-07** at limit **
  23  Normalizat    .79225        .16695       -.76801E-07    .14156E-04
  24  Prefactor     .96012        .17985       -.37280E-06    .43261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11032
  norm       = 1.98166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.6221
  Prefactor  = 0.901309
  Prefactor  = 2.44972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.65856
  Prefactor  = 4.7867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104961
  Prefactor  = 7.9071
  Prefactor  = 2.52715
  Prefactor  = 4.45733
  Prefactor  = 0.0001
  Normalizat = 0.792246
  Prefactor  = 0.96012
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.999     FROM HESSE     STATUS=OK           407 CALLS     3166 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1103        2.8272        .13145E-03   -1.5417    
   2  norm          1.9817        1.3181        .62638E-04   -1.5426    
   3  Prefactor     .10000E-03    50.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .70860        .56731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    61.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     99.622        49.152        .40276E-04   -1.3708    
   8  Prefactor     .90131        433.35        .83291E-02   -1.5518    
   9  Prefactor     2.4497        5.5738        .23323E-03   -1.5395    
  10  Prefactor     .10000E-03    11.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0455        .68439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6586        7.9992        .14489E-03   -1.5154    
  13  Prefactor     4.7867        3.6739        .10986E-03   -1.5270    
  14  Prefactor     .10000E-03    68.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9071        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.2766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    357.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10496E-03    66.498        .12087       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9071        7.9805        .14259E-03   -1.5146    
  20  Prefactor     2.5272        9.6801        .25711E-03   -1.5390    
  21  Prefactor     4.4573        3.4715        .10262E-03   -1.5286    
  22  Prefactor     .10000E-03    8.8184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79225        .19546        .22537E-03   -1.0036    
  24  Prefactor     .96012        .20978        .23334E-03   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87744e-08
Minuit parameter uncertainties:
  1  2.82739
  2  1.31812
  3  1.35111e-05
  4  6.77534e-08
  5  4.84977e-07
  6  0.000102863
  7  49.1723
  8  39.8171
  9  5.57498
  10  8.09498e-06
  11  1.11145e-07
  12  8.00036
  13  3.67406
  14  0.000137561
  15  9.01135e-06
  16  1.57657e-05
  17  0.00018643
  18  0.0363661
  19  7.98162
  20  9.68612
  21  3.47162
  22  1.36712e-06
  23  0.195631
  24  0.209953
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.111e-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:  9.601e-01  2.100e-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:  7.922e-01  1.956e-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/656046/likelihoodResults_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.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) = 4774.00313842
delta logL = -0.00453600178935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4773.99860241
delta logL = 4.72573447041e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2672       1.0000          .0000       10.000    
     3 'Normalizat'    .79225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96012       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=   4773.999     FROM MIGRAD    STATUS=FAILED        86 CALLS      238 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    159.02        .68451E-03** at limit **
   2  Index         2.2452        8.4743        .50000        .88930E-05
   3  Normalizat    .79225        .65238E-01    .22537E-03    .80207E-05
   4  Prefactor     .96012        .73058E-01    .23334E-03    .84774E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4773.999     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      393 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    159.02        .19867E-03** at limit **
   2  Index         2.2452        8.4743        .10441E-04    .88930E-05
   3  Normalizat    .79225        .65238E-01    .47840E-06    .80207E-05
   4  Prefactor     .96012        .73058E-01    .40476E-06    .84774E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4773.999     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      435 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1646        .13690E-03** at limit **
   2  Index         2.1883        8.8188        .50000       -.19322E-06
   3  Normalizat    .79225        .18390        .90148E-05    .89792E-04
   4  Prefactor     .96012        .20899        .93337E-05    .76005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18831
  Normalizat = 0.792247
  Prefactor  = 0.960119
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.999     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0524        .27380E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1883        7.9944        .50000       -.59721    
   3  Normalizat    .79225        .18388        .18030E-05   -1.0036    
   4  Prefactor     .96012        .20894        .18667E-05   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77447e-11
Minuit parameter uncertainties:
  1  6.26732e-08
  2  91.3009
  3  0.184024
  4  0.209114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656046': 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) = 4773.99860229
delta logL = 1.23985955724e-07

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.267e-08  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.188e+00  9.130e+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:  9.601e-01  2.091e-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:  7.922e-01  1.840e-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/656046/cmap_HighResolution_319939201_320198401_4FGL_J1001.1+2911_daily_bin311.png

Cleaning up...

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

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:54.396175', job_id='656046', GAL2='0.96', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630515894.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='311' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 656046: <4FGL_J1001.1+2911_daily_bin311> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin311> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:39 2021
Job was executed on host(s) <bullet0276>, 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:54 2021
Results reported at Wed Sep  1 10:04:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin311 150.294 29.188 319939201 320198401 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

