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


Performing analysis on: 4FGL_J1015.6+5553_monthly_bin42
RA = 153.911, Dec = 55.8893
tmin = 345859201, tmax = 348451201
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='33544', job_status='RUN', time_executed='2021-10-21 13:10:53.334976', time_epoch_executed='1634847053.34' WHERE source_name='4FGL J1015.6+5553' and cadence='monthly' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33544

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33544/ft1_4FGL_J1015.6+5553_monthly_bin42.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33544/ft1_4FGL_J1015.6+5553_monthly_bin42.fits outfile=/scratch/kocevski/33544/ft1_filteredMKT_4FGL_J1015.6+5553_monthly_bin42.fits ra=153.911 dec=55.8893 rad=12.0 tmin=345859201.0 tmax=348451201.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 30.17
user 29.38
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.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/33544/ft1_filteredMKT_4FGL_J1015.6+5553_monthly_bin42.fits evtable="EVENTS" outfile="/scratch/kocevski/33544/ft1_filtered_4FGL_J1015.6+5553_monthly_bin42.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.83
user 0.65
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33544/ft1_filtered_4FGL_J1015.6+5553_monthly_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/33544/ltcube_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.fits outfile=/scratch/kocevski/33544/expmap_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.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/33544/ltcube_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.fits
.....................!
real 190.97
user 186.56
sys 3.77

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/33544/ft1_filtered_4FGL_J1015.6+5553_monthly_bin42.fits scfile=/scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.fits outfile=/scratch/kocevski/33544/cmap_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.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.78
user 0.61
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33544/ft1_filtered_4FGL_J1015.6+5553_monthly_bin42.fits scfile=/scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.fits outfile=/scratch/kocevski/33544/cmap_HighResolution_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/33544/ft1_filtered_4FGL_J1015.6+5553_monthly_bin42.fits', '/scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.fits', expMap='/scratch/kocevski/33544/expmap_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.fits', expCube='/scratch/kocevski/33544/ltcube_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/33544/Model_4FGL_J1015.6+5553_monthly_bin42.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/33544/ft1_filtered_4FGL_J1015.6+5553_monthly_bin42.fits
Spacecraft file(s): /scratch/kocevski/33544/ft2_4FGL_J1015.6+5553_monthly_bin42.fits
Exposure map: /scratch/kocevski/33544/expmap_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.fits
Exposure cube: /scratch/kocevski/33544/ltcube_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/33544/Model_4FGL_J1015.6+5553_monthly_bin42.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) = 64057.4434987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3862       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18414E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .51740       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1913       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14968       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35609E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11497E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0690       1.0000         .10000E-03   10000.    
    12 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .97581       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6835       1.0000         .10000E-03   10000.    
    15 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23420       1.0000         .10000E-03   10000.    
    17 'norm      '    .43228       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5119       1.0000         .10000E-03   10000.    
    20 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.935       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1842       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6880       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25688E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .22984E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9633       1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.928       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .53839       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.9049       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .97632       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99399       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.

 FCN=   64057.36     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4127 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .90042        .11197E-06** at limit **
   2  Prefactor     9.3793        2.4332        .65231E-07   -.34848E-02
   3  Prefactor     .10000E-03    1.0185        .13597E-06** at limit **
   4  Prefactor     .10001E-03    70.390       -.13695E-04** at limit **
   5  norm          .51752        .24113       -.98625E-08   -.37009E-02
   6  Prefactor     8.1789        2.3022        .13956E-06   -.21982E-02
   7  Prefactor     .15247        .31916       -.57975E-07   -.56320E-04
   8  Prefactor     .10014E-03    1.1047       -.68555E-06** at limit **
   9  Prefactor     .10000E-03    2.2139        .93834E-07** at limit **
  10  Prefactor     5.0592        2.3006       -.97514E-07   -.10016E-02
  11  Prefactor     2.0687        1.5476        .86457E-07   -.21063E-03
  12  norm          .10000E-03    .66004       -.17904E-07** at limit **
  13  Prefactor     1.0365        2.8214        .77957E-06   -.11231E-02
  14  norm          1.6835        .18309        .27017E-08   -.25510E-03
  15  norm          .10003E-03    .62565       -.28867E-06** at limit **
  16  Prefactor     .23353        .50390       -.99723E-07    .43748E-03
  17  norm          .43224        .16023        .19007E-08   -.21732E-02
  18  norm          6.5350        .95191        .52313E-08    .83045E-03
  19  Prefactor     7.5028        7.3980       -.13220E-05   -.39142E-03
  20  norm          .10000E-03    2.0216       -.31457E-07** at limit **
  21  Prefactor     19.931        6.2515        .39440E-07   -.19103E-04
  22  norm          1.1846        .78674       -.66359E-08   -.21074E-02
  23  norm          1.6880        .39879        .13993E-08    .74633E-04
  24  Prefactor     .10000E-03    8.1207       -.12309E-06** at limit **
  25  Prefactor     .10000E-03    5.8936        .37501E-06** at limit **
  26  norm          1.9629        .55317       -.57959E-08   -.14865E-03
  27  Prefactor     33.973        14.828       -.73308E-06   -.19827E-03
  28  Prefactor     .54533        1.6227        .88712E-07   -.67171E-03
  29  Prefactor     .10000E-03    7.7143        .40123E-05** at limit **
  30  Prefactor     .10000E-03    .50712       -.25611E-07** at limit **
  31  Prefactor     3.9088        5.4975       -.42421E-06   -.20081E-03
  32  Normalizat    .97626        .51264E-01    .11751E-06    .68165E-03
  33  Prefactor     .99399        .57618E-01   -.39007E-07    .53144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.3793
  Prefactor  = 0.000100003
  Prefactor  = 0.000100009
  norm       = 0.517516
  Prefactor  = 8.17892
  Prefactor  = 0.15247
  Prefactor  = 0.000100136
  Prefactor  = 0.0001
  Prefactor  = 5.05918
  Prefactor  = 2.06872
  norm       = 0.0001
  Prefactor  = 1.03655
  norm       = 1.68352
  norm       = 0.000100032
  Prefactor  = 0.233528
  norm       = 0.432242
  norm       = 6.53499
  Prefactor  = 7.50278
  norm       = 0.0001
  Prefactor  = 19.9307
  norm       = 1.18457
  norm       = 1.68803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96294
  Prefactor  = 33.9727
  Prefactor  = 0.545333
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.90875
  Normalizat = 0.97626
  Prefactor  = 0.993994
 **********
 **   18 **HESSE 
 **********

 FCN=   64057.36     FROM HESSE     STATUS=OK           741 CALLS     4868 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3869        .46508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.3793        2.7530        .65405E-03   -1.5095    
   3  Prefactor     .10000E-03    16.282        .49006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    71.654        .42315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .51752        .21553        .77556E-03   -1.5564    
   6  Prefactor     8.1789        2.7204        .70040E-03   -1.5136    
   7  Prefactor     .15247        1.1487        .18995E-02   -1.5630    
   8  Prefactor     .10014E-03    1.3578        .84956E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0592        2.2456        .17872E-03   -1.5258    
  11  Prefactor     2.0687        1.5424        .24989E-03   -1.5420    
  12  norm          .10000E-03    .68706        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0365        11.064        .65446E-02   -1.5504    
  14  norm          1.6835        .18263        .33912E-04   -1.5448    
  15  norm          .10003E-03    7.8589        .37948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23353        1.8875        .24272E-02   -1.5611    
  17  norm          .43224        .15648        .59131E-03   -1.5576    
  18  norm          6.5350        .95085        .90732E-04   -1.5197    
  19  Prefactor     7.5028        7.4312        .14633E-03   -1.5160    
  20  norm          .10000E-03    2.0602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.931        6.0753        .89706E-04   -1.4815    
  22  norm          1.1846        .76830        .14053E-03   -1.5490    
  23  norm          1.6880        .39900        .75317E-04   -1.5448    
  24  Prefactor     .10000E-03    8.1641        .21454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.8971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9629        .55107        .95153E-04   -1.5428    
  27  Prefactor     33.973        14.920        .68796E-04   -1.4542    
  28  Prefactor     .54533        7.1115        .52878E-02   -1.5560    
  29  Prefactor     .10000E-03    7.8121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.9692        .33693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.9088        5.4478        .20417E-03   -1.5313    
  32  Normalizat    .97626        .58731E-01    .22753E-03   -.93830    
  33  Prefactor     .99399        .66272E-01    .26973E-03   -.92930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40809e-07
