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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1474
RA = 146.316, Dec = 52.0053
tmin = 621388801, tmax = 621648001
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='481301', job_status='RUN', time_executed='2021-09-01 01:01:46.855869', time_epoch_executed='1630483306.86' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481301/ft1_4FGL_J0945.2+5200_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481301/ft1_4FGL_J0945.2+5200_daily_bin1474.fits outfile=/scratch/kocevski/481301/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1474.fits ra=146.316 dec=52.0053 rad=12.0 tmin=621388801.0 tmax=621648001.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.66
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.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/481301/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1474.fits evtable="EVENTS" outfile="/scratch/kocevski/481301/ft1_filtered_4FGL_J0945.2+5200_daily_bin1474.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.95
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481301/ft1_filtered_4FGL_J0945.2+5200_daily_bin1474.fits" evtable="EVENTS" scfile=/scratch/kocevski/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.fits sctable="SC_DATA" outfile=/scratch/kocevski/481301/ltcube_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.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/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.fits
.....................!
real 12.25
user 11.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481301/ft1_filtered_4FGL_J0945.2+5200_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/481301/ltcube_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.fits outfile=/scratch/kocevski/481301/expmap_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.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/481301/ltcube_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.fits
.....................!
real 191.90
user 184.77
sys 3.71

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/481301/ft1_filtered_4FGL_J0945.2+5200_daily_bin1474.fits scfile=/scratch/kocevski/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.fits outfile=/scratch/kocevski/481301/cmap_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481301/ft1_filtered_4FGL_J0945.2+5200_daily_bin1474.fits scfile=/scratch/kocevski/481301/ft2_4FGL_J0945.2+5200_daily_bin1474.fits outfile=/scratch/kocevski/481301/cmap_HighResolution_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10922E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1155       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .24159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0646       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.300       1.0000         .10000E-03   10000.    
    18 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.549       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.482       1.0000         .10000E-03   10000.    
    25 'norm      '    .13691E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    55.126       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    13.180       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    5.5113       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .11511E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    181.86       1.0000         .10000E-03   10000.    
    36 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .59703       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .82604       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=   2246.137     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     5152 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5843       -.85748E-06** at limit **
   2  norm          .10000E-03    11.796        .39873E-06** at limit **
   3  norm          10.601        7.1326       -.88129E-05   -.64432E-02
   4  Prefactor     56.565        1.9538        .25583E-06    .49803E-04
   5  Prefactor     .10000E-03    8.1539        .16599E-05** at limit **
   6  Prefactor     1.6320        2.5394       -.93150E-07   -.32551E-03
   7  Prefactor     2.0110        1.5058       -.30728E-05   -.15496E-03
   8  Prefactor     .10262E-03    40.470       -.21802E-04** at limit **
   9  Prefactor     5.1168        6.5028        .96073E-05    .25112E-02
  10  norm          .10000E-03    1.8540        .39198E-06** at limit **
  11  norm          .24120        .90073       -.29993E-06   -.40186E-04
  12  Prefactor     1.0548        5.0096       -.62516E-05   -.53405E-03
  13  Prefactor     .10000E-03    3.3179       -.38775E-06** at limit **
  14  Prefactor     .10360E-03    1388.3       -.49917E-04** at limit **
  15  Prefactor     6.6828        2.9150       -.52261E-05   -.10537E-02
  16  Prefactor     .10630E-03    224.17        .77248E-04** at limit **
  17  Prefactor     26.300        1.1634       -.19974E-06    .12270E-03
  18  norm          .10000E-03    12.719       -.53408E-06** at limit **
  19  Prefactor     .10113E-03    23.223       -.81193E-05** at limit **
  20  Prefactor     16.437        1.2913        .58079E-06    .12766E-03
  21  Prefactor     11.550        1.8901        .18937E-06    .50383E-03
  22  norm          .10000E-03    9.0991        .10577E-05** at limit **
  23  Prefactor     .10153E-03    22.666        .99829E-05** at limit **
  24  Prefactor     46.424        9.9134       -.31192E-05    .29609E-02
  25  norm          .10000E-03    4.0439        .13017E-05** at limit **
  26  norm          55.117        1.9494        .69617E-06   -.55764E-03
  27  Prefactor     10.151        1.1278       -.12720E-06    .29197E-03
  28  Prefactor     .10102E-03    39.508        .11332E-04** at limit **
  29  norm          13.180        1.0610        .11221E-06    .17892E-03
  30  Prefactor     .10130E-03    35.883        .12673E-04** at limit **
  31  Prefactor     .10000E-03    21.016        .46021E-05** at limit **
  32  norm          .10000E-03    2.4463       -.59636E-07** at limit **
  33  norm          5.5104        4.3052       -.41681E-06    .35802E-03
  34  Prefactor     .10160E-03    126.34       -.35220E-04** at limit **
  35  Prefactor     181.86        1.7675       -.29195E-06    .13811E-02
  36  norm          .10000E-03    1.6497        .24139E-06** at limit **
  37  Prefactor     .10000E-03    29.633        .10822E-04** at limit **
  38  Normalizat    .59716        .27425        .74972E-05   -.48644E-03
  39  Prefactor     .82612        .27397       -.27306E-05   -.45605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.6009
  Prefactor  = 56.5652
  Prefactor  = 0.0001
  Prefactor  = 1.63196
  Prefactor  = 2.011
  Prefactor  = 0.00010262
  Prefactor  = 5.1168
  norm       = 0.0001
  norm       = 0.241199
  Prefactor  = 1.0548
  Prefactor  = 0.0001
  Prefactor  = 0.000103597
  Prefactor  = 6.68278
  Prefactor  = 0.000106301
  Prefactor  = 26.3
  norm       = 0.0001
  Prefactor  = 0.000101127
  Prefactor  = 16.4366
  Prefactor  = 11.5502
  norm       = 0.0001
  Prefactor  = 0.000101525
  Prefactor  = 46.4235
  norm       = 0.0001
  norm       = 55.1169
  Prefactor  = 10.1514
  Prefactor  = 0.000101025
  norm       = 13.1799
  Prefactor  = 0.000101302
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.51041
  Prefactor  = 0.000101599
  Prefactor  = 181.856
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.597157
  Prefactor  = 0.826125
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.137     FROM HESSE     STATUS=OK          1034 CALLS     6186 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.8397        .38634E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.601        8.2195        .30762E-02   -1.5057    
   4  Prefactor     56.565        24.303        .13333E-02   -1.4202    
   5  Prefactor     .10000E-03    8.0618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6320        2.5877        .82755E-02   -1.5452    
   7  Prefactor     2.0110        128.40        .72990E-02   -1.5424    
   8  Prefactor     .10262E-03    51.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1168        6.7079        .44440E-02   -1.5256    
  10  norm          .10000E-03    1.1279        .14374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .24120        .93153        .10166E-01   -1.5610    
  12  Prefactor     1.0548        8.3620        .11829E-01   -1.5503    
  13  Prefactor     .10000E-03    3.2608        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10360E-03    19.184        .96926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6828        8.5893        .38818E-02   -1.5191    
  16  Prefactor     .10630E-03    252.80        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.300        33.397        .19529E-02   -1.4682    
  18  norm          .10000E-03    12.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10113E-03    28.018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.437        18.254        .24697E-02   -1.4897    
  21  Prefactor     11.550        12.673        .29471E-02   -1.5028    
  22  norm          .10000E-03    9.1202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10153E-03    28.765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.424        87.018        .14703E-02   -1.4344    
  25  norm          .10000E-03    1.6759        .20727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          55.117        44.334        .13506E-02   -1.4222    
  27  Prefactor     10.151        15.746        .31440E-02   -1.5071    
  28  Prefactor     .10102E-03    43.154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          13.180        13.189        .27583E-02   -1.4982    
  30  Prefactor     .10130E-03    68.470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    20.821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    2.3777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          5.5104        4.3303        .42786E-02   -1.5238    
  34  Prefactor     .10160E-03    134.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     181.86        199.72        .74837E-03   -1.3003    
  36  norm          .10000E-03    1.6462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    65.683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .59716        .27903        .59553E-01   -1.0810    
  39  Prefactor     .82612        .24771        .44055E-01   -.98772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47191e-07
