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


Performing analysis on: 4FGL_J1104.4+0730_daily_bin1260
RA = 166.117, Dec = 7.51
tmin = 565920001, tmax = 566179201
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='484382', job_status='RUN', time_executed='2021-09-03 06:22:38.521465', time_epoch_executed='1630675358.52' WHERE source_name='4FGL J1104.4+0730' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484382/ft1_4FGL_J1104.4+0730_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484382/ft1_4FGL_J1104.4+0730_daily_bin1260.fits outfile=/scratch/kocevski/484382/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1260.fits ra=166.117 dec=7.51 rad=12.0 tmin=565920001.0 tmax=566179201.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.75
user 3.43
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.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/484382/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1260.fits evtable="EVENTS" outfile="/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.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.52
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/484382/ltcube_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.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/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits
.....................!
real 17.72
user 17.25
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/484382/ltcube_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.fits outfile=/scratch/kocevski/484382/expmap_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.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/484382/ltcube_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.fits
.....................!
real 194.37
user 188.93
sys 4.55

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

Setting source of interest to:
4FGL J1104.4+0730 @ 166.117 7.51

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits scfile=/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits outfile=/scratch/kocevski/484382/cmap_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.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.117 yref=7.51 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 1.23
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits scfile=/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits outfile=/scratch/kocevski/484382/cmap_HighResolution_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.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.117 yref=7.51 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 1.30
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484382/Model_4FGL_J1104.4+0730_daily_bin1260.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/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits.....................!
real 80.73
user 78.14
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits', '/scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits', expMap='/scratch/kocevski/484382/expmap_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.fits', expCube='/scratch/kocevski/484382/ltcube_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484382/Model_4FGL_J1104.4+0730_daily_bin1260.xml', optimizer='MINUIT')

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

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  5.865e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/484382/ft1_filtered_4FGL_J1104.4+0730_daily_bin1260.fits
Spacecraft file(s): /scratch/kocevski/484382/ft2_4FGL_J1104.4+0730_daily_bin1260.fits
Exposure map: /scratch/kocevski/484382/expmap_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.fits
Exposure cube: /scratch/kocevski/484382/ltcube_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484382/Model_4FGL_J1104.4+0730_daily_bin1260.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) = 8347.56149337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0294       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1572       1.0000         .10000E-03   10000.    
     7 'norm      '    .81653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.266       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42686E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7628       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1091       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   8347.461     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     1645 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83555        50.213        .16735        .12644E-03
   2  Prefactor     43.358        69.706        .61111E-04   -.50675E-04
   3  Prefactor     .10000E-03    46.768        .42597E-03** at limit **
   4  Prefactor     6.8042        3.2917        .10707E-03   -.33340E-04
   5  Prefactor     .10000E-03    4.7474        .36285E-03** at limit **
   6  Prefactor     3.1598        6.7992        .22811E-03   -.24421E-04
   7  norm          .81586        .66259        .50905E-04   -.63963E-03
   8  Prefactor     23.273        12.503        .83044E-04    .55581E-04
   9  norm          .10000E-03    .55899        .97436E-03** at limit **
  10  Prefactor     .10014E-03    45.529        .47865E-02** at limit **
  11  norm          .10000E-03    3.2446        .15997E-02** at limit **
  12  Prefactor     1.7716        87.891        .31640E-03    .36578E-04
  13  Prefactor     3.7623        2.3188        .10467E-03    .13251E-04
  14  Normalizat    1.1091        .18714        .25206E-03    .18014E-03
  15  Prefactor     .98155        .16305        .24160E-03    .74348E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.835554
  Prefactor  = 43.3582
  Prefactor  = 0.000100001
  Prefactor  = 6.80419
  Prefactor  = 0.0001
  Prefactor  = 3.15981
  norm       = 0.815862
  Prefactor  = 23.2732
  norm       = 0.0001
  Prefactor  = 0.000100143
  norm       = 0.0001
  Prefactor  = 1.77163
  Prefactor  = 3.76226
  Normalizat = 1.10908
  Prefactor  = 0.981548
 **********
 **   18 **HESSE 
 **********

 FCN=   8347.461     FROM HESSE     STATUS=OK           176 CALLS     1821 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83555        49.357        .16936       -1.5525    
   2  Prefactor     43.358        69.636        .12222E-04   -1.4390    
   3  Prefactor     .10000E-03    46.768        .85194E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8042        3.2912        .42828E-05   -1.5186    
   5  Prefactor     .10000E-03    4.7476        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1598        6.7965        .91245E-05   -1.5352    
   7  norm          .81586        .66250        .20362E-05   -1.5527    
   8  Prefactor     23.273        12.499        .33218E-05   -1.4743    
   9  norm          .10000E-03    .55989        .19487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10014E-03    46.299        .95729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2455        .31993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7716        87.838        .12656E-04   -1.5442    
  13  Prefactor     3.7623        2.3187        .41868E-05   -1.5320    
  14  Normalizat    1.1091        .18727        .10082E-04   -.89461    
  15  Prefactor     .98155        .16322        .96640E-05   -.93347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91255e-09
