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


Performing analysis on: 4FGL_J1015.6+5553_monthly_bin36
RA = 153.911, Dec = 55.8893
tmin = 330307201, tmax = 332899201
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='33535', job_status='RUN', time_executed='2021-10-21 13:09:41.400237', time_epoch_executed='1634846981.4' WHERE source_name='4FGL J1015.6+5553' and cadence='monthly' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33535

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33535/ft1_4FGL_J1015.6+5553_monthly_bin36.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33535/ft1_4FGL_J1015.6+5553_monthly_bin36.fits outfile=/scratch/kocevski/33535/ft1_filteredMKT_4FGL_J1015.6+5553_monthly_bin36.fits ra=153.911 dec=55.8893 rad=12.0 tmin=330307201.0 tmax=332899201.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 31.39
user 30.67
sys 0.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.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/33535/ft1_filteredMKT_4FGL_J1015.6+5553_monthly_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.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.85
user 0.66
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/33535/ltcube_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.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/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits
.....................!
real 117.64
user 116.99
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/33535/ltcube_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.fits outfile=/scratch/kocevski/33535/expmap_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.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/33535/ltcube_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.fits
.....................!
real 191.34
user 186.13
sys 4.64

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

Setting source of interest to:
4FGL J1015.6+5553 @ 153.911 55.8893

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits scfile=/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits outfile=/scratch/kocevski/33535/cmap_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.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=153.911 yref=55.8893 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.77
user 0.60
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits scfile=/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits outfile=/scratch/kocevski/33535/cmap_HighResolution_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.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=153.911 yref=55.8893 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.78
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33535/Model_4FGL_J1015.6+5553_monthly_bin36.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/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits.....................!
real 517.24
user 514.84
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits', '/scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits', expMap='/scratch/kocevski/33535/expmap_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.fits', expCube='/scratch/kocevski/33535/ltcube_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/33535/Model_4FGL_J1015.6+5553_monthly_bin36.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1015.6+5553'

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  7.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  7.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/33535/ft1_filtered_4FGL_J1015.6+5553_monthly_bin36.fits
Spacecraft file(s): /scratch/kocevski/33535/ft2_4FGL_J1015.6+5553_monthly_bin36.fits
Exposure map: /scratch/kocevski/33535/expmap_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.fits
Exposure cube: /scratch/kocevski/33535/ltcube_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/33535/Model_4FGL_J1015.6+5553_monthly_bin36.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) = 66468.658765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1010       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.086       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59655       1.0000         .10000E-03   10000.    
    12 'norm      '    .79908E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39708E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8867       1.0000         .10000E-03   10000.    
    15 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .45973       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7783       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.688       1.0000         .10000E-03   10000.    
    20 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.696       1.0000         .10000E-03   10000.    
    22 'norm      '    4.8283       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7116       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36709E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30748E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.4216       1.0000         .10000E-03   10000.    
    27 'Prefactor '    65.440       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10063E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .13740       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98177       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   66468.54     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     4156 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0868        3.5072         .0000       -.35220E-03
   2  Prefactor     1.0262        2.1924         .0000        .27965    
   3  Prefactor     3.3255        5.0571         .0000       -.20565E-02
   4  Prefactor     13.104        15.061         .0000        .16040E-02
   5  norm          2.3266        .30794         .0000       -.84738E-03
   6  Prefactor     1.1459        1.3723         .0000        .35416E-02
   7  Prefactor     .37071        .50218         .0000        .85625E-02
   8  Prefactor     .10000E-03    1.2124         .0000    ** at limit **
   9  Prefactor     .10000E-03    .92826         .0000    ** at limit **
  10  Prefactor     2.6100        1.8890         .0000        .12453    
  11  Prefactor     .59611        .96127         .0000        .47931E-02
  12  norm          .74764E-01    .49760         .0000        .44163E-02
  13  Prefactor     .10009E-03    2.7036         .0000    ** at limit **
  14  norm          1.8867        .18753         .0000       -.20040E-02
  15  norm          .10000E-03    .58171         .0000    ** at limit **
  16  Prefactor     .10000E-03    .42310         .0000    ** at limit **
  17  norm          .45967        .18479         .0000        .13464E-01
  18  norm          5.7781        .90626         .0000       -.13585E-03
  19  Prefactor     11.691        7.3960         .0000        .70390E-03
  20  norm          .10000E-03    1.2681         .0000    ** at limit **
  21  Prefactor     11.692        6.1331         .0000        .72215E-03
  22  norm          4.8283        .93837         .0000        .34002E-01
  23  norm          2.7115        .47867         .0000       -.11471E-02
  24  Prefactor     .10044E-03    22.707         .0000    ** at limit **
  25  Prefactor     .10000E-03    6.5762         .0000    ** at limit **
  26  norm          1.4217        .50245         .0000        .15311E-03
  27  Prefactor     65.256        17.703         .0000       -.11833E-02
  28  Prefactor     .11629E-03    1.7253         .0000    ** at limit **
  29  Prefactor     .10000E-03    13.743         .0000    ** at limit **
  30  Prefactor     .10000E-03    .54766         .0000    ** at limit **
  31  Prefactor     .14570        1.1392         .0000        .91595E-03
  32  Normalizat    .98190        .52248E-01     .0000       -.12181E-02
  33  Prefactor     1.0576        .58403E-01     .0000       -.80993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08682
  Prefactor  = 1.02622
  Prefactor  = 3.32553
  Prefactor  = 13.1043
  norm       = 2.32662
  Prefactor  = 1.14589
  Prefactor  = 0.370711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61003
  Prefactor  = 0.596109
  norm       = 0.0747644
  Prefactor  = 0.000100095
  norm       = 1.88669
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.45967
  norm       = 5.77809
  Prefactor  = 11.6908
  norm       = 0.0001
  Prefactor  = 11.6918
  norm       = 4.82835
  norm       = 2.71146
  Prefactor  = 0.000100441
  Prefactor  = 0.000100002
  norm       = 1.4217
  Prefactor  = 65.2564
  Prefactor  = 0.000116292
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.145703
  Normalizat = 0.981905
  Prefactor  = 1.05761
 **********
 **   18 **HESSE 
 **********

 FCN=   66468.54     FROM HESSE     STATUS=OK           751 CALLS     4907 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0868        3.5062        .16254E-03   -1.5214    
   2  Prefactor     1.0262        2.1887        .24957E-02   -1.5505    
   3  Prefactor     3.3255        5.0361        .22149E-03   -1.5343    
   4  Prefactor     13.104        15.039        .11073E-03   -1.4984    
   5  norm          2.3266        .30565        .48548E-04   -1.5403    
   6  Prefactor     1.1459        1.3310        .31555E-03   -1.5494    
   7  Prefactor     .37071        .54648        .19225E-02   -1.5586    
   8  Prefactor     .10000E-03    8.6521        .52413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .93702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6100        1.8694        .12614E-02   -1.5385    
  11  Prefactor     .59611        1.7549        .27447E-02   -1.5554    
  12  norm          .74764E-01    .52116        .67027E-01   -1.5653    
  13  Prefactor     .10009E-03    3.1325        .11308       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8867        .18736        .33555E-04   -1.5433    
  15  norm          .10000E-03    2.4177        .37768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3463        .30894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .45967        .17644        .66483E-03   -1.5572    
  18  norm          5.7781        .90371        .93838E-04   -1.5227    
  19  Prefactor     11.691        7.3991        .11718E-03   -1.5024    
  20  norm          .10000E-03    1.2809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.692        6.1858        .11714E-03   -1.5024    
  22  norm          4.8283        .94394        .43605E-03   -1.5268    
  23  norm          2.7115        .47852        .72588E-04   -1.5379    
  24  Prefactor     .10044E-03    22.961        .21302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.5814        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.4217        .50045        .10365E-03   -1.5469    
  27  Prefactor     65.256        17.760        .49611E-04   -1.4091    
  28  Prefactor     .11629E-03    2.0040        .93487E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .56098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .14570        1.7277        .10011       -1.5632    
  32  Normalizat    .98190        .60469E-01    .23650E-03   -.93639    
  33  Prefactor     1.0576        .68265E-01    .27446E-03   -.90833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96792e-07
