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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin905
RA = 166.119, Dec = 38.207
tmin = 473904001, tmax = 474163201
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='495506', job_status='RUN', time_executed='2021-09-03 06:55:44.911295', time_epoch_executed='1630677344.91' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495506

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495506/ft1_4FGL_J1104.4+3812_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495506/ft1_4FGL_J1104.4+3812_daily_bin905.fits outfile=/scratch/kocevski/495506/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin905.fits ra=166.119 dec=38.207 rad=12.0 tmin=473904001.0 tmax=474163201.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.14
user 4.87
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.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/495506/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/495506/ltcube_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.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/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits
.....................!
real 13.40
user 13.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/495506/ltcube_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.fits outfile=/scratch/kocevski/495506/expmap_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.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/495506/ltcube_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.fits
.....................!
real 194.65
user 188.62
sys 5.60

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

Setting source of interest to:
4FGL J1104.4+3812 @ 166.119 38.207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits scfile=/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits outfile=/scratch/kocevski/495506/cmap_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.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.119 yref=38.207 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.73
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits scfile=/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits outfile=/scratch/kocevski/495506/cmap_HighResolution_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.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.119 yref=38.207 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.64
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/495506/Model_4FGL_J1104.4+3812_daily_bin905.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/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits.....................!
real 44.44
user 43.01
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits', '/scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits', expMap='/scratch/kocevski/495506/expmap_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.fits', expCube='/scratch/kocevski/495506/ltcube_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/495506/Model_4FGL_J1104.4+3812_daily_bin905.xml', optimizer='MINUIT')

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

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.879e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/495506/ft1_filtered_4FGL_J1104.4+3812_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/495506/ft2_4FGL_J1104.4+3812_daily_bin905.fits
Exposure map: /scratch/kocevski/495506/expmap_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.fits
Exposure cube: /scratch/kocevski/495506/ltcube_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/495506/Model_4FGL_J1104.4+3812_daily_bin905.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) = 4414.41121273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15533E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    25.025       1.0000         .10000E-03   10000.    
     5 'Prefactor '    150.93       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.748       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2200       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.994       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    201.32       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10517E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3307       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9877       1.0000         .10000E-03   10000.    
    26 'Prefactor '    41.285       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    182.42       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .78473       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4414.389     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4407 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5368        5.0901        .31628E-06    .55385E-03
   2  Prefactor     .10000E-03    10.367        .70148E-06** at limit **
   3  Prefactor     .10005E-03    3.7677       -.57466E-06** at limit **
   4  norm          25.017        12.713        .60381E-06   -.13784E-04
   5  Prefactor     150.93        82.443       -.10491E-06    .36201E-04
   6  Prefactor     10.506        17.266        .25990E-06    .26255E-04
   7  Prefactor     .10000E-03    4.2547        .41894E-05** at limit **
   8  Prefactor     .10000E-03    2.8860        .21882E-07** at limit **
   9  Prefactor     .10000E-03    41.816       -.15646E-05** at limit **
  10  Prefactor     26.558        35.514        .38990E-06    .20516E-04
  11  Prefactor     83.263        105.59       -.24907E-05    .22768E-04
  12  Prefactor     13.749        14.921        .12376E-06    .16573E-04
  13  norm          2.2200        .46208        .36351E-07    .11739E-02
  14  Prefactor     1.4537        2.7538        .77432E-07   -.11858E-04
  15  Prefactor     .10000E-03    4.8212       -.19612E-07** at limit **
  16  Prefactor     .10000E-03    26.487       -.37824E-06** at limit **
  17  Prefactor     74.001        93.407       -.36520E-06    .43592E-05
  18  norm          .10000E-03    6.7710       -.52595E-07** at limit **
  19  norm          201.26        127.37        .45157E-05   -.22586E-04
  20  Prefactor     6.5732        4.0771       -.85579E-06    .67024E-03
  21  Prefactor     .10000E-03    26.749       -.56022E-06** at limit **
  22  Prefactor     .10000E-03    13.626        .12360E-06** at limit **
  23  norm          .10000E-03    1.7021       -.97892E-06** at limit **
  24  Prefactor     4.3328        14.666        .10022E-05   -.37528E-04
  25  Prefactor     1.9870        7.4737        .11207E-04    .28443E-04
  26  Prefactor     41.274        73.265        .38348E-05    .13449E-03
  27  norm          .10000E-03    .80897       -.46963E-06** at limit **
  28  norm          .10000E-03    17.369       -.19236E-06** at limit **
  29  Prefactor     .10000E-03    35.009        .19632E-05** at limit **
  30  Prefactor     182.43        106.05       -.28178E-06    .85690E-04
  31  Normalizat    .78472        .21293       -.21212E-05    .14675E-03
  32  Prefactor     .94518        .23522        .70971E-06    .20790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5368
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  norm       = 25.0166
  Prefactor  = 150.932
  Prefactor  = 10.5059
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5584
  Prefactor  = 83.2628
  Prefactor  = 13.7486
  norm       = 2.21997
  Prefactor  = 1.45371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.0012
  norm       = 0.0001
  norm       = 201.262
  Prefactor  = 6.57319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.33277
  Prefactor  = 1.98697
  Prefactor  = 41.2739
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 182.43
  Normalizat = 0.784717
  Prefactor  = 0.94518
 **********
 **   18 **HESSE 
 **********

 FCN=   4414.389     FROM HESSE     STATUS=OK           663 CALLS     5070 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5368        5.4662        .11086E-03   -1.5197    
   2  Prefactor     .10000E-03    10.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    11.552        .35997E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.017        12.491        .80076E-04   -1.4707    
   5  Prefactor     150.93        82.419        .32808E-04   -1.3245    
   6  Prefactor     10.506        17.090        .12358E-03   -1.5060    
   7  Prefactor     .10000E-03    10.553        .23023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8945        .10911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.558        35.528        .77742E-04   -1.4677    
  11  Prefactor     83.263        105.79        .22016E-03   -1.3880    
  12  Prefactor     13.749        14.828        .10803E-03   -1.4966    
  13  norm          2.2200        .46253        .19846E-04   -1.5410    
  14  Prefactor     1.4537        2.6972        .14216E-03   -1.5467    
  15  Prefactor     .10000E-03    4.8233        .14248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     74.001        93.412        .46675E-04   -1.3985    
  18  norm          .10000E-03    6.8016        .16885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          201.26        127.17        .14240E-03   -1.2861    
  20  Prefactor     6.5732        4.0349        .94060E-04   -1.5195    
  21  Prefactor     .10000E-03    26.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9840        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3328        14.609        .96784E-03   -1.5292    
  25  Prefactor     1.9870        7.7349        .14695E-02   -1.5426    
  26  Prefactor     41.274        72.921        .62387E-04   -1.4422    
  27  norm          .10000E-03    .82687        .11596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    17.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    35.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     182.43        105.60        .29890E-04   -1.2998    
  31  Normalizat    .78472        .24085        .25738E-03   -1.0064    
  32  Prefactor     .94518        .26859        .28483E-03   -.94580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05735e-09
