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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1182
RA = 146.316, Dec = 52.0053
tmin = 545702401, tmax = 545961601
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='479532', job_status='RUN', time_executed='2021-09-01 00:59:21.208037', time_epoch_executed='1630483161.21' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479532/ft1_4FGL_J0945.2+5200_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479532/ft1_4FGL_J0945.2+5200_daily_bin1182.fits outfile=/scratch/kocevski/479532/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1182.fits ra=146.316 dec=52.0053 rad=12.0 tmin=545702401.0 tmax=545961601.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 4.14
user 3.78
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.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/479532/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1182.fits evtable="EVENTS" outfile="/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.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.59
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/479532/ltcube_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.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/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits
.....................!
real 12.38
user 11.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/479532/ltcube_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.fits outfile=/scratch/kocevski/479532/expmap_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.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/479532/ltcube_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.fits
.....................!
real 191.67
user 186.21
sys 4.54

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits scfile=/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits outfile=/scratch/kocevski/479532/cmap_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.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=146.316 yref=52.0053 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits scfile=/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits outfile=/scratch/kocevski/479532/cmap_HighResolution_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.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=146.316 yref=52.0053 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479532/Model_4FGL_J0945.2+5200_daily_bin1182.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/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits.............................!
real 16.17
user 14.92
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits', '/scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits', expMap='/scratch/kocevski/479532/expmap_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.fits', expCube='/scratch/kocevski/479532/ltcube_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479532/Model_4FGL_J0945.2+5200_daily_bin1182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/479532/ft1_filtered_4FGL_J0945.2+5200_daily_bin1182.fits
Spacecraft file(s): /scratch/kocevski/479532/ft2_4FGL_J0945.2+5200_daily_bin1182.fits
Exposure map: /scratch/kocevski/479532/expmap_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.fits
Exposure cube: /scratch/kocevski/479532/ltcube_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479532/Model_4FGL_J0945.2+5200_daily_bin1182.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 390.59088215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 388.274429904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6664       1.0000         .10000E-03   10000.    
     2 'norm      '    .61997E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .57696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0475       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.530       1.0000         .10000E-03   10000.    
    10 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    130.52       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.692       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0514       1.0000         .10000E-03   10000.    
    18 'norm      '    20.855       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31942E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .56597E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3670       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8846       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6918       1.0000         .10000E-03   10000.    
    26 'norm      '    4.4723       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11289       1.0000         .10000E-03   10000.    
    28 'Prefactor '    79.360       1.0000         .10000E-03   10000.    
    29 'norm      '    34.351       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
    31 'Prefactor '    9.2455       1.0000         .10000E-03   10000.    
    32 'norm      '    4.6580       1.0000         .10000E-03   10000.    
    33 'norm      '    1.7184       1.0000         .10000E-03   10000.    
    34 'Prefactor '    6.1394       1.0000         .10000E-03   10000.    
    35 'Prefactor '    5.7572       1.0000         .10000E-03   10000.    
    36 'norm      '    2.5251       1.0000         .10000E-03   10000.    
    37 'Prefactor '    8.2557       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.5615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   388.2127     FROM MIGRAD    STATUS=CONVERGED    312 CALLS      509 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6664        1.0188         .0000         .0000    
   2  norm          .10000E-03    .27685        .15024E-05** at limit **
   3  norm          .10000E-03    .33530        .68894E-06** at limit **
   4  Prefactor     3.8697        1.0086         .0000         .0000    
   5  Prefactor     1.0475        1.2416         .0000         .0000    
   6  Prefactor     10.965        .99202       -.29936E-05    .21153E-04
   7  Prefactor     .10000E-03    .24601       -.20323E-04** at limit **
   8  Prefactor     .13752E-03    .89337E-01    .39157E-04** at limit **
   9  Prefactor     12.390        .99519        .72866E-06   -.36038E-04
  10  norm          .10000E-03    .20571        .16921E-05** at limit **
  11  norm          1.2454        1.1194         .0000         .0000    
  12  Prefactor     22.363        1.0031       -.50014E-05    .69882E-04
  13  Prefactor     .10000E-03    .20571        .44908E-06** at limit **
  14  Prefactor     167.83        1.1318        .96070E-05   -.21787E-01
  15  Prefactor     .10000E-03    .22625       -.74133E-05** at limit **
  16  Prefactor     .15206E-02    .60223E-02   -.10402E-03** at limit **
  17  Prefactor     1.0514        1.2363         .0000         .0000    
  18  norm          21.817        1.0230       -.24984E-05    .13115E-03
  19  Prefactor     .10000E-03    .21075        .10062E-04** at limit **
  20  Prefactor     2.8066        1.0168         .0000         .0000    
  21  Prefactor     .10000E-03    .21633        .90018E-06** at limit **
  22  norm          1.0299        1.2706         .0000         .0000    
  23  Prefactor     .10000E-03    .21754       -.96364E-05** at limit **
  24  Prefactor     8.8846        1.0016         .0000         .0000    
  25  norm          1.6918        1.0522         .0000         .0000    
  26  norm          .11572E-03    .56642E-01   -.59784E-04** at limit **
  27  Prefactor     .10000E-03    .22908        .25138E-06** at limit **
  28  Prefactor     73.622        .96347        .75214E-05   -.32155E-02
  29  norm          34.823        1.0069       -.15064E-05   -.10813E-03
  30  Prefactor     7.3057        1.0024         .0000         .0000    
  31  Prefactor     9.2455        1.0015         .0000         .0000    
  32  norm          4.6580        1.0059         .0000         .0000    
  33  norm          1.7184        1.0502         .0000         .0000    
  34  Prefactor     .30772E-03    .41020E-01   -.10165E-04** at limit **
  35  Prefactor     5.7572        1.0038         .0000         .0000    
  36  norm          2.5251        1.0211         .0000         .0000    
  37  Prefactor     .25739E-01    .55853E-01    .19087E-04   -.48062E-02
  38  Normalizat    .10000E-01    .25712       -.49875E-05** at limit **
  39  Prefactor     1.5770        1.0472        .50236E-06    .18813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66641
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.86972
  Prefactor  = 1.04748
  Prefactor  = 10.9651
  Prefactor  = 0.0001
  Prefactor  = 0.000137515
  Prefactor  = 12.3899
  norm       = 0.0001
  norm       = 1.2454
  Prefactor  = 22.3626
  Prefactor  = 0.0001
  Prefactor  = 167.826
  Prefactor  = 0.0001
  Prefactor  = 0.00152055
  Prefactor  = 1.05136
  norm       = 21.8168
  Prefactor  = 0.000100004
  Prefactor  = 2.80665
  Prefactor  = 0.0001
  norm       = 1.02988
  Prefactor  = 0.000100002
  Prefactor  = 8.8846
  norm       = 1.69183
  norm       = 0.00011572
  Prefactor  = 0.0001
  Prefactor  = 73.6223
  norm       = 34.823
  Prefactor  = 7.30573
  Prefactor  = 9.24549
  norm       = 4.65798
  norm       = 1.71843
  Prefactor  = 0.000307715
  Prefactor  = 5.75724
  norm       = 2.52509
  Prefactor  = 0.0257385
  Normalizat = 0.01
  Prefactor  = 1.57705
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   388.2127     FROM HESSE     STATUS=FAILED         9 CALLS      518 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     558.90        556.14         .0000       -1.5381    
   2  norm          .10000E-03    .27685        .15024E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .33530        .68894E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8697        1.0086         .0000       -1.5315    
   5  Prefactor     1.0475        1.2416         .0000       -1.5503    
   6  Prefactor     10.965        .99202       -.29936E-05   -1.5046    
   7  Prefactor     .10000E-03    .24601       -.20323E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13752E-03    .89337E-01    .39157E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.390        .99519        .72866E-06   -1.5004    
  10  norm          .10000E-03    .20571        .16921E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2454        1.1194         .0000       -1.5485    
  12  Prefactor     22.363        1.0031       -.50014E-05   -1.4762    
  13  Prefactor     .10000E-03    .20571        .44908E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     167.83        1.1318        .96070E-05   -1.3110    
  15  Prefactor     .10000E-03    .22625       -.74133E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15206E-02    .60223E-02   -.10402E-03   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0514        1.2363         .0000       -1.5503    
  18  norm          21.817        1.0230       -.24984E-05   -1.4773    
  19  Prefactor     .10000E-03    .21075        .10062E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8066        1.0168         .0000       -1.5373    
  21  Prefactor     .10000E-03    .21633        .90018E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0299        1.2706         .0000       -1.5505    
  23  Prefactor     .10000E-03    .21754       -.96364E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.8846        1.0016         .0000       -1.5112    
  25  norm          1.6918        1.0522         .0000       -1.5448    
  26  norm          .11572E-03    .56642E-01   -.59784E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .22908        .25138E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     73.622        .96347        .75214E-05   -1.3990    
  29  norm          34.823        1.0069       -.15064E-05   -1.4527    
  30  Prefactor     7.3057        1.0024         .0000       -1.5167    
  31  Prefactor     9.2455        1.0015         .0000       -1.5100    
  32  norm          4.6580        1.0059         .0000       -1.5276    
  33  norm          1.7184        1.0502         .0000       -1.5446    
  34  Prefactor     .30772E-03    .41020E-01   -.10165E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     5.7572        1.0038         .0000       -1.5228    
  36  norm          2.5251        1.0211         .0000       -1.5390    
  37  Prefactor     .25739E-01    .55853E-01    .19087E-04   -1.5740    
  38  Normalizat    .10000E-01    .25712       -.49875E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     1.5770        1.0472        .50236E-06   -.75404    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.93587e-10
