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


Performing analysis on: 4FGL_J1057.2+5510_monthly_bin118
RA = 164.318, Dec = 55.1804
tmin = 542851201, tmax = 545443201
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='304848', job_status='RUN', time_executed='2021-10-22 06:15:33.580760', time_epoch_executed='1634908533.58' WHERE source_name='4FGL J1057.2+5510' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304848

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304848/ft1_4FGL_J1057.2+5510_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304848/ft1_4FGL_J1057.2+5510_monthly_bin118.fits outfile=/scratch/kocevski/304848/ft1_filteredMKT_4FGL_J1057.2+5510_monthly_bin118.fits ra=164.318 dec=55.1804 rad=12.0 tmin=542851201.0 tmax=545443201.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 14.52
user 14.08
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.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/304848/ft1_filteredMKT_4FGL_J1057.2+5510_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/304848/ltcube_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.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/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits
.....................!
real 31.52
user 31.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/304848/ltcube_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.fits outfile=/scratch/kocevski/304848/expmap_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.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/304848/ltcube_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.fits
.....................!
real 149.97
user 145.69
sys 4.03

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

Setting source of interest to:
4FGL J1057.2+5510 @ 164.318 55.1804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits scfile=/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits outfile=/scratch/kocevski/304848/cmap_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.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=164.318 yref=55.1804 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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits scfile=/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits outfile=/scratch/kocevski/304848/cmap_HighResolution_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.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=164.318 yref=55.1804 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.52
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304848/Model_4FGL_J1057.2+5510_monthly_bin118.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/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits.............!
real 12.27
user 11.17
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits', '/scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits', expMap='/scratch/kocevski/304848/expmap_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.fits', expCube='/scratch/kocevski/304848/ltcube_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304848/Model_4FGL_J1057.2+5510_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1057.2+5510'

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  5.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/304848/ft1_filtered_4FGL_J1057.2+5510_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/304848/ft2_4FGL_J1057.2+5510_monthly_bin118.fits
Exposure map: /scratch/kocevski/304848/expmap_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.fits
Exposure cube: /scratch/kocevski/304848/ltcube_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304848/Model_4FGL_J1057.2+5510_monthly_bin118.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) = 148.83268491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    147.44       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.691       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.561       1.0000         .10000E-03   10000.    
     8 'norm      '    16.835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1956.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13720E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    589.24       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.989       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79241E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   148.1666     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     4059 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    127.21       -.87251E-04** at limit **
   2  Prefactor     147.44        87.288       -.41328E-06   -.97492E-04
   3  Prefactor     37.687        55.663       -.54952E-05   -.14566E-04
   4  norm          .10000E-03    37.708       -.34120E-05** at limit **
   5  Prefactor     .10000E-03    221.15        .41027E-04** at limit **
   6  norm          .10000E-03    1.4840       -.32820E-07** at limit **
   7  Prefactor     53.575        59.543        .41537E-05   -.24597E-04
   8  norm          16.832        26.370       -.33934E-05   -.45707E-06
   9  Prefactor     .10000E-03    269.06        .85978E-04** at limit **
  10  norm          .10000E-03    101.36       -.59227E-05** at limit **
  11  Prefactor     .10000E-03    325.67        .80871E-04** at limit **
  12  norm          .10000E-03    12.671       -.12824E-06** at limit **
  13  norm          .10000E-03    11.753       -.13552E-06** at limit **
  14  Prefactor     1956.6        1482.4        .15484E-03   -.12811E-05
  15  Prefactor     .10000E-03    941.96       -.65030E-03** at limit **
  16  norm          .10000E-03    15.945        .60460E-08** at limit **
  17  Prefactor     .10000E-03    389.90        .28792E-04** at limit **
  18  Prefactor     .10000E-03    155.76       -.77663E-04** at limit **
  19  Prefactor     .10000E-03    505.09       -.11919E-03** at limit **
  20  norm          .10000E-03    461.93       -.59889E-04** at limit **
  21  Prefactor     .10000E-03    63.108       -.25483E-04** at limit **
  22  Prefactor     .10000E-03    277.39        .89058E-04** at limit **
  23  norm          589.33        583.99        .35124E-04   -.23681E-05
  24  Prefactor     45.989        42.173       -.70049E-07   -.59359E-04
  25  norm          .10000E-03    84.301        .75424E-04** at limit **
  26  Prefactor     .10000E-03    366.26        .52451E-04** at limit **
  27  Prefactor     .10000E-03    261.69        .82585E-04** at limit **
  28  Prefactor     .10000E-03    529.91       -.15386E-03** at limit **
  29  norm          .10000E-03    40.166        .61040E-05** at limit **
  30  Normalizat    .10000E-01    .16342       -.13325E-05** at limit **
  31  Prefactor     .15249E-11    .14089       -.60491E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 147.439
  Prefactor  = 37.687
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.5753
  norm       = 16.8319
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1956.62
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 589.328
  Prefactor  = 45.9886
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.52489e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   148.1666     FROM HESSE     STATUS=OK           592 CALLS     4651 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.22        .13458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     147.44        87.101        .33188E-04   -1.3273    
   3  Prefactor     37.687        55.816        .65283E-04   -1.4479    
   4  norm          .10000E-03    37.708        .73163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    221.17        .17771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4855        .14502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     53.575        59.772        .54805E-04   -1.4243    
   8  norm          16.832        26.392        .73512E-04   -1.4887    
   9  Prefactor     .10000E-03    269.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    101.36        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    326.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.690        .42381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.764        .40823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1956.6        1482.4        .50421E-04   -.65439    
  15  Prefactor     .10000E-03    942.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.945        .47559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    389.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    155.76        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    505.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    461.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.109        .94692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    277.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          589.33        583.99        .84932E-04   -1.0804    
  24  Prefactor     45.989        42.120        .59123E-04   -1.4351    
  25  norm          .10000E-03    84.298        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    366.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    261.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    529.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    40.166        .75514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .16403        .15239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .15249E-11    .14097        .14158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15556e-10