Minuit parameter uncertainties:
  1  3.28521e-06
  2  2.52386e-05
  3  8.22041
  4  24.3077
  5  6.21695e-05
  6  2.58784
  7  32.2095
  8  0.0233655
  9  6.70891
  10  6.38828e-06
  11  0.931589
  12  5.94063
  13  7.26257e-06
  14  0.0166186
  15  8.5909
  16  0.0801596
  17  33.4207
  18  0.000102455
  19  0.0112454
  20  18.2604
  21  12.6763
  22  1.77131e-05
  23  0.0132531
  24  87.2571
  25  2.32049e-05
  26  44.3602
  27  15.7519
  28  0.0133089
  29  13.1919
  30  0.0189059
  31  1.49414e-05
  32  9.33507e-06
  33  4.33052
  34  0.0294051
  35  200.472
  36  9.43063e-07
  37  0.000238391
  38  0.279693
  39  0.248047
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.155e+01  1.268e+01  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:  8.261e-01  2.480e-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:  5.972e-01  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 6.91e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.64e-05

TS (Fixed Index): 2.73
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 2.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481301/likelihoodResults_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.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) = 2245.89442075
delta logL = 0.2429468989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2245.88817107
delta logL = 0.249196578171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.692       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0103       1.0000          .0000       10.000    
     3 'Normalizat'    .61891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81181       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=   2245.888     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      200 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.692        14.148        .28110E-02   -.17853E-03
   2  Index         2.0103        .76079        .22433        .10087E-03
   3  Normalizat    .61891        .23338        .41197E-01   -.14530E-05
   4  Prefactor     .81181        .24253        .43871E-01    .22837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6915
  Index      = 2.01027
  Normalizat = 0.618907
  Prefactor  = 0.811815
 **********
 **   18 **HESSE 
 **********

 FCN=   2245.888     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.692        13.996        .11244E-03   -1.4995    
   2  Index         2.0103        .88118        .84205E-02   -.64094    
   3  Normalizat    .61891        .25752        .25882E-03   -1.0719    
   4  Prefactor     .81181        .26787        .23658E-03   -.99294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02084e-10
