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


Performing analysis on: 4FGL_J1104.9+5748_daily_bin755
RA = 166.24, Dec = 57.8079
tmin = 435024001, tmax = 435283201
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='504654', job_status='RUN', time_executed='2021-09-03 07:23:53.128515', time_epoch_executed='1630679033.13' WHERE source_name='4FGL J1104.9+5748' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504654/ft1_4FGL_J1104.9+5748_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504654/ft1_4FGL_J1104.9+5748_daily_bin755.fits outfile=/scratch/kocevski/504654/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin755.fits ra=166.24 dec=57.8079 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.09
user 4.81
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.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/504654/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/504654/ltcube_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.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/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits
.....................!
real 13.89
user 13.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/504654/ltcube_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.fits outfile=/scratch/kocevski/504654/expmap_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.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/504654/ltcube_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.fits
.....................!
real 191.40
user 186.35
sys 4.59

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

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits scfile=/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits outfile=/scratch/kocevski/504654/cmap_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.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=166.24 yref=57.8079 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits scfile=/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits outfile=/scratch/kocevski/504654/cmap_HighResolution_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.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=166.24 yref=57.8079 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504654/Model_4FGL_J1104.9+5748_daily_bin755.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/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits.....................!
real 43.11
user 41.43
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits', '/scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits', expMap='/scratch/kocevski/504654/expmap_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.fits', expCube='/scratch/kocevski/504654/ltcube_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504654/Model_4FGL_J1104.9+5748_daily_bin755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.9+5748'

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504654/ft1_filtered_4FGL_J1104.9+5748_daily_bin755.fits
Spacecraft file(s): /scratch/kocevski/504654/ft2_4FGL_J1104.9+5748_daily_bin755.fits
Exposure map: /scratch/kocevski/504654/expmap_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.fits
Exposure cube: /scratch/kocevski/504654/ltcube_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504654/Model_4FGL_J1104.9+5748_daily_bin755.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) = 4020.21798078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    27.503       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9894       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7889       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    25.022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5660       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.307       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14742E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.023       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.235       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .74562       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8399       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11870E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    48.097       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .49151       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.3739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4020.208     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     4775 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.156        .36202E-06** at limit **
   2  Prefactor     27.502        12.765       -.12308E-05   -.10827E-03
   3  norm          .10000E-03    3.6217        .74528E-07** at limit **
   4  Prefactor     .10000E-03    21.533        .15917E-04** at limit **
   5  norm          1.3077        .63706       -.21240E-06   -.66112E-03
   6  Prefactor     8.9841        11.078       -.21251E-05   -.10070E-03
   7  norm          1.7889        .95857       -.23411E-06    .33558E-04
   8  norm          4.4042        3.3623       -.11485E-06    .32161E-04
   9  Prefactor     .10000E-03    52.437        .34713E-04** at limit **
  10  norm          25.020        24.789       -.18167E-05    .55235E-06
  11  Prefactor     .10000E-03    9.8522        .11643E-05** at limit **
  12  norm          2.5655        2.4688       -.57107E-06   -.28685E-03
  13  norm          2.9268        1.9273        .14734E-06    .21578E-05
  14  Prefactor     .10000E-03    76.662       -.26746E-05** at limit **
  15  Prefactor     .10000E-03    83.609       -.36052E-04** at limit **
  16  Prefactor     25.054        189.55       -.48086E-03    .35357E-04
  17  norm          2.0080        1.9674        .59003E-05   -.40340E-03
  18  Prefactor     50.309        73.406       -.10678E-04    .39466E-04
  19  Prefactor     .10000E-03    11.140        .73996E-06** at limit **
  20  Prefactor     .10000E-03    49.981        .27488E-04** at limit **
  21  norm          .10000E-03    23.146       -.12488E-04** at limit **
  22  Prefactor     .10006E-03    4.6366       -.29214E-06** at limit **
  23  Prefactor     11.040        21.943        .12488E-05    .38572E-04
  24  Prefactor     28.232        24.328       -.17138E-05    .19882E-04
  25  norm          .10000E-03    6.3807       -.21222E-08** at limit **
  26  Prefactor     .10000E-03    2.4537       -.37521E-06** at limit **
  27  norm          .74666        5.1482       -.21328E-05   -.73805E-03
  28  Prefactor     5.8394        7.0517        .12724E-05    .48179E-03
  29  Prefactor     .10001E-03    37.646       -.29942E-04** at limit **
  30  norm          .10000E-03    1.4162       -.21614E-06** at limit **
  31  Prefactor     .10000E-03    11.040       -.23206E-05** at limit **
  32  Prefactor     48.058        68.151       -.46820E-04    .10653E-03
  33  Normalizat    .49197        .18876        .10701E-04    .12179E-03
  34  Prefactor     1.3735        .24006        .54367E-05    .54120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.5023
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30769
  Prefactor  = 8.98414
  norm       = 1.78887
  norm       = 4.40423
  Prefactor  = 0.000100001
  norm       = 25.0196
  Prefactor  = 0.0001
  norm       = 2.56555
  norm       = 2.92676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0541
  norm       = 2.00805
  Prefactor  = 50.3086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 11.0399
  Prefactor  = 28.2324
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.74666
  Prefactor  = 5.83941
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.0579
  Normalizat = 0.491971
  Prefactor  = 1.3735
 **********
 **   18 **HESSE 
 **********

 FCN=   4020.208     FROM HESSE     STATUS=OK           728 CALLS     5503 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.502        12.748        .76391E-04   -1.4659    
   3  norm          .10000E-03    3.6227        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3077        .63742        .34031E-04   -1.5479    
   6  Prefactor     8.9841        11.074        .13368E-03   -1.5108    
   7  norm          1.7889        .96023        .43680E-04   -1.5440    
   8  norm          4.4042        3.3592        .97834E-04   -1.5288    
   9  Prefactor     .10000E-03    52.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.020        24.782        .80081E-04   -1.4707    
  11  Prefactor     .10000E-03    9.8742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5655        2.4554        .93927E-04   -1.5388    
  13  norm          2.9268        1.9263        .69288E-04   -1.5366    
  14  Prefactor     .10000E-03    76.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    83.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.054        191.40        .39815E-03   -1.4706    
  17  norm          2.0080        1.9758        .82869E-04   -1.5425    
  18  Prefactor     50.309        73.550        .56534E-04   -1.4288    
  19  Prefactor     .10000E-03    11.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    23.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    29.271        .25831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.040        21.768        .12067E-03   -1.5043    
  24  Prefactor     28.232        24.328        .75397E-04   -1.4645    
  25  norm          .10000E-03    6.3872        .15642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.4853        .96951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .74666        5.0045        .25538E-03   -1.5535    
  28  Prefactor     5.8394        6.9326        .16615E-03   -1.5225    
  29  Prefactor     .10001E-03    38.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.4530        .14716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    11.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     48.058        68.043        .57819E-04   -1.4320    
  33  Normalizat    .49197        .21609        .28833E-03   -1.1279    
  34  Prefactor     1.3735        .27969        .23840E-03   -.81147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3213e-09