Minuit parameter uncertainties:
  1  3.76961e-05
  2  87.177
  3  55.8938
  4  1.19333e-05
  5  0.000210526
  6  2.25632e-06
  7  59.839
  8  26.4101
  9  0.000537843
  10  2.24972e-05
  11  0.00112485
  12  3.41401e-05
  13  3.11533e-05
  14  1519.22
  15  0.000208977
  16  1.53122e-05
  17  0.000300207
  18  4.78095e-05
  19  0.000111447
  20  1.21512e-05
  21  1.39676e-05
  22  6.79007e-05
  23  590.151
  24  42.1477
  25  1.85553e-05
  26  6.18661e-05
  27  2.86949e-05
  28  2.40601e-05
  29  3.41689e-08
  30  1.82435e-06
  31  9.29522e-07
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  2.090e-04  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  1.525e-12  9.295e-07  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.000e-02  1.824e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.318 55.180
Photon Flux Upper Limit: 8.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304848/likelihoodResults_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.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) = 148.166650197
delta logL = -5.25033877352e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 148.166650196
delta logL = -5.2490721032e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96320E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8209       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38725E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+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=   148.1666     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      226 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    226.90        .18143E-01** at limit **
   2  Index         1.9275        5.7087        .50000        .50955E-06
   3  Normalizat    .10000E-01    .95271E-04    .15239E-02** at limit **
   4  Prefactor     .34117E-11    .81816E-04    .14158E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.9275
  Normalizat = 0.01
  Prefactor  = 3.41172e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   148.1666     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      255 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1190.6        .33487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9275        8.2626        .50000       -.66175    
   3  Normalizat    .10000E-01    .51845E-03    .30478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34117E-11    .44524E-03    .28316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40761e-09
Minuit parameter uncertainties:
  1  0.00279796
  2  366.151
  3  1.00101e-07
  4  7.79502e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304848': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 148.166644959
delta logL = -1.18569687402e-08

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  2.798e-03  1.000e-04  1.000e+04 ( 1.000e-15)
390        Index:  1.927e+00  3.662e+02  0.000e+00  1.000e+01 (-1.000e+00)
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  3.412e-12  7.795e-08  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.000e-02  1.001e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.318 55.180

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/304848/cmap_HighResolution_542851201_545443201_4FGL_J1057.2+5510_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-02', job_status='DONE', photon_flux_upper_limit='8.15e-07', time_completed='2021-10-22 06:22:22.763660', job_id='304848', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1634908942.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='118' AND source_name='4FGL J1057.2+5510' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 06:22:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 304848: <4FGL_J1057.2+5510_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1057.2+5510_monthly_bin118> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Oct 22 06:15:17 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 06:15:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 06:15:19 2021
Terminated at Fri Oct 22 06:22:23 2021
Results reported at Fri Oct 22 06:22:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_monthly_bin118 164.318 55.1804 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1057.2+5510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   384.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             275.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   423 sec.
    Turnaround time :                            426 sec.

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

