/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 34 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 = 7346
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1281
RA = 146.316, Dec = 52.0053
tmin = 571363201, tmax = 571622401
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='481001', job_status='RUN', time_executed='2021-09-01 01:01:47.600120', time_epoch_executed='1630483307.6' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481001/ft1_4FGL_J0945.2+5200_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481001/ft1_4FGL_J0945.2+5200_daily_bin1281.fits outfile=/scratch/kocevski/481001/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1281.fits ra=146.316 dec=52.0053 rad=12.0 tmin=571363201.0 tmax=571622401.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 3.06
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.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/481001/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.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.66
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/481001/ltcube_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.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/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits
.....................!
real 15.85
user 13.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/481001/ltcube_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.fits outfile=/scratch/kocevski/481001/expmap_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.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/481001/ltcube_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.fits
.....................!
real 203.31
user 186.02
sys 4.37

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/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.fits scfile=/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits outfile=/scratch/kocevski/481001/cmap_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.fits scfile=/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits outfile=/scratch/kocevski/481001/cmap_HighResolution_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.fits', '/scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits', expMap='/scratch/kocevski/481001/expmap_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.fits', expCube='/scratch/kocevski/481001/ltcube_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/481001/Model_4FGL_J0945.2+5200_daily_bin1281.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/481001/ft1_filtered_4FGL_J0945.2+5200_daily_bin1281.fits
Spacecraft file(s): /scratch/kocevski/481001/ft2_4FGL_J0945.2+5200_daily_bin1281.fits
Exposure map: /scratch/kocevski/481001/expmap_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.fits
Exposure cube: /scratch/kocevski/481001/ltcube_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/481001/Model_4FGL_J0945.2+5200_daily_bin1281.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) = 960.868092082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16799E-02   1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'norm      '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '    .11152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11546E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5605.5       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .97761       1.0000         .10000E-03   10000.    
    26 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    7.9020       1.0000         .10000E-03   10000.    
    33 'norm      '    6.0715       1.0000         .10000E-03   10000.    
    34 'Prefactor '    194.91       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    8.8442       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    .51285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   960.5961     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     6261 TOTAL
                     EDM=   .61E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14547E-02    .59404         .0000    ** at limit **
   2  norm         10000.0        1.0272         .0000    ** at limit **
   3  norm         10000.0        78.891         .0000    ** at limit **
   4  Prefactor    10000.0        219.15         .0000    ** at limit **
   5  Prefactor     .10000E-03    21.573         .0000    ** at limit **
   6  Prefactor    10000.0        164.76         .0000    ** at limit **
   7  Prefactor    10000.0        1.6959         .0000    ** at limit **
   8  Prefactor    10000.0        .84120         .0000    ** at limit **
   9  Prefactor    10000.0        19.611         .0000       -.54194E-03
  10  norm         10000.0        76.642         .0000    ** at limit **
  11  norm          .11078        4.1328         .0000       -.41805E-03
  12  Prefactor    10000.0        231.48         .0000    ** at limit **
  13  Prefactor    10000.0        67.730         .0000       -.81618E-03
  14  Prefactor     .15691E-03    73.959         .0000    ** at limit **
  15  Prefactor     .10000E-03    23.200         .0000    ** at limit **
  16  Prefactor     .10463E-03    70.214         .0000    ** at limit **
  17  Prefactor     .10000E-03    8.1393         .0000    ** at limit **
  18  norm          .11058E-02    135.11         .0000    ** at limit **
  19  Prefactor     5605.5        1.0006         .0000       -.10173E-03
  20  Prefactor     .10000E-03    4.8549         .0000    ** at limit **
  21  Prefactor     .10001E-03    32.501         .0000    ** at limit **
  22  norm          .10000E-03    12.177         .0000    ** at limit **
  23  Prefactor     .33256E-02    58.309         .0000        .78902E-03
  24  Prefactor     .10001E-03    42.286         .0000    ** at limit **
  25  norm          .97756        .94196         .0000       -.23314E-04
  26  norm          .10032E-03    75.682         .0000    ** at limit **
  27  Prefactor     18.990        1.0317         .0000        .10747E-03
  28  Prefactor     .19809E-03    76.819         .0000    ** at limit **
  29  norm          .10000E-03    3.7501         .0000    ** at limit **
  30  Prefactor     .10000E-03    23.778         .0000    ** at limit **
  31  Prefactor     .10000E-03    7.5758         .0000    ** at limit **
  32  norm          7.9017        3.5775         .0000       -.11664E-03
  33  norm          6.0713        3.1830         .0000       -.10450E-03
  34  Prefactor     194.91        1.3291         .0000        .65740E-03
  35  Prefactor     .12396E-03    126.74         .0000    ** at limit **
  36  norm          8.8439        4.7009         .0000        .23843E-03
  37  Prefactor     .26465E-03    92.297         .0000    ** at limit **
  38  Normalizat    .10000E-01    .94677E-01     .0000    ** at limit **
  39  Prefactor     .51281        .23020         .0000       -.28272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00145472
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 9999.99
  norm       = 10000
  norm       = 0.11078
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000156911
  Prefactor  = 0.000100002
  Prefactor  = 0.000104631
  Prefactor  = 0.0001
  norm       = 0.00110577
  Prefactor  = 5605.54
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.00332557
  Prefactor  = 0.000100011
  norm       = 0.977563
  norm       = 0.000100316
  Prefactor  = 18.9898
  Prefactor  = 0.00019809
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 7.90171
  norm       = 6.07131
  Prefactor  = 194.909
  Prefactor  = 0.000123961
  norm       = 8.84392
  Prefactor  = 0.000264655
  Normalizat = 0.01
  Prefactor  = 0.512806
 **********
 **   18 **HESSE 
 **********

 FCN=   960.5961     FROM HESSE     STATUS=OK           996 CALLS     7257 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14547E-02    9908.9        .10190E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        8912.5        .10501E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        6337.0        .90712E-02    1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        1090.2        .90712E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.580        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        1554.6        .90712E-02    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7017.6        .10686E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        9688.5        .10368E-01    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        7728.7        .90712E-02    1.5693    
  10  norm         10000.0        252.01        .90712E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11078        2.3187        .17277E-01   -1.5641    
  12  Prefactor    10000.0        790.02        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        6465.1        .90712E-02    1.5697    
  14  Prefactor     .15691E-03    340.08        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10463E-03    300.81        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11058E-02    1843.1        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5605.5        7687.0        .20148E-03    .12141    
  20  Prefactor     .10000E-03    4.8487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    32.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .33256E-02    6591.1        .90712E-02   -1.5697    
  24  Prefactor     .10001E-03    42.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .97756        .93651        .64784E-02   -1.5510    
  26  norm          .10032E-03    75.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.990        25.502        .22979E-02   -1.4836    
  28  Prefactor     .19809E-03    197.91        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.7493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    7.5731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          7.9017        3.5808        .35660E-02   -1.5146    
  33  norm          6.0713        3.1820        .40736E-02   -1.5215    
  34  Prefactor     194.91        236.27        .72336E-03   -1.2907    
  35  Prefactor     .12396E-03    138.31        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          8.8439        4.7021        .33695E-02   -1.5113    
  37  Prefactor     .26465E-03    390.22        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .10000E-01    .92772E-01    .13329       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .51281        .24946        .65530E-01   -1.1139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91712e-06