Minuit parameter uncertainties:
  1  13.9995
  2  0.888439
  3  0.258024
  4  0.268298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481301': 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) = 2245.88817107
delta logL = 0.249196578477

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.269e+01  1.400e+01  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.010e+00  8.884e-01  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:  8.118e-01  2.683e-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:  6.189e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 146.316 52.005
Photon Index (Free Index): 2.01 +/- 0.89
Photon Flux (Free Index): 3.61e-08 +/- 4.98e-08
Energy Flux (Free Index): 2.43e-05 +/- 4.07e-05

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/481301/cmap_HighResolution_621388801_621648001_4FGL_J0945.2+5200_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-02', comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='2.43e-05', photon_flux_error='6.91e-08', dlogl='2.49e-01', energy_flux='1.50e-05', photon_flux2='3.61e-08', job_status='DONE', time_completed='2021-09-01 01:13:33.177599', photon_index_error2='0.89', photon_index2='2.01', ts='2.73', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.62e-07', energy_flux_error2='4.07e-05', EG='0.60', time_epoch_completed='1630484013.18', return_code='0', job_id='481301', GAL2='0.81', EG2='0.62', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.98e-08', ts2='3.22', photon_index='2.72' WHERE bin_id='1474' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:13:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 481301: <4FGL_J0945.2+5200_daily_bin1474> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1474> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 01:00:41 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:00:43 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:43 2021
Terminated at Wed Sep  1 01:13:33 2021
Results reported at Wed Sep  1 01:13:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1474 146.316 52.0053 621388801 621648001 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 :                                   685.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

