/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 100 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin66
RA = 193.733, Dec = 11.6495
tmin = 256435201, tmax = 256694401
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='993169', job_status='RUN', time_executed='2021-09-06 09:22:51.460464', time_epoch_executed='1630945371.46' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993169

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993169/ft1_4FGL_J1254.9+1138_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993169/ft1_4FGL_J1254.9+1138_daily_bin66.fits outfile=/scratch/kocevski/993169/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin66.fits ra=193.733 dec=11.6495 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.43
user 1.27
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.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/993169/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/993169/ltcube_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.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/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits
.....................!
real 12.65
user 12.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/993169/ltcube_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.fits outfile=/scratch/kocevski/993169/expmap_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.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/993169/ltcube_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.fits
.....................!
real 192.30
user 186.93
sys 4.69

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

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits scfile=/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits outfile=/scratch/kocevski/993169/cmap_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.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=193.733 yref=11.6495 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits scfile=/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits outfile=/scratch/kocevski/993169/cmap_HighResolution_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.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=193.733 yref=11.6495 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993169/Model_4FGL_J1254.9+1138_daily_bin66.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/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits.....................!
real 74.08
user 72.45
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits', '/scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits', expMap='/scratch/kocevski/993169/expmap_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.fits', expCube='/scratch/kocevski/993169/ltcube_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993169/Model_4FGL_J1254.9+1138_daily_bin66.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/993169/ft1_filtered_4FGL_J1254.9+1138_daily_bin66.fits
Spacecraft file(s): /scratch/kocevski/993169/ft2_4FGL_J1254.9+1138_daily_bin66.fits
Exposure map: /scratch/kocevski/993169/expmap_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.fits
Exposure cube: /scratch/kocevski/993169/ltcube_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993169/Model_4FGL_J1254.9+1138_daily_bin66.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) = 9335.60829139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7995       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    45.603       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.017       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1849       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9335.520     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1762 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6060        1.9762        .20632E-07   -.42665E-04
   2  Prefactor     1.8309        108.82        .94197E-05    .47514E-04
   3  norm          2.9461        4.1577        .35341E-06   -.32071E-03
   4  Prefactor     .10000E-03    11.023        .15540E-05** at limit **
   5  norm          45.610        36.869        .49699E-06    .42879E-04
   6  Prefactor     .10000E-03    78.003        .29383E-06** at limit **
   7  norm          2.7402        .69859       -.32214E-07   -.23937E-03
   8  Prefactor     .57215        10.614        .31250E-05   -.18037E-03
   9  Prefactor     36.018        21.650       -.10816E-05   -.11507E-03
  10  norm          3.3720        1.4655        .31754E-09   -.11636E-03
  11  Prefactor     .10000E-03    10.435       -.90648E-06** at limit **
  12  Prefactor     .10000E-03    19.210       -.21677E-05** at limit **
  13  Prefactor     2.5168        3.9365        .14335E-06   -.91248E-04
  14  Prefactor     10.077        9.5930        .15527E-05   -.16092E-03
  15  Prefactor     .10000E-03    6.5722       -.17178E-06** at limit **
  16  Prefactor     .10000E-03    10.303       -.35176E-06** at limit **
  17  Prefactor     .10000E-03    8.2011       -.12082E-07** at limit **
  18  Prefactor     .10000E-03    22.011        .17892E-05** at limit **
  19  Normalizat    1.1848        .15924       -.36973E-06   -.71026E-04
  20  Prefactor     .80968        .13090       -.37742E-06   -.74577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60598
  Prefactor  = 1.83094
  norm       = 2.94608
  Prefactor  = 0.0001
  norm       = 45.6095
  Prefactor  = 0.0001
  norm       = 2.74022
  Prefactor  = 0.572154
  Prefactor  = 36.0179
  norm       = 3.37204
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.51683
  Prefactor  = 10.0771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18475
  Prefactor  = 0.809678
 **********
 **   18 **HESSE 
 **********

 FCN=   9335.520     FROM HESSE     STATUS=OK           291 CALLS     2053 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6060        1.9800        .11474E-03   -1.5385    
   2  Prefactor     1.8309        111.65        .31165E-03   -1.5437    
   3  norm          2.9461        4.0811        .18396E-03   -1.5365    
   4  Prefactor     .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          45.610        36.980        .59372E-04   -1.4356    
   6  Prefactor     .10000E-03    78.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7402        .69729        .36911E-04   -1.5377    
   8  Prefactor     .57215        11.609        .45881E-03   -1.5557    
   9  Prefactor     36.018        21.638        .66777E-04   -1.4507    
  10  norm          3.3720        1.4613        .72713E-04   -1.5341    
  11  Prefactor     .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5168        3.9272        .23302E-03   -1.5391    
  14  Prefactor     10.077        9.7331        .63116E-03   -1.5073    
  15  Prefactor     .10000E-03    6.6405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1848        .19110        .25216E-03   -.87075    
  20  Prefactor     .80968        .15629        .25339E-03   -.99373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66058e-10