Minuit parameter uncertainties:
  1  12.8541
  2  69.7669
  3  0.000307892
  4  3.29133
  5  2.87584e-05
  6  6.79813
  7  0.662505
  8  12.5006
  9  1.69233e-05
  10  0.00515795
  11  1.43927e-05
  12  24.9875
  13  2.31875
  14  0.187382
  15  0.163303
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.001e-04  5.158e-03  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.815e-01  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.109e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.117 7.510
Photon Flux Upper Limit: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484382/likelihoodResults_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.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) = 8347.46139844
delta logL = -0.000103058408058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8347.4612902
delta logL = 5.17961598234e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12571E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4823       1.0000          .0000       10.000    
     3 'Normalizat'    1.1092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8347.336     FROM MIGRAD    STATUS=FAILED       161 CALLS      338 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84439        187.11        .16830E-03   -.16617E-04
   2  Index         3.6456        6.1568        .88656E-02    .28980E-03
   3  Normalizat    1.0896        .17055        .25403E-03   -.17275E-04
   4  Prefactor     .99005        .15599        .24067E-03    .37318E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8347.336     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      429 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84439        187.11        .13836E-03   -.16617E-04
   2  Index         3.6456        6.1568        .14023E-02    .28980E-03
   3  Normalizat    1.0896        .17055        .13464E-03   -.17275E-04
   4  Prefactor     .99005        .15599        .12599E-03    .37318E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8347.336     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      462 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84439        5.5378        .67319E-05   -.18914E-04
   2  Index         3.6456        2.4118        .17731E-02   -.32187E-05
   3  Normalizat    1.0896        .18287        .10161E-04   -.17454E-04
   4  Prefactor     .99005        .16398        .96266E-05    .37318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.844388
  Index      = 3.64561
  Normalizat = 1.08956
  Prefactor  = 0.990052
 **********
 **   18 **HESSE 
 **********

 FCN=   8347.336     FROM HESSE     STATUS=OK            23 CALLS      485 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84439        4.4924        .13464E-05   -1.5524    
   2  Index         3.6456        2.1904        .70925E-04   -.27431    
   3  Normalizat    1.0896        .18256        .20322E-05   -.90088    
   4  Prefactor     .99005        .16373        .19253E-05   -.93062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59895e-12
Minuit parameter uncertainties:
  1  3.89553
  2  2.27402
  3  0.182667
  4  0.163812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484382': 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) = 8347.33624133
delta logL = 0.125054054392

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  8.444e-01  3.896e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.646e+00  2.274e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.901e-01  1.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.090e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.117 7.510

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/484382/cmap_HighResolution_565920001_566179201_4FGL_J1104.4+0730_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-03 06:34:18.963685', job_id='484382', GAL2='0.99', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1630676058.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.25e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1260' AND source_name='4FGL J1104.4+0730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:34:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 484382: <4FGL_J1104.4+0730_daily_bin1260> in cluster <slac> Done

Job <4FGL_J1104.4+0730_daily_bin1260> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 06:21:09 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:22:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:22:00 2021
Terminated at Fri Sep  3 06:34:19 2021
Results reported at Fri Sep  3 06:34:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_daily_bin1260 166.117 7.51 565920001 566179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+0730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            790 sec.

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

