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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin2
RA = 172.755, Dec = 38.2565
tmin = 239846401, tmax = 240105601
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='894318', job_status='RUN', time_executed='2021-09-04 02:22:34.727366', time_epoch_executed='1630747354.73' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894318/ft1_4FGL_J1131.0+3815_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894318/ft1_4FGL_J1131.0+3815_daily_bin2.fits outfile=/scratch/kocevski/894318/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin2.fits ra=172.755 dec=38.2565 rad=12.0 tmin=239846401.0 tmax=240105601.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.48
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.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/894318/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/894318/ltcube_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.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/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits
.....................!
real 13.42
user 13.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/894318/ltcube_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.fits outfile=/scratch/kocevski/894318/expmap_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.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/894318/ltcube_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.fits
.....................!
real 191.79
user 186.04
sys 5.20

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.0+3815 @ 172.755 38.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits scfile=/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits outfile=/scratch/kocevski/894318/cmap_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.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=172.755 yref=38.2565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits scfile=/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits outfile=/scratch/kocevski/894318/cmap_HighResolution_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.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=172.755 yref=38.2565 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894318/Model_4FGL_J1131.0+3815_daily_bin2.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/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits.....................!
real 47.25
user 45.80
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits', '/scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits', expMap='/scratch/kocevski/894318/expmap_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.fits', expCube='/scratch/kocevski/894318/ltcube_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894318/Model_4FGL_J1131.0+3815_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.0+3815'

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.699e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/894318/ft1_filtered_4FGL_J1131.0+3815_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/894318/ft2_4FGL_J1131.0+3815_daily_bin2.fits
Exposure map: /scratch/kocevski/894318/expmap_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.fits
Exposure cube: /scratch/kocevski/894318/ltcube_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894318/Model_4FGL_J1131.0+3815_daily_bin2.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) = 5308.47098588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.801       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.706       1.0000         .10000E-03   10000.    
     7 'norm      '    .87897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8884       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    73.797       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.596       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5009       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .39593       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.955       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0072       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3632       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .21213       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11333E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81812       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5308.455     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4149 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.798        31.092       -.14304E-06   -.54654E-05
   2  Prefactor     8.6144        5.0643        .45418E-08   -.17258E-04
   3  Prefactor     4.0673        5.5440        .22368E-06   -.19827E-04
   4  Prefactor     .10000E-03    9.3320       -.40646E-08** at limit **
   5  Prefactor     18.667        28.155       -.10723E-06   -.38379E-04
   6  Prefactor     59.671        82.191       -.14416E-06   -.20085E-04
   7  norm          .87890        .30645       -.36973E-08   -.81976E-04
   8  Prefactor     .69270        1.8388        .69925E-06    .22486E-03
   9  Prefactor     .10000E-03    4.3937       -.10783E-07** at limit **
  10  Prefactor     7.8889        11.388        .58464E-07   -.63518E-05
  11  Prefactor     .10000E-03    31.446       -.74141E-07** at limit **
  12  norm          73.795        21.407       -.58255E-07   -.42581E-04
  13  norm          5.2757        57.529        .40388E-06   -.13384E-05
  14  Prefactor     .10000E-03    1.5115        .81282E-07** at limit **
  15  Prefactor     35.326        42.724       -.34726E-06   -.23359E-04
  16  Prefactor     32.613        20.541        .19129E-06   -.50997E-04
  17  norm          .10000E-03    2.0242        .32234E-06** at limit **
  18  Prefactor     .10000E-03    26.525        .19316E-06** at limit **
  19  Prefactor     4.5002        7.2965        .42486E-06   -.79724E-04
  20  Prefactor     .10000E-03    78.254        .34099E-06** at limit **
  21  norm          .39585        .99082       -.19906E-06   -.64488E-04
  22  norm          .10000E-03    3.7285       -.23682E-06** at limit **
  23  Prefactor     50.943        33.792       -.72485E-07   -.97468E-04
  24  Prefactor     3.0074        3.7865        .15026E-07   -.83993E-05
  25  Prefactor     4.3348        69.786        .12715E-05   -.90705E-05
  26  Prefactor     .10000E-03    28.068        .21953E-06** at limit **
  27  norm          .21194        1.1850        .99330E-06   -.11513E-03
  28  Prefactor     .10000E-03    58.687        .19853E-06** at limit **
  29  Prefactor     .10000E-03    4.6441        .14711E-06** at limit **
  30  Normalizat    .81841        .18432        .16171E-06   -.13072E-03
  31  Prefactor     1.1054        .21402       -.82509E-06   -.49732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7982
  Prefactor  = 8.61441
  Prefactor  = 4.06726
  Prefactor  = 0.0001
  Prefactor  = 18.6674
  Prefactor  = 59.6707
  norm       = 0.878902
  Prefactor  = 0.692698
  Prefactor  = 0.0001
  Prefactor  = 7.88893
  Prefactor  = 0.0001
  norm       = 73.7949
  norm       = 5.27571
  Prefactor  = 0.0001
  Prefactor  = 35.3264
  Prefactor  = 32.613
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.50018
  Prefactor  = 0.0001
  norm       = 0.395853
  norm       = 0.0001
  Prefactor  = 50.9425
  Prefactor  = 3.00737
  Prefactor  = 4.33477
  Prefactor  = 0.0001
  norm       = 0.211937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.818413
  Prefactor  = 1.1054
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.455     FROM HESSE     STATUS=OK           624 CALLS     4773 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.798        31.148        .71053E-04   -1.4580    
   2  Prefactor     8.6144        5.0636        .12177E-03   -1.5121    
   3  Prefactor     4.0673        5.5451        .18139E-03   -1.5305    
   4  Prefactor     .10000E-03    9.3347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.667        28.145        .92621E-04   -1.4844    
   6  Prefactor     59.671        82.148        .51924E-04   -1.4161    
   7  norm          .87890        .30711        .22610E-04   -1.5520    
   8  Prefactor     .69270        1.7471        .16321E-02   -1.5542    
   9  Prefactor     .10000E-03    4.3967        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8889        11.427        .14276E-03   -1.5146    
  11  Prefactor     .10000E-03    31.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          73.795        21.404        .46737E-04   -1.3988    
  13  norm          5.2757        57.637        .17497E-03   -1.5249    
  14  Prefactor     .10000E-03    1.5271        .86916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.326        42.204        .67428E-04   -1.4519    
  16  Prefactor     32.613        20.446        .70184E-04   -1.4565    
  17  norm          .10000E-03    2.0831        .20090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5002        7.2514        .18978E-03   -1.5284    
  20  Prefactor     .10000E-03    78.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .39585        .95497        .10143E-03   -1.5582    
  22  norm          .10000E-03    3.7262        .13732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.943        33.756        .56182E-04   -1.4279    
  24  Prefactor     3.0074        3.7797        .15430E-03   -1.5361    
  25  Prefactor     4.3348        67.414        .19283E-03   -1.5292    
  26  Prefactor     .10000E-03    28.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .21194        1.1469        .14723E-03   -1.5616    
  28  Prefactor     .10000E-03    59.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.6772        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81841        .21286        .25804E-03   -.99389    
  31  Prefactor     1.1054        .24730        .27238E-03   -.89294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35266e-10
