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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin231
RA = 150.294, Dec = 29.188
tmin = 299203201, tmax = 299462401
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='654790', job_status='RUN', time_executed='2021-09-01 09:49:07.515311', time_epoch_executed='1630514947.52' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654790/ft1_4FGL_J1001.1+2911_daily_bin231.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654790/ft2_4FGL_J1001.1+2911_daily_bin231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654790/ft1_4FGL_J1001.1+2911_daily_bin231.fits outfile=/scratch/kocevski/654790/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin231.fits ra=150.294 dec=29.188 rad=12.0 tmin=299203201.0 tmax=299462401.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.40
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654790/ft2_4FGL_J1001.1+2911_daily_bin231.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/654790/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin231.fits evtable="EVENTS" outfile="/scratch/kocevski/654790/ft1_filtered_4FGL_J1001.1+2911_daily_bin231.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.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654790/ft1_filtered_4FGL_J1001.1+2911_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/654790/ft2_4FGL_J1001.1+2911_daily_bin231.fits sctable="SC_DATA" expcube=/scratch/kocevski/654790/ltcube_299203201_299462401_4FGL_J1001.1+2911_daily_bin231.fits outfile=/scratch/kocevski/654790/expmap_299203201_299462401_4FGL_J1001.1+2911_daily_bin231.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/654790/ltcube_299203201_299462401_4FGL_J1001.1+2911_daily_bin231.fits
.....................!
real 192.76
user 187.98
sys 4.37

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/654790/ft1_filtered_4FGL_J1001.1+2911_daily_bin231.fits scfile=/scratch/kocevski/654790/ft2_4FGL_J1001.1+2911_daily_bin231.fits outfile=/scratch/kocevski/654790/cmap_299203201_299462401_4FGL_J1001.1+2911_daily_bin231.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.83
user 0.40
sys 0.11

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12297       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9740       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12423E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25504       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50373E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8539       1.0000         .10000E-03   10000.    
    12 'norm      '    46.545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11303E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2264       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2935       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83626       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5663.382     FROM MIGRAD    STATUS=CONVERGED   1027 CALLS     3246 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12509        15.825        .20925E-02   -.10650E-02
   2  norm          1.9739        1.6137        .83899E-04   -.32115E-04
   3  Prefactor     .10000E-03    42.955        .18142E-02** at limit **
   4  Prefactor     2.1879        2.8170        .13831E-03    .23262E-03
   5  Prefactor     .10000E-03    7.5157        .18142E-02** at limit **
   6  Prefactor     .10000E-03    16.733        .18142E-02** at limit **
   7  Prefactor     69.216        45.959        .24145E-03   -.27314E-03
   8  Prefactor     .14410        38.491        .13375        .82947E-04
   9  Prefactor     .10007E-03    8.9934        .52014E-01** at limit **
  10  Prefactor     .10000E-03    5.0295        .16391E-02** at limit **
  11  Prefactor     3.8547        2.7035        .98077E-04    .39029E-03
  12  norm          46.554        13.165        .58771E-04    .22482E-03
  13  Prefactor     1.4718        2.0686        .12515E-03    .13272E-03
  14  Prefactor     .10000E-03    11.675        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1.6638        .94058E-03** at limit **
  16  norm          12.605        10.290        .11283E-03   -.47055E-04
  17  Prefactor     .10000E-03    46.571        .18142E-02** at limit **
  18  Prefactor     .10000E-03    9.6600        .18142E-02** at limit **
  19  Prefactor     .10000E-03    2.0605        .10504E-02** at limit **
  20  Prefactor     9.2257        9.6899        .13194E-03    .96848E-04
  21  Prefactor     6.2936        3.3721        .91106E-04    .16334E-03
  22  Prefactor     .10000E-03    32.246        .18142E-02** at limit **
  23  Normalizat    .83586        .20606        .24842E-03    .13184E-03
  24  Prefactor     1.0606        .21978        .24896E-03    .37109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.125085
  norm       = 1.97385
  Prefactor  = 0.0001
  Prefactor  = 2.18787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.216
  Prefactor  = 0.144097
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  Prefactor  = 3.85471
  norm       = 46.5537
  Prefactor  = 1.47181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.22572
  Prefactor  = 6.29359
  Prefactor  = 0.0001
  Normalizat = 0.835862
  Prefactor  = 1.06063
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.382     FROM HESSE     STATUS=OK           395 CALLS     3641 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12509        16.026        .83702E-04   -1.5637    
   2  norm          1.9739        1.6137        .33560E-05   -1.5427    
   3  Prefactor     .10000E-03    42.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1879        2.8168        .55324E-05   -1.5412    
   5  Prefactor     .10000E-03    7.5159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     69.216        45.960        .96578E-05   -1.4042    
   8  Prefactor     .14410        37.697        .13577       -1.5632    
   9  Prefactor     .10007E-03    8.2145        .55124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0312        .32783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8547        2.7034        .39231E-05   -1.5315    
  12  norm          46.554        13.165        .11754E-04   -1.4342    
  13  Prefactor     1.4718        2.0685        .50059E-05   -1.5465    
  14  Prefactor     .10000E-03    11.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6641        .18812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.605        10.289        .45132E-05   -1.4998    
  17  Prefactor     .10000E-03    46.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0607        .21007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2257        9.6889        .52777E-05   -1.5100    
  21  Prefactor     6.2936        3.3719        .36442E-05   -1.5206    
  22  Prefactor     .10000E-03    32.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83586        .20624        .99369E-05   -.98752    
  24  Prefactor     1.0606        .21997        .49793E-04   -.90735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35979e-09
