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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin549
RA = 150.294, Dec = 29.188
tmin = 381628801, tmax = 381888001
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='657542', job_status='RUN', time_executed='2021-09-01 09:58:52.485609', time_epoch_executed='1630515532.49' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657542

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657542/ft1_4FGL_J1001.1+2911_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657542/ft2_4FGL_J1001.1+2911_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657542/ft1_4FGL_J1001.1+2911_daily_bin549.fits outfile=/scratch/kocevski/657542/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin549.fits ra=150.294 dec=29.188 rad=12.0 tmin=381628801.0 tmax=381888001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.12
user 3.81
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657542/ft1_filtered_4FGL_J1001.1+2911_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/657542/ft2_4FGL_J1001.1+2911_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/657542/ltcube_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.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/657542/ft2_4FGL_J1001.1+2911_daily_bin549.fits
.....................!
real 13.46
user 13.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657542/ft1_filtered_4FGL_J1001.1+2911_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/657542/ft2_4FGL_J1001.1+2911_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/657542/ltcube_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.fits outfile=/scratch/kocevski/657542/expmap_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.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/657542/ltcube_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.fits
.....................!
real 191.18
user 185.44
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/657542/ft1_filtered_4FGL_J1001.1+2911_daily_bin549.fits scfile=/scratch/kocevski/657542/ft2_4FGL_J1001.1+2911_daily_bin549.fits outfile=/scratch/kocevski/657542/cmap_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.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 2.52
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657542/ft1_filtered_4FGL_J1001.1+2911_daily_bin549.fits scfile=/scratch/kocevski/657542/ft2_4FGL_J1001.1+2911_daily_bin549.fits outfile=/scratch/kocevski/657542/cmap_HighResolution_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.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.67
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6285       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1714       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1801       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.773       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12734E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65301E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.753       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62285       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4315       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1756       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0508       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94418       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=   5233.811     FROM MIGRAD    STATUS=FAILED       999 CALLS     3603 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6288        5.4267        .13712E-03   -.13564E-03
   2  norm          3.1714        2.1573        .83821E-04    .32009E-04
   3  Prefactor     .10000E-03    12.603        .18142E-02** at limit **
   4  Prefactor     4.1816        5.8104        .18642E-03   -.11495E-03
   5  Prefactor     21.976        20.310        .85450E-04    .40579E-04
   6  Prefactor     25.786        70.486        .78908E-04    .22476E-04
   7  Prefactor     .10000E-03    248.43        .36285E-03** at limit **
   8  Prefactor     41.392        52.112        .62311E-04    .89400E-05
   9  Prefactor     .57361E-01    7.6068        .44037E-01    .98092E-03
  10  Prefactor     .10000E-03    3.9498        .14025E-02** at limit **
  11  Prefactor     .10000E-03    1.9970        .14842E-02** at limit **
  12  norm          .10000E-03    4.7822        .15397E-02** at limit **
  13  Prefactor     .10000E-03    3.4980        .26018E-03** at limit **
  14  Prefactor     30.753        45.824        .72251E-04    .26749E-05
  15  Prefactor     .62409        5.8895        .32233E-02    .52091E-02
  16  norm          5.4331        7.4083        .17242E-03   -.15284E-03
  17  Prefactor     63.836        73.069        .50231E-04    .21728E-04
  18  Prefactor     .10043E-03    30.457        .11661    ** at limit **
  19  Prefactor     .10000E-03    3.2303        .12609E-02** at limit **
  20  Prefactor     .10000E-03    3.2396        .12691E-02** at limit **
  21  Prefactor     2.1755        2.5690        .12101E-03   -.75537E-04
  22  Prefactor     8.0495        22.499        .14131E-03   -.32182E-06
  23  Normalizat    1.0700        .22294        .23136E-03   -.79799E-04
  24  Prefactor     .94429        .23064        .26335E-03   -.11686E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5233.811     FROM SIMPLEX   STATUS=PROGRESS    1152 CALLS     4755 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6288        5.4267        .37906E-06   -1.5155    
   2  norm          3.1714        2.1573        .38784E-06   -1.5352    
   3  Prefactor     .10000E-03    12.603        .61597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1816        5.8104        .36566E-06   -1.5299    
   5  Prefactor     21.976        20.310        .35388E-06   -1.4770    
   6  Prefactor     25.786        70.486        .35536E-06   -1.4692    
   7  Prefactor     .10000E-03    248.43        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.392        52.112        .34338E-06   -1.4420    
   9  Prefactor     .57361E-01    7.6068        .37230E-06   -1.5660    
  10  Prefactor     .10000E-03    3.9498        .21595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9970        .20336E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.7822        .26697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4980        .26126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.753        45.824        .36664E-06   -1.4598    
  15  Prefactor     .62409        5.8895        .41030E-06   -1.5550    
  16  norm          5.4331        7.4083        .38687E-06   -1.5242    
  17  Prefactor     63.836        73.069        .37267E-06   -1.4108    
  18  Prefactor     .10043E-03    30.457        .38984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2303        .29776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2396        .18074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1755        2.5690        .36796E-06   -1.5413    
  22  Prefactor     8.0495        22.499        .36338E-06   -1.5140    
  23  Normalizat    1.0700        .22294        .21731E-06   -.90721    
  24  Prefactor     .94429        .23064        .22572E-06   -.94610    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5233.811     FROM MIGRAD    STATUS=CONVERGED      7 CALLS     4762 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6288        5.4261        .46414E-07   -.53004E-05
   2  norm          3.1714        2.1571        .54227E-07   -.26261E-04
   3  Prefactor     .10000E-03    12.603        .30809E-07** at limit **
   4  Prefactor     4.1816        5.8168       -.17746E-06    .28371E-04
   5  Prefactor     21.976        20.317        .21236E-06   -.39770E-04
   6  Prefactor     25.786        70.561        .10792E-05   -.19314E-04
   7  Prefactor     .10000E-03    248.43        .53097E-06** at limit **
   8  Prefactor     41.392        52.103        .26390E-06   -.83838E-05
   9  Prefactor     .56523E-01    124.20       -.26394E-04    .39853E-05
  10  Prefactor     .10000E-03    3.9496        .10696E-06** at limit **
  11  Prefactor     .10000E-03    2.0111        .10706E-05** at limit **
  12  norm          .10000E-03    4.7814        .19437E-06** at limit **
  13  Prefactor     .10000E-03    3.4989       -.15581E-06** at limit **
  14  Prefactor     30.753        45.814        .29722E-06   -.39282E-05
  15  Prefactor     .62410        5.8982       -.26034E-06    .15882E-04
  16  norm          5.4332        7.4037       -.39376E-06   -.18240E-04
  17  Prefactor     63.835        73.056        .76150E-06   -.23678E-04
  18  Prefactor     .10001E-03    51.900        .12336E-04** at limit **
  19  Prefactor     .10000E-03    3.2302        .50400E-07** at limit **
  20  Prefactor     .10000E-03    3.2395        .54568E-07** at limit **
  21  Prefactor     2.1755        2.5696       -.26140E-07    .19877E-04
  22  Prefactor     8.0494        22.498        .17542E-06   -.47028E-05
  23  Normalizat    1.0700        .22305        .10013E-06   -.20710E-03
  24  Prefactor     .94429        .23070       -.91855E-06   -.15122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.62878
  norm       = 3.17139
  Prefactor  = 0.0001
  Prefactor  = 4.18158
  Prefactor  = 21.9757
  Prefactor  = 25.7865
  Prefactor  = 0.0001
  Prefactor  = 41.3922
  Prefactor  = 0.0565233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7533
  Prefactor  = 0.624095
  norm       = 5.43316
  Prefactor  = 63.835
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1755
  Prefactor  = 8.04945
  Normalizat = 1.07001
  Prefactor  = 0.944292
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.811     FROM HESSE     STATUS=OK           395 CALLS     5157 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6288        5.4262        .54848E-05   -1.5155    
   2  norm          3.1714        2.1572        .33528E-05   -1.5352    
   3  Prefactor     .10000E-03    12.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1816        5.8071        .74568E-05   -1.5299    
   5  Prefactor     21.976        20.309        .34180E-05   -1.4770    
   6  Prefactor     25.786        70.474        .31563E-05   -1.4692    
   7  Prefactor     .10000E-03    248.43        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.392        52.108        .24925E-05   -1.4420    
   9  Prefactor     .56523E-01    6.0984        .50894E-01   -1.5660    
  10  Prefactor     .10000E-03    3.9500        .28049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0029        .29684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.7831        .30794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4980        .52036E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.753        45.824        .28901E-05   -1.4598    
  15  Prefactor     .62410        5.8540        .64466E-03   -1.5550    
  16  norm          5.4332        7.4079        .68967E-05   -1.5242    
  17  Prefactor     63.835        73.060        .10046E-04   -1.4108    
  18  Prefactor     .10001E-03    29.849        .11836       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2308        .25217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2398        .25382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1755        2.5684        .48402E-05   -1.5413    
  22  Prefactor     8.0494        22.501        .56522E-05   -1.5140    
  23  Normalizat    1.0700        .22275        .92546E-05   -.90721    
  24  Prefactor     .94429        .23080        .10534E-04   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98894e-10