Minuit parameter uncertainties:
  1  5.84168e-05
  2  2.753
  3  0.00042505
  4  0.00163124
  5  0.215534
  6  2.72041
  7  0.836745
  8  0.000860762
  9  6.67267e-06
  10  2.24568
  11  1.54246
  12  1.99847e-06
  13  6.77423
  14  0.182632
  15  0.000995544
  16  1.32762
  17  0.15648
  18  0.950856
  19  7.43215
  20  1.25488e-06
  21  6.07545
  22  0.768304
  23  0.398997
  24  5.09824e-06
  25  1.77204e-05
  26  0.551069
  27  14.9218
  28  3.93881
  29  0.000201275
  30  5.21197e-05
  31  5.4485
  32  0.0587353
  33  0.0662769
Done.

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

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  7.503e+00  7.432e+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:  9.940e-01  6.628e-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.763e-01  5.874e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 153.911 55.889
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.14e-09 +/- 8.05e-09
Energy Flux (Fixed Index): 2.25e-06 +/- 2.23e-06

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

Saving results to:
/scratch/kocevski/33544/likelihoodResults_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.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) = 64057.2384623
delta logL = 0.117063725222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 64057.2107352
delta logL = 0.144790876962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5332       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0832       1.0000          .0000       10.000    
     3 'Normalizat'    .96951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99930       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   64057.21     FROM MIGRAD    STATUS=FAILED        88 CALLS      262 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5326        10.397        .17080E-03   -.13104E-02
   2  Index         3.0837        1.4471        .54379E-02   -.70280E-03
   3  Normalizat    .96950        .56385E-01    .22821E-03   -.30229E-02
   4  Prefactor     .99930        .65864E-01    .26911E-03   -.17243E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   64057.21     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      341 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5326        10.397        .94258E-04   -1.5237    
   2  Index         3.0837        1.4471        .64711E-03   -.39333    
   3  Normalizat    .96950        .56385E-01    .78336E-04   -.94059    
   4  Prefactor     .99930        .65864E-01    .71222E-04   -.92753    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   64057.21     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      370 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5316        8.5206        .68321E-05   -.11901E-02
   2  Index         3.0838        1.1906        .21752E-03   -.14174E-03
   3  Normalizat    .96950        .56045E-01    .45643E-04   -.11274E-02
   4  Prefactor     .99930        .65582E-01    .10764E-04   -.62523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53158
  Index      = 3.08383
  Normalizat = 0.969501
  Prefactor  = 0.999302
 **********
 **   18 **HESSE 
 **********

 FCN=   64057.21     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5316        8.5367        .13664E-05   -1.5238    
   2  Index         3.0838        1.1943        .87007E-05   -.39330    
   3  Normalizat    .96950        .56080E-01    .91286E-05   -.94059    
   4  Prefactor     .99930        .65629E-01    .21529E-05   -.92753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6398e-10