Minuit parameter uncertainties:
  1  5.46665
  2  3.36427e-05
  3  0.00148912
  4  12.4925
  5  82.4817
  6  17.0982
  7  0.000240852
  8  2.31276e-06
  9  0.000120217
  10  35.5558
  11  106.029
  12  14.8318
  13  0.462535
  14  2.69739
  15  3.30024e-06
  16  2.56401e-05
  17  93.598
  18  1.12502e-05
  19  127.341
  20  4.03507
  21  4.51012e-05
  22  4.75571e-05
  23  7.55156e-05
  24  14.6207
  25  7.73879
  26  73.0795
  27  2.70792e-05
  28  2.906e-05
  29  0.000276732
  30  105.708
  31  0.24118
  32  0.268964
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.220e+00  4.625e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  9.452e-01  2.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  7.847e-01  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 138.44
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.31e-07 +/- 4.80e-08
Energy Flux (Fixed Index): 3.12e-04 +/- 6.50e-05

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) = 4414.14670738
delta logL = 0.242672519534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4414.12841112
delta logL = 0.260968781085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2662       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6272       1.0000          .0000       5.0000    
     3 'Normalizat'    .80323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4414.128     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      190 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2664        .50105        .46090E-02   -.89693E-04
   2  alpha         1.6270        .15419        .91568E-01    .27960E-05
   3  Normalizat    .80336        .19332        .43652E-01    .13503E-04
   4  Prefactor     .93422        .23293        .45443E-01    .10138E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26645
  alpha      = 1.62697
  Normalizat = 0.803358
  Prefactor  = 0.934216
 **********
 **   18 **HESSE 
 **********

 FCN=   4414.128     FROM HESSE     STATUS=OK            31 CALLS      221 TOTAL
                     EDM=   .35E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2664        .47769        .20346E-04   -1.5407    
   2  alpha         1.6270        .14833        .40076E-03   -.35673    
   3  Normalizat    .80336        .21958        .25487E-03   -.99944    
   4  Prefactor     .93422        .26475        .28650E-03   -.94956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46486e-15
Minuit parameter uncertainties:
  1  0.477687
  2  0.14843
  3  0.219827
  4  0.265115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495506': 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) = 4414.12840984
delta logL = 0.260970064202

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.266e+00  4.777e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.627e+00  1.484e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  9.342e-01  2.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  8.034e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 138.02
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.63 +/- 0.15
Photon Flux (Free Index): 2.08e-07 +/- 5.30e-08
Energy Flux (Free Index): 3.92e-04 +/- 1.49e-04

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/495506/cmap_HighResolution_473904001_474163201_4FGL_J1104.4+3812_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.31e-07', energy_flux2='3.92e-04', photon_flux_error='4.80e-08', dlogl='2.61e-01', energy_flux='3.12e-04', photon_flux2='2.08e-07', job_status='DONE', time_completed='2021-09-03 07:08:04.181748', photon_index_error2='0.15', photon_index2='1.63', ts='138.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.49e-04', EG='0.78', time_epoch_completed='1630678084.18', return_code='0', job_id='495506', GAL2='0.93', EG2='0.80', return_code2='0', energy_flux_error='6.50e-05', photon_flux_error2='5.30e-08', ts2='138.02', photon_index='1.74' WHERE bin_id='905' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 495506: <4FGL_J1104.4+3812_daily_bin905> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin905> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:30 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:52:10 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:52:10 2021
Terminated at Fri Sep  3 07:08:05 2021
Results reported at Fri Sep  3 07:08:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin905 166.119 38.207 473904001 474163201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             265.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            995 sec.

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