Minuit parameter uncertainties:
  1  7.61521e-06
  2  12.749
  3  6.36855e-06
  4  0.000108087
  5  0.63742
  6  11.0768
  7  0.960241
  8  3.35934
  9  0.000436572
  10  24.7924
  11  1.76219e-05
  12  2.45554
  13  1.92637
  14  6.7276e-05
  15  2.79177e-05
  16  139.12
  17  1.97589
  18  73.6829
  19  0.000122262
  20  4.07363e-05
  21  1.26701e-05
  22  0.00261519
  23  21.7837
  24  24.337
  25  7.27884e-06
  26  3.92171e-05
  27  3.8663
  28  6.93352
  29  0.000980692
  30  3.01618e-05
  31  1.54196e-05
  32  68.1537
  33  0.216457
  34  0.28
Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  1.000e-04  1.223e-04  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  1.373e+00  2.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  4.920e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504654/likelihoodResults_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.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) = 4020.20820817
delta logL = -0.00042565724516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4020.2077825
delta logL = 5.40376277058e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5900       1.0000          .0000       10.000    
     3 'Normalizat'    .49198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3735       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+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=   4020.208     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    394.72        .18142E-02** at limit **
   2  Index         2.4606        8.7228        .50000        .50157E-05
   3  Normalizat    .49197        .27046E-01    .28833E-03   -.19321E-05
   4  Prefactor     1.3735        .36020E-01    .23840E-03    .15170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101678
  Index      = 2.46057
  Normalizat = 0.491969
  Prefactor  = 1.3735
 **********
 **   18 **HESSE 
 **********

 FCN=   4020.208     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10168E-03    1426.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4606        5.3898        .50000       -.53273    
   3  Normalizat    .49197        .61464E-01    .11533E-04   -1.1279    
   4  Prefactor     1.3735        .81815E-01    .47679E-04   -.81147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24511e-08
Minuit parameter uncertainties:
  1  0.100365
  2  3652.69
  3  0.0614724
  4  0.0818228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504654': 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) = 4020.2077824
delta logL = 1.12032012112e-07

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  1.017e-04  1.004e-01  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.461e+00  3.653e+03  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  1.373e+00  8.182e-02  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  4.920e-01  6.147e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.240 57.808

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/504654/cmap_HighResolution_435024001_435283201_4FGL_J1104.9+5748_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-03 07:38:41.000378', job_id='504654', GAL2='1.37', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1630679921.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='755' AND source_name='4FGL J1104.9+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:38:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 504654: <4FGL_J1104.9+5748_daily_bin755> in cluster <slac> Done

Job <4FGL_J1104.9+5748_daily_bin755> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:22:29 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:23:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 07:23:16 2021
Terminated at Fri Sep  3 07:38:41 2021
Results reported at Fri Sep  3 07:38:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.9+5748_daily_bin755 166.24 57.8079 435024001 435283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.9+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   882.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            972 sec.

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

