/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 112 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 = 7391
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin123
RA = 150.294, Dec = 29.188
tmin = 271209601, tmax = 271468801
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='654635', job_status='RUN', time_executed='2021-09-01 09:47:49.744199', time_epoch_executed='1630514869.74' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654635/ft1_4FGL_J1001.1+2911_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654635/ft2_4FGL_J1001.1+2911_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654635/ft1_4FGL_J1001.1+2911_daily_bin123.fits outfile=/scratch/kocevski/654635/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin123.fits ra=150.294 dec=29.188 rad=12.0 tmin=271209601.0 tmax=271468801.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 1.59
user 1.42
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654635/ft1_filtered_4FGL_J1001.1+2911_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/654635/ft2_4FGL_J1001.1+2911_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/654635/ltcube_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.fits outfile=/scratch/kocevski/654635/expmap_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.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/654635/ltcube_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.fits
.....................!
real 190.26
user 185.20
sys 4.74

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/654635/ft1_filtered_4FGL_J1001.1+2911_daily_bin123.fits scfile=/scratch/kocevski/654635/ft2_4FGL_J1001.1+2911_daily_bin123.fits outfile=/scratch/kocevski/654635/cmap_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.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.59
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654635/ft1_filtered_4FGL_J1001.1+2911_daily_bin123.fits scfile=/scratch/kocevski/654635/ft2_4FGL_J1001.1+2911_daily_bin123.fits outfile=/scratch/kocevski/654635/cmap_HighResolution_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18267E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1187       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9704       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1489       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5908       1.0000         .10000E-03   10000.    
    12 'norm      '    70.390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2759       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4899       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3221       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2555       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90045       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=   8132.489     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2348 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.0945        .44655E-06** at limit **
   2  norm          2.1187        1.3306       -.51632E-08    .60272E-05
   3  Prefactor     29.508        31.509       -.61768E-05   -.52991E-03
   4  Prefactor     2.9705        2.8793        .67526E-07   -.31197E-04
   5  Prefactor     .10000E-03    13.326        .27681E-06** at limit **
   6  Prefactor     .10000E-03    26.701        .40895E-05** at limit **
   7  Prefactor     17.281        21.612       -.53869E-06   -.66320E-04
   8  Prefactor     .10000E-03    10.603       -.37254E-06** at limit **
   9  Prefactor     .55207        2.6264       -.14521E-06    .21346E-04
  10  Prefactor     6.1483        6.6406        .75882E-07    .99246E-05
  11  Prefactor     1.5907        1.4994       -.76495E-08    .34995E-04
  12  norm          70.388        12.820       -.61384E-07    .37536E-04
  13  Prefactor     6.2785        4.3138        .40418E-07   -.99653E-04
  14  Prefactor     5.1563        53.583       -.16574E-05   -.24524E-04
  15  Prefactor     .10000E-03    4.7732       -.25770E-07** at limit **
  16  norm          3.4899        5.1469        .14339E-06    .16605E-04
  17  Prefactor     .10000E-03    39.539       -.11904E-05** at limit **
  18  Prefactor     .10000E-03    22.842       -.30668E-05** at limit **
  19  Prefactor     14.581        6.5109       -.13692E-08    .10064E-03
  20  Prefactor     4.4683        4.3144        .20738E-05   -.20498E-02
  21  Prefactor     2.3221        1.9049       -.11938E-06   -.18905E-03
  22  Prefactor     .10000E-03    10.555       -.53691E-06** at limit **
  23  Normalizat    1.2557        .16107       -.19711E-06    .12731E-04
  24  Prefactor     .90022        .16838        .26012E-06   -.26857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  norm       = 2.11874
  Prefactor  = 29.5078
  Prefactor  = 2.97054
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 17.2806
  Prefactor  = 0.0001
  Prefactor  = 0.552068
  Prefactor  = 6.14829
  Prefactor  = 1.59068
  norm       = 70.3884
  Prefactor  = 6.27846
  Prefactor  = 5.15633
  Prefactor  = 0.0001
  norm       = 3.48991
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.5808
  Prefactor  = 4.46835
  Prefactor  = 2.32213
  Prefactor  = 0.0001
  Normalizat = 1.25568
  Prefactor  = 0.900222
 **********
 **   18 **HESSE 
 **********

 FCN=   8132.489     FROM HESSE     STATUS=OK           405 CALLS     2753 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.696        .25258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1187        1.3340        .79936E-04   -1.5417    
   3  Prefactor     29.508        33.713        .73736E-04   -1.4621    
   4  Prefactor     2.9705        2.8790        .14402E-03   -1.5363    
   5  Prefactor     .10000E-03    13.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.281        21.645        .96341E-04   -1.4876    
   8  Prefactor     .10000E-03    10.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55207        9.8934        .27471E-02   -1.5559    
  10  Prefactor     6.1483        6.6384        .16190E-03   -1.5212    
  11  Prefactor     1.5907        1.5034        .10346E-03   -1.5456    
  12  norm          70.388        12.798        .47847E-04   -1.4028    
  13  Prefactor     6.2785        4.2953        .14482E-03   -1.5207    
  14  Prefactor     5.1563        53.669        .17702E-03   -1.5254    
  15  Prefactor     .10000E-03    4.8415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4899        5.1363        .21644E-03   -1.5334    
  17  Prefactor     .10000E-03    39.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.581        6.5096        .10491E-03   -1.4944    
  20  Prefactor     4.4683        5.0549        .95239E-03   -1.5285    
  21  Prefactor     2.3221        1.8958        .10845E-03   -1.5403    
  22  Prefactor     .10000E-03    10.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2557        .19113        .23993E-03   -.84899    
  24  Prefactor     .90022        .19944        .29996E-03   -.96133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6433e-09