Minuit parameter uncertainties:
  1  12.5627
  2  4.22077
  3  5.36431
  4  0.284362
  5  0.000438147
  6  1.85088
  7  1.12943
  8  7.071
  9  12.4157
  10  0.168974
  11  1.01322
  12  0.568546
  13  6.09251
  14  0.279844
  15  0.000449202
  16  0.0750233
  17  5.28146e-05
  18  2.8145
  19  6882.14
  20  1.63306e-05
  21  0.000914192
  22  2.48325e-07
  23  6.81439
  24  0.00138023
  25  0.936526
  26  0.00980235
  27  25.517
  28  0.279592
  29  1.86689e-06
  30  0.000468348
  31  2.93493e-05
  32  3.58088
  33  3.18208
  34  237.434
  35  0.115402
  36  4.70231
  37  0.510312
  38  5.88762e-07
  39  0.25
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e-04  9.142e-04  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:  5.128e-01  2.500e-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  5.888e-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: 9.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481001/likelihoodResults_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.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) = 960.596247305
delta logL = -0.00014583712823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 960.596102841
delta logL = -1.37367226216e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6485       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51279       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   960.5961     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      305 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    307.28        .12694E-01** at limit **
   2  Index         2.2935        5.7525        .50000        .43337E-07
   3  Normalizat    .10000E-01    .16858E-02    .56884E-02** at limit **
   4  Prefactor     .51281        .28095E-01    .28989E-03   -.15216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29354
  Normalizat = 0.01
  Prefactor  = 0.512806
 **********
 **   18 **HESSE 
 **********

 FCN=   960.5961     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      334 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1857.0        .18050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2935        6.0174        .50000       -.57197    
   3  Normalizat    .10000E-01    .11912E-01    .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51281        .74676E-01    .11596E-04   -1.1139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46667e-10
Minuit parameter uncertainties:
  1  0.00164487
  2  3410.45
  3  5.47531e-09
  4  0.0746906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481001': 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) = 960.596101338
delta logL = 1.29840032059e-07

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e-04  1.645e-03  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.294e+00  3.410e+03  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:  5.128e-01  7.469e-02  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  5.475e-09  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/481001/cmap_HighResolution_571363201_571622401_4FGL_J0945.2+5200_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-02', job_status='DONE', photon_flux_upper_limit='9.03e-07', time_completed='2021-09-01 01:10:58.258007', job_id='481001', GAL2='0.51', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630483858.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='1.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1281' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:10:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 481001: <4FGL_J0945.2+5200_daily_bin1281> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1281 146.316 52.0053 571363201 571622401 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 :                                   517.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            639 sec.

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