Minuit parameter uncertainties:
  1  5.42652
  2  2.15726
  3  1.21903e-06
  4  5.80788
  5  20.3155
  6  70.703
  7  1.38419e-05
  8  52.1657
  9  1.17331
  10  5.82521e-08
  11  2.08264e-05
  12  4.61309e-07
  13  6.67529e-06
  14  45.8769
  15  3.823
  16  7.40917
  17  73.1628
  18  0.0011416
  19  1.53789e-06
  20  6.0041e-07
  21  2.56857
  22  22.5242
  23  0.222945
  24  0.231041
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.083e-05  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.443e-01  2.310e-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.070e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/657542/likelihoodResults_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.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) = 5233.81326375
delta logL = -0.00239247972331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5233.81087138
delta logL = -1.09343091026e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2830       1.0000          .0000       10.000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94431       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=   5233.811     FROM MIGRAD    STATUS=FAILED        94 CALLS      257 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    25.080        .14786E-02** at limit **
   2  Index         2.3455        5.8566        .50000       -.45185E-04
   3  Normalizat    1.0700        .15837E-01    .23136E-03   -.50415E-04
   4  Prefactor     .94429        .17130E-01    .26335E-03   -.12087E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5233.811     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      383 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    25.080        .28491E-03** at limit **
   2  Index         2.3455        5.8566        .30387E-03   -.45185E-04
   3  Normalizat    1.0700        .15837E-01    .21605E-05   -.50415E-04
   4  Prefactor     .94429        .17130E-01    .17698E-05   -.12087E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5233.811     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      425 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.460        .29573E-03** at limit **
   2  Index         2.5103        8.7210        .50000        .80474E-06
   3  Normalizat    1.0700        .30893E-01    .92546E-05    .52381E-03
   4  Prefactor     .94429        .33409E-01    .10534E-04    .44162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5103
  Normalizat = 1.07001
  Prefactor  = 0.944292
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.811     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    341.07        .59145E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5103        8.7274        .50000       -.52122    
   3  Normalizat    1.0700        .75655E-01    .18509E-05   -.90721    
   4  Prefactor     .94429        .81464E-01    .21068E-05   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73789e-10
Minuit parameter uncertainties:
  1  0.000347451
  2  509.082
  3  0.0756626
  4  0.0814744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657542': 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): 102
logL (Free Index) = 5233.81086937
delta logL = 1.89380807569e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.475e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.510e+00  5.091e+02  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.443e-01  8.147e-02  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.070e+00  7.566e-02  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/657542/cmap_HighResolution_381628801_381888001_4FGL_J1001.1+2911_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-01 10:11:41.521762', job_id='657542', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630516301.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='549' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:11:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 657542: <4FGL_J1001.1+2911_daily_bin549> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin549> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:16 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:55:18 2021
Terminated at Wed Sep  1 10:11:42 2021
Results reported at Wed Sep  1 10:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin549 150.294 29.188 381628801 381888001 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