Minuit parameter uncertainties:
  1  0.000615184
  2  1.33407
  3  33.7351
  4  2.87917
  5  3.69114e-05
  6  0.000699095
  7  21.655
  8  4.02848e-05
  9  4.67458
  10  6.63924
  11  1.50343
  12  12.798
  13  4.29548
  14  33.3089
  15  1.88879e-06
  16  5.13691
  17  0.000259165
  18  0.000484467
  19  6.5099
  20  5.05538
  21  1.89582
  22  5.96092e-05
  23  0.191241
  24  0.199606
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.591e+00  1.503e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.002e-01  1.996e-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.256e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.70
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 8.45e-06 +/- 7.99e-06

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

Saving results to:
/scratch/kocevski/654635/likelihoodResults_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.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): 0
logL (Free Index) = 8132.30512651
delta logL = 0.184334061437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8132.29739113
delta logL = 0.192069440904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3963       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7088       1.0000          .0000       10.000    
     3 'Normalizat'    1.2693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89313       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.

 FCN=   8132.297     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3961        1.6608        .91859E-02   -.29078E-03
   2  Index         1.7088        .66389        .27791       -.62773E-04
   3  Normalizat    1.2693        .15509        .54015E-01    .51866E-05
   4  Prefactor     .89313        .16725        .68051E-01    .21012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39611
  Index      = 1.70877
  Normalizat = 1.2693
  Prefactor  = 0.893126
 **********
 **   18 **HESSE 
 **********

 FCN=   8132.297     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3961        1.6104        .10443E-03   -1.5472    
   2  Index         1.7088        .80734        .13073E-01   -.71849    
   3  Normalizat    1.2693        .18285        .23883E-03   -.84487    
   4  Prefactor     .89313        .19753        .30104E-03   -.96382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95586e-09
Minuit parameter uncertainties:
  1  1.61041
  2  0.813664
  3  0.182947
  4  0.197691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654635': 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) = 8132.29739112
delta logL = 0.192069449819

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.396e+00  1.610e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.709e+00  8.137e-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:  8.931e-01  1.977e-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.269e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.71 +/- 0.81
Photon Flux (Free Index): 9.33e-09 +/- 1.52e-08
Energy Flux (Free Index): 1.48e-05 +/- 2.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/654635/cmap_HighResolution_271209601_271468801_4FGL_J1001.1+2911_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='1.48e-05', photon_flux_error='2.01e-08', dlogl='1.92e-01', energy_flux='8.45e-06', photon_flux2='9.33e-09', job_status='DONE', time_completed='2021-09-01 10:00:06.151074', photon_index_error2='0.81', photon_index2='1.71', ts='3.70', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.59e-08', energy_flux_error2='2.45e-05', EG='1.26', time_epoch_completed='1630515606.15', return_code='0', job_id='654635', GAL2='0.89', EG2='1.27', return_code2='0', energy_flux_error='7.99e-06', photon_flux_error2='1.52e-08', ts2='4.09', photon_index='2.27' WHERE bin_id='123' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 654635: <4FGL_J1001.1+2911_daily_bin123> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin123> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:48 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:49 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:45:49 2021
Terminated at Wed Sep  1 10:00:06 2021
Results reported at Wed Sep  1 10:00:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin123 150.294 29.188 271209601 271468801 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            858 sec.

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