Minuit parameter uncertainties:
  1  8.53855
  2  1.20802
  3  0.0560833
  4  0.0656343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33544': 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) = 64057.210735
delta logL = 0.144791095241

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  5.532e+00  8.539e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  3.084e+00  1.208e+00  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:  9.993e-01  6.563e-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.695e-01  5.608e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 153.911 55.889
Photon Index (Free Index): 3.08 +/- 1.21
Photon Flux (Free Index): 1.31e-08 +/- 1.34e-08
Energy Flux (Free Index): 2.52e-06 +/- 2.15e-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/33544/cmap_HighResolution_345859201_348451201_4FGL_J1015.6+5553_monthly_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-03', comment='SUCCESS', photon_flux='8.14e-09', energy_flux2='2.52e-06', photon_flux_error='8.05e-09', dlogl='1.45e-01', energy_flux='2.25e-06', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-10-21 15:55:45.587549', photon_index_error2='1.21', photon_index2='3.08', ts='1.26', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.40e-08', energy_flux_error2='2.15e-06', EG='0.98', time_epoch_completed='1634856945.59', return_code='0', job_id='33544', GAL2='1.00', EG2='0.97', return_code2='0', energy_flux_error='2.23e-06', photon_flux_error2='1.34e-08', ts2='1.58', photon_index='2.55' WHERE bin_id='42' AND source_name='4FGL J1015.6+5553' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 15:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 33544: <4FGL_J1015.6+5553_monthly_bin42> in cluster <slac> Done

Job <4FGL_J1015.6+5553_monthly_bin42> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Oct 21 13:05:25 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 13:07:10 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:10 2021
Terminated at Thu Oct 21 15:55:46 2021
Results reported at Thu Oct 21 15:55:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1015.6+5553_monthly_bin42 153.911 55.8893 345859201 348451201 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 :                                   9092.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             383.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10116 sec.
    Turnaround time :                            10221 sec.

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