Minuit parameter uncertainties:
  1  2.83134
  2  1.61371
  3  0.00019499
  4  2.81699
  5  1.00435e-05
  6  6.80473e-06
  7  45.9835
  8  4.66271
  9  0.00156325
  10  3.51371e-05
  11  2.70344
  12  13.1658
  13  2.06859
  14  5.41788e-06
  15  1.19197e-05
  16  10.2909
  17  0.00013813
  18  1.66047e-05
  19  1.14848e-05
  20  9.6906
  21  3.37195
  22  1.07381e-05
  23  0.206433
  24  0.220161
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.855e+00  2.703e+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:  1.061e+00  2.202e-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.359e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.44e-05

TS (Fixed Index): 3.79
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654790/likelihoodResults_299203201_299462401_4FGL_J1001.1+2911_daily_bin231.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) = 5662.9364451
delta logL = 0.445635960997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.9242096
delta logL = 0.457871462516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1233       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9388       1.0000          .0000       10.000    
     3 'Normalizat'    .78812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5662.924     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      272 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1234        3.2176        .60634E-04    .12287E-02
   2  Index         2.9388        .97365        .47502E-02    .17574E-03
   3  Normalizat    .78814        .20604        .25496E-03    .48738E-04
   4  Prefactor     1.0970        .22513        .24529E-03    .85141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.12336
  Index      = 2.93884
  Normalizat = 0.788141
  Prefactor  = 1.09705
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.924     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1234        2.5880        .24254E-05   -1.5417    
   2  Index         2.9388        .78416        .19001E-03   -.42490    
   3  Normalizat    .78814        .20420        .10198E-04   -1.0051    
   4  Prefactor     1.0970        .22343        .98116E-05   -.89561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85826e-10
Minuit parameter uncertainties:
  1  2.58815
  2  0.788088
  3  0.204397
  4  0.223621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654790': 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) = 5662.92420959
delta logL = 0.457871478059

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.123e+00  2.588e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.939e+00  7.881e-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:  1.097e+00  2.236e-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.881e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.94 +/- 0.79
Photon Flux (Free Index): 8.45e-08 +/- 5.61e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.04e-05

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/654790/cmap_HighResolution_299203201_299462401_4FGL_J1001.1+2911_daily_bin231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.77e-03', comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='1.74e-05', photon_flux_error='3.61e-08', dlogl='4.58e-01', energy_flux='2.05e-05', photon_flux2='8.45e-08', job_status='DONE', time_completed='2021-09-01 10:00:23.279429', photon_index_error2='0.79', photon_index2='2.94', ts='3.79', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.04e-05', EG='0.84', time_epoch_completed='1630515623.28', return_code='0', job_id='654790', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.61e-08', ts2='4.77', photon_index='2.27' WHERE bin_id='231' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 654790: <4FGL_J1001.1+2911_daily_bin231> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin231 150.294 29.188 299203201 299462401 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

