/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 171 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7452
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin712
RA = 150.294, Dec = 29.188
tmin = 423878401, tmax = 424137601
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='657788', job_status='RUN', time_executed='2021-09-01 09:58:46.924448', time_epoch_executed='1630515526.92' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657788/ft1_4FGL_J1001.1+2911_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657788/ft2_4FGL_J1001.1+2911_daily_bin712.fits


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

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

Done.
real 5.41
user 5.09
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657788/ft1_filtered_4FGL_J1001.1+2911_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/657788/ft2_4FGL_J1001.1+2911_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/657788/ltcube_423878401_424137601_4FGL_J1001.1+2911_daily_bin712.fits outfile=/scratch/kocevski/657788/expmap_423878401_424137601_4FGL_J1001.1+2911_daily_bin712.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/657788/ltcube_423878401_424137601_4FGL_J1001.1+2911_daily_bin712.fits
.....................!
real 194.31
user 188.16
sys 5.12

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/657788/ft1_filtered_4FGL_J1001.1+2911_daily_bin712.fits scfile=/scratch/kocevski/657788/ft2_4FGL_J1001.1+2911_daily_bin712.fits outfile=/scratch/kocevski/657788/cmap_423878401_424137601_4FGL_J1001.1+2911_daily_bin712.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.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37281E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7783       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4208       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25272E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4693       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .90302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7069       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2800       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91897       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=   3671.329     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2760 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.071        .41205E-05** at limit **
   2  norm          1.5799        2.1313       -.61603E-07    .10120E-03
   3  Prefactor     .10000E-03    45.828       -.50812E-06** at limit **
   4  Prefactor     .10000E-03    5.1799       -.25824E-06** at limit **
   5  Prefactor     .10000E-03    10.659        .64373E-07** at limit **
   6  Prefactor     5.7309        209.17        .62419E-05   -.28327E-05
   7  Prefactor     57.156        80.465        .26551E-07    .22615E-04
   8  Prefactor     .10000E-03    42.590       -.45552E-07** at limit **
   9  Prefactor     4.4208        6.5278       -.18262E-06    .36987E-04
  10  Prefactor     .10000E-03    16.665       -.13196E-06** at limit **
  11  Prefactor     .10003E-03    1.5552        .10855E-06** at limit **
  12  norm          3.4656        12.284       -.72638E-06    .46774E-04
  13  Prefactor     .90176        2.6167       -.11574E-05   -.17808E-03
  14  Prefactor     .10000E-03    18.808       -.33516E-06** at limit **
  15  Prefactor     .10000E-03    1.5432        .67521E-07** at limit **
  16  norm          7.7134        15.832       -.10573E-06    .44537E-04
  17  Prefactor     .10000E-03    22.281        .35962E-06** at limit **
  18  Prefactor     50.153        37.546        .26958E-06    .12743E-04
  19  Prefactor     .10000E-03    2.9331        .89210E-07** at limit **
  20  Prefactor     1.4626        5.1021       -.77364E-06    .15490E-03
  21  Prefactor     .10000E-03    1.7050       -.35072E-07** at limit **
  22  Prefactor     .10000E-03    63.466        .84111E-07** at limit **
  23  Normalizat    1.2793        .22419        .11775E-05    .25675E-04
  24  Prefactor     .91998        .23842        .23298E-06    .76196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.57988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73093
  Prefactor  = 57.1557
  Prefactor  = 0.0001
  Prefactor  = 4.42078
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 3.46565
  Prefactor  = 0.901761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.71344
  Prefactor  = 0.0001
  Prefactor  = 50.1533
  Prefactor  = 0.0001
  Prefactor  = 1.46255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27929
  Prefactor  = 0.919977
 **********
 **   18 **HESSE 
 **********

 FCN=   3671.329     FROM HESSE     STATUS=OK           399 CALLS     3159 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.009        .23209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5799        2.1079        .99137E-04   -1.5457    
   3  Prefactor     .10000E-03    45.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3569        .26928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7309        211.51        .16708E-03   -1.5229    
   7  Prefactor     57.156        81.627        .53061E-04   -1.4194    
   8  Prefactor     .10000E-03    42.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4208        6.5056        .18013E-03   -1.5287    
  10  Prefactor     .10000E-03    17.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    53.403        .14355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4656        12.257        .21711E-03   -1.5336    
  13  Prefactor     .90176        2.5676        .17099E-02   -1.5518    
  14  Prefactor     .10000E-03    18.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5485        .73504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7134        15.851        .14445E-03   -1.5152    
  17  Prefactor     .10000E-03    22.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.153        37.517        .28311E-03   -1.4290    
  19  Prefactor     .10000E-03    2.9423        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4626        5.0417        .24809E-03   -1.5466    
  21  Prefactor     .10000E-03    1.7406        .77232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    63.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2793        .26050        .21646E-03   -.84187    
  24  Prefactor     .91998        .27939        .27802E-03   -.95447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83356e-09
Minuit parameter uncertainties:
  1  2.85934e-05
  2  2.10804
  3  2.01755e-05
  4  1.22317e-05
  5  6.61771e-06
  6  69.8993
  7  81.7877
  8  6.01324e-05
  9  6.50668
  10  1.82233e-05
  11  0.00253614
  12  12.2659
  13  2.56788
  14  2.49114e-06
  15  2.87104e-06
  16  15.8599
  17  1.00003e-06
  18  37.5346
  19  1.23978e-05
  20  5.04317
  21  3.78521e-07
  22  1.53323e-05
  23  0.260767
  24  0.279825
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.536e-03  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.200e-01  2.798e-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.279e+00  2.608e-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: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657788/likelihoodResults_423878401_424137601_4FGL_J1001.1+2911_daily_bin712.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) = 3671.32936311
delta logL = -9.16419157875e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3671.32926426
delta logL = 7.20223852113e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23447E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4070       1.0000          .0000       10.000    
     3 'Normalizat'    1.2796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91964       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=   3671.329     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40241E-01    1.5687        .53343E-01    .12401E-03
   2  Index         2.5500        2.2112        .50000        .52993E-05
   3  Normalizat    1.2787        .66843E-02    .48974E-01   -.83141E-04
   4  Prefactor     .91997        .74579E-02    .45255E-01   -.69422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0402413
  Index      = 2.54998
  Normalizat = 1.27869
  Prefactor  = 0.919968
 **********
 **   18 **HESSE 
 **********

 FCN=   3671.329     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40241E-01    145.58        .12080E-02   -1.5668    
   2  Index         2.5500        8.5208        .25657E-01   -.51209    
   3  Normalizat    1.2787        .24919        .21651E-03   -.84205    
   4  Prefactor     .91997        .26987        .27802E-03   -.95447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13941e-08
Minuit parameter uncertainties:
  1  4.84663
  2  16.5335
  3  0.249428
  4  0.270267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657788': 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) = 3671.32909433
delta logL = 0.000177134627847

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.024e-02  4.847e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.550e+00  1.653e+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.200e-01  2.703e-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.279e+00  2.494e-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/657788/cmap_HighResolution_423878401_424137601_4FGL_J1001.1+2911_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-01 10:07:51.502936', job_id='657788', GAL2='0.92', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630516071.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.77e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='712' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:07:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 657788: <4FGL_J1001.1+2911_daily_bin712> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin712 150.294 29.188 423878401 424137601 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 :                                   540.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