Minuit parameter uncertainties:
  1  3.50628
  2  2.18885
  3  5.0367
  4  15.0438
  5  0.30565
  6  1.33102
  7  0.546491
  8  7.01559e-05
  9  5.64041e-06
  10  1.86948
  11  1.7551
  12  0.394527
  13  0.00108951
  14  0.187356
  15  2.46958e-05
  16  1.612e-05
  17  0.176438
  18  0.903708
  19  7.39968
  20  2.06258e-05
  21  6.18615
  22  0.943941
  23  0.478516
  24  0.00636394
  25  0.000237976
  26  0.500448
  27  17.7618
  28  0.0114282
  29  0.000334918
  30  9.82564e-06
  31  1.00315
  32  0.060473
  33  0.068271
Done.

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

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  1.169e+01  7.400e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  7.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
767    Prefactor:  1.058e+00  6.827e-02  0.000e+00  1.000e+01 ( 1.000e+00)
768        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
769        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
766   Normalization:  9.819e-01  6.047e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 153.911 55.889
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 8.02e-09
Energy Flux (Fixed Index): 3.50e-06 +/- 2.22e-06

TS (Fixed Index): 3.39
Ra Dec: 153.911 55.889
Photon Flux Upper Limit: 2.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33535/likelihoodResults_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.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) = 66468.5243772
delta logL = 0.0183511204377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 66468.5190729
delta logL = 0.0236553953873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.531       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3838       1.0000          .0000       10.000    
     3 'Normalizat'    .98425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7700E+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=   66468.52     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.531        8.4475        .11316E-03   -.57869E-04
   2  Index         2.3839        .72652        .78022E-02   -.21006E-04
   3  Normalizat    .98426        .55661E-01    .23626E-03   -.54203E-03
   4  Prefactor     1.0558        .65965E-01    .27466E-03   -.37683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5308
  Index      = 2.38385
  Normalizat = 0.984256
  Prefactor  = 1.05577
 **********
 **   18 **HESSE 
 **********

 FCN=   66468.52     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.531        8.3176        .45263E-05   -1.5000    
   2  Index         2.3839        .71474        .31209E-03   -.55064    
   3  Normalizat    .98426        .55669E-01    .94502E-05   -.93560    
   4  Prefactor     1.0558        .65995E-01    .10987E-04   -.90893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41297e-11