Minuit parameter uncertainties:
  1  1.98004
  2  28.6508
  3  4.08151
  4  9.15948e-05
  5  36.9985
  6  2.34049e-06
  7  0.697292
  8  5.1551
  9  21.6432
  10  1.46135
  11  5.46833e-05
  12  0.000209012
  13  3.92763
  14  9.73465
  15  1.64807e-05
  16  5.67095e-06
  17  6.58647e-07
  18  0.0001691
  19  0.191217
  20  0.156374
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.008e+01  9.735e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.097e-01  1.564e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.185e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 8.95e-06 +/- 8.64e-06

TS (Fixed Index): 1.54
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993169/likelihoodResults_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.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) = 9334.27472915
delta logL = 1.24535489433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9334.26130375
delta logL = 1.25878029907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76813       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6061       1.0000          .0000       10.000    
     3 'Normalizat'    1.1110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9334.261     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      272 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76421        5.4423        .10664E-01    .10234E-02
   2  Index         5.6100        3.0314        .18147        .13941E-03
   3  Normalizat    1.1111        .38889E-01    .58590E-01    .21636E-04
   4  Prefactor     .85942        .33176E-01    .44486E-01    .31981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.76421
  Index      = 5.60995
  Normalizat = 1.11106
  Prefactor  = 0.859422
 **********
 **   18 **HESSE 
 **********

 FCN=   9334.261     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      307 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76421        12.963        .48515E-03   -1.5533    
   2  Index         5.6100        7.5348        .68322E-02    .12230    
   3  Normalizat    1.1111        .14437        .25911E-03   -.89398    
   4  Prefactor     .85942        .12021        .24679E-03   -.97574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55119e-07
Minuit parameter uncertainties:
  1  6.29617
  2  6.07394
  3  0.144423
  4  0.120244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993169': 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) = 9334.26130299
delta logL = 1.25878105076

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.642e-01  6.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  5.610e+00  6.074e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.594e-01  1.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.111e+00  1.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 193.733 11.649
Photon Index (Free Index): 5.61 +/- 6.07
Photon Flux (Free Index): 8.68e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.10e-05 +/- 9.40e-06

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/993169/cmap_HighResolution_256435201_256694401_4FGL_J1254.9+1138_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.10e-05', photon_flux_error='3.83e-08', dlogl='1.26e+00', energy_flux='8.95e-06', photon_flux2='8.68e-08', job_status='DONE', time_completed='2021-09-06 09:34:26.097368', photon_index_error2='6.07', photon_index2='5.61', ts='1.54', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='9.40e-06', EG='1.18', time_epoch_completed='1630946066.1', return_code='0', job_id='993169', GAL2='0.86', EG2='1.11', return_code2='102', energy_flux_error='8.64e-06', photon_flux_error2='5.43e-08', ts2='4.48', photon_index='2.79' WHERE bin_id='66' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 993169: <4FGL_J1254.9+1138_daily_bin66> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin66> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:59 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:21:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:21:01 2021
Terminated at Mon Sep  6 09:34:26 2021
Results reported at Mon Sep  6 09:34:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin66 193.733 11.6495 256435201 256694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