Minuit parameter uncertainties:
  1  31.1641
  2  5.06385
  3  5.54575
  4  4.11361e-07
  5  28.1648
  6  82.3046
  7  0.307111
  8  1.74719
  9  4.25407e-07
  10  11.4297
  11  6.00514e-05
  12  21.4063
  13  34.9181
  14  1.03965e-07
  15  42.24
  16  20.4506
  17  2.14071e-06
  18  1.63656e-05
  19  7.25278
  20  1.35407e-05
  21  0.955008
  22  1.79112e-06
  23  33.7689
  24  3.77999
  25  34.2348
  26  5.19435e-06
  27  0.985849
  28  0.000167149
  29  4.71121e-07
  30  0.213079
  31  0.247553
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  2.141e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.105e+00  2.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.184e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894318/likelihoodResults_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.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) = 5308.45681064
delta logL = -0.00228754391537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5308.45452333
delta logL = -2.33057107835e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5524       1.0000          .0000       5.0000    
     3 'Normalizat'    .81846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5308.455     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0095        .90712E-02** at limit **
   2  alpha         2.5560        3.5667        .41163       -.89694E-05
   3  Normalizat    .81841        .17176        .43851E-01   -.14967E-04
   4  Prefactor     1.1054        .20856        .61587E-01   -.12410E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.55604
  Normalizat = 0.818415
  Prefactor  = 1.1054
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.455     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0836        .20093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5560        3.5645        .50000        .22419E-01
   3  Normalizat    .81841        .19890        .25804E-03   -.99389    
   4  Prefactor     1.1054        .24153        .27238E-03   -.89294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16258e-10
Minuit parameter uncertainties:
  1  2.46007e-05
  2  2.49941
  3  0.19908
  4  0.241767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894318': 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) = 5308.45452307
delta logL = 2.56723069469e-08

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  2.460e-05  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.556e+00  2.499e+00  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.105e+00  2.418e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.184e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.755 38.257

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/894318/cmap_HighResolution_239846401_240105601_4FGL_J1131.0+3815_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 02:37:25.238751', job_id='894318', GAL2='1.11', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630748245.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='2' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:37:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 894318: <4FGL_J1131.0+3815_daily_bin2> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin2> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 02:21:59 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:22:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:22:24 2021
Terminated at Sat Sep  4 02:37:26 2021
Results reported at Sat Sep  4 02:37:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin2 172.755 38.2565 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   888.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            927 sec.

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