Minuit parameter uncertainties:
  1  8.31834
  2  0.718135
  3  0.055672
  4  0.0659997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33535': 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) = 66468.5190729
delta logL = 0.0236553982104

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  1.253e+01  8.318e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.384e+00  7.181e-01  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  7.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
767    Prefactor:  1.056e+00  6.600e-02  0.000e+00  1.000e+01 ( 1.000e+00)
768        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
769        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
766   Normalization:  9.843e-01  5.567e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 153.911 55.889
Photon Index (Free Index): 2.38 +/- 0.72
Photon Flux (Free Index): 1.09e-08 +/- 1.06e-08
Energy Flux (Free Index): 3.66e-06 +/- 2.49e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/33535/cmap_HighResolution_330307201_332899201_4FGL_J1015.6+5553_monthly_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='3.66e-06', photon_flux_error='8.02e-09', dlogl='2.37e-02', energy_flux='3.50e-06', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-10-21 16:02:12.435028', photon_index_error2='0.72', photon_index2='2.38', ts='3.39', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='2.80e-08', energy_flux_error2='2.49e-06', EG='0.98', time_epoch_completed='1634857332.44', return_code='0', job_id='33535', GAL2='1.06', EG2='0.98', return_code2='0', energy_flux_error='2.22e-06', photon_flux_error2='1.06e-08', ts2='3.43', photon_index='2.55' WHERE bin_id='36' AND source_name='4FGL J1015.6+5553' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 16:02:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 33535: <4FGL_J1015.6+5553_monthly_bin36> in cluster <slac> Done

Job <4FGL_J1015.6+5553_monthly_bin36> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Oct 21 13:05:24 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 13:07:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 13:07:02 2021
Terminated at Thu Oct 21 16:02:13 2021
Results reported at Thu Oct 21 16:02:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1015.6+5553_monthly_bin36 153.911 55.8893 330307201 332899201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1015.6+5553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9508.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             392.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10511 sec.
    Turnaround time :                            10609 sec.

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