Minuit parameter uncertainties:
  1  1.01876
  2  6.14565e-06
  3  1.18997e-05
  4  1.0086
  5  1.24158
  6  0.992018
  7  1.06038e-05
  8  0.00366142
  9  0.995195
  10  2.23388e-06
  11  1.11944
  12  1.00313
  13  1.48483e-06
  14  1.13181
  15  2.01467e-05
  16  0.00584978
  17  1.23632
  18  1.02304
  19  5.98649e-05
  20  1.01682
  21  5.04173e-06
  22  1.27062
  23  3.99228e-05
  24  1.00159
  25  1.05216
  26  0.00188723
  27  3.66863e-08
  28  0.96347
  29  1.00693
  30  1.00236
  31  1.00147
  32  1.00588
  33  1.05024
  34  0.005838
  35  1.00382
  36  1.02109
  37  0.0558536
  38  2.5842e-07
  39  1.06218
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 388.212660437

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e-04  5.042e-06  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  1.577e+00  1.062e+00  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.000e-02  2.584e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 3.47e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479532/likelihoodResults_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.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) = 388.212697791
delta logL = -3.73535686435e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 388.212698883
delta logL = -3.8445706366e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95082E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7179       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   388.2127     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.12        .90837E-02** at limit **
   2  Index         2.7175        6.3498        .50000        .31827E-07
   3  Normalizat    .10000E-01    .43347        .20965    ** at limit **
   4  Prefactor     1.5770        .54755        .61702E-01   -.11230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.71749
  Normalizat = 0.01
  Prefactor  = 1.57704
 **********
 **   18 **HESSE 
 **********

 FCN=   388.2127     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    120.33        .18167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7175        6.3472        .50000       -.47406    
   3  Normalizat    .10000E-01    .46499        .81643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5770        .50944        .27279E-03   -.75404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40281e-12
Minuit parameter uncertainties:
  1  2.72298e-05
  2  4.45088
  3  2.68882e-08
  4  0.511114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479532': 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) = 388.212660437
delta logL = 5.85487214266e-12

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e-04  2.723e-05  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.717e+00  4.451e+00  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  1.577e+00  5.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.000e-02  2.689e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.316 52.005

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/479532/cmap_HighResolution_545702401_545961601_4FGL_J0945.2+5200_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-01', job_status='DONE', photon_flux_upper_limit='3.47e-06', time_completed='2021-09-01 01:07:22.518796', job_id='479532', GAL2='1.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630483642.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.58', dlogl='5.85e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1182' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 479532: <4FGL_J0945.2+5200_daily_bin1182> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1182> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 00:55:40 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 00:55:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 00:55:42 2021
Terminated at Wed Sep  1 01:07:22 2021
Results reported at Wed Sep  1 01:07:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1182 146.316 52.0053 545702401 545961601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   345.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             154.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

