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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1577
RA = 193.733, Dec = 11.6495
tmin = 648086401, tmax = 648345601
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='849', job_status='RUN', time_executed='2021-09-06 09:46:04.054164', time_epoch_executed='1630946764.05' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849/ft1_4FGL_J1254.9+1138_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849/ft1_4FGL_J1254.9+1138_daily_bin1577.fits outfile=/scratch/kocevski/849/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1577.fits ra=193.733 dec=11.6495 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.25
user 4.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.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/849/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/849/ltcube_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.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/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits
.....................!
real 11.91
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/849/ltcube_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.fits outfile=/scratch/kocevski/849/expmap_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.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/849/ltcube_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.fits
.....................!
real 190.68
user 185.20
sys 4.76

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/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.fits scfile=/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits outfile=/scratch/kocevski/849/cmap_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.fits scfile=/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits outfile=/scratch/kocevski/849/cmap_HighResolution_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.fits', '/scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits', expMap='/scratch/kocevski/849/expmap_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.fits', expCube='/scratch/kocevski/849/ltcube_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849/Model_4FGL_J1254.9+1138_daily_bin1577.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/849/ft1_filtered_4FGL_J1254.9+1138_daily_bin1577.fits
Spacecraft file(s): /scratch/kocevski/849/ft2_4FGL_J1254.9+1138_daily_bin1577.fits
Exposure map: /scratch/kocevski/849/expmap_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.fits
Exposure cube: /scratch/kocevski/849/ltcube_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849/Model_4FGL_J1254.9+1138_daily_bin1577.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) = 6612.43458138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.016       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12980E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3070       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .87654E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.524       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35204E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.429       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3199       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86430       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6612.429     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     2371 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8034        3.2507        .10625E-03   -.20330E-03
   2  Prefactor     15.988        27.630        .10008E-03   -.19191E-03
   3  norm          1.2823        3.8116        .24802E-03    .62738E-03
   4  Prefactor     .10000E-03    20.152        .18142E-02** at limit **
   5  norm          17.759        27.261        .95031E-04    .15205E-03
   6  Prefactor     .10000E-03    47.540        .18142E-02** at limit **
   7  norm          3.3067        1.0143        .41473E-04    .48317E-02
   8  Prefactor     .10000E-03    3.6551        .15169E-02** at limit **
   9  Prefactor     .10020E-03    27.052        .10599    ** at limit **
  10  norm          2.7328        1.5934        .74729E-04    .14369E-02
  11  Prefactor     93.840        57.078        .41486E-04    .10600E-03
  12  Prefactor     63.441        46.707        .50349E-04   -.54056E-04
  13  Prefactor     6.5820        5.1092        .15642E-03   -.27414E-04
  14  Prefactor     10.888        12.064        .12152E-03    .27355E-03
  15  Prefactor     11.307        10.597        .11915E-03    .82440E-04
  16  Prefactor     .10000E-03    55.133        .40074E-02** at limit **
  17  Prefactor     22.824        28.921        .83844E-04   -.23051E-05
  18  Prefactor     30.454        38.393        .72633E-04    .13461E-03
  19  Normalizat    1.3198        .24774        .26398E-03   -.58255E-03
  20  Prefactor     .86460        .20565        .27373E-03   -.26086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.80339
  Prefactor  = 15.9879
  norm       = 1.28233
  Prefactor  = 0.000100002
  norm       = 17.7589
  Prefactor  = 0.0001
  norm       = 3.30673
  Prefactor  = 0.0001
  Prefactor  = 0.000100201
  norm       = 2.73285
  Prefactor  = 93.8398
  Prefactor  = 63.4415
  Prefactor  = 6.58204
  Prefactor  = 10.8875
  Prefactor  = 11.3073
  Prefactor  = 0.000100001
  Prefactor  = 22.8235
  Prefactor  = 30.4536
  Normalizat = 1.31979
  Prefactor  = 0.8646
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.429     FROM HESSE     STATUS=OK           281 CALLS     2652 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8034        3.2507        .42500E-05   -1.5226    
   2  Prefactor     15.988        27.625        .20016E-04   -1.4908    
   3  norm          1.2823        3.8092        .99208E-05   -1.5481    
   4  Prefactor     .10000E-03    20.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.759        27.259        .19006E-04   -1.4865    
   6  Prefactor     .10000E-03    47.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3067        1.0140        .82946E-05   -1.5344    
   8  Prefactor     .10000E-03    3.6552        .30338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10020E-03    25.770        .10938       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7328        1.5934        .29892E-05   -1.5377    
  11  Prefactor     93.840        57.078        .82972E-05   -1.3768    
  12  Prefactor     63.441        46.706        .10070E-04   -1.4113    
  13  Prefactor     6.5820        5.1092        .31285E-04   -1.5195    
  14  Prefactor     10.888        12.064        .48608E-05   -1.5048    
  15  Prefactor     11.307        10.597        .47659E-05   -1.5035    
  16  Prefactor     .10000E-03    56.033        .80148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.824        28.918        .33538E-05   -1.4752    
  18  Prefactor     30.454        38.394        .14527E-04   -1.4604    
  19  Normalizat    1.3198        .24794        .52796E-04   -.82977    
  20  Prefactor     .86460        .20586        .10949E-04   -.97389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89756e-09
Minuit parameter uncertainties:
  1  3.25081
  2  27.6472
  3  3.80994
  4  0.000350654
  5  27.2785
  6  0.000251313
  7  1.01404
  8  1.31472e-05
  9  0.00455663
  10  1.59339
  11  57.111
  12  46.7327
  13  5.10953
  14  12.0665
  15  10.5985
  16  0.00035548
  17  28.9356
  18  38.4249
  19  0.248161
  20  0.206041
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.089e+01  1.207e+01  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.646e-01  2.060e-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.320e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 9.67e-06 +/- 1.07e-05

TS (Fixed Index): 1.51
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849/likelihoodResults_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.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) = 6612.24408814
delta logL = 0.185194505658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6612.24154277
delta logL = 0.187739867412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.631       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2597       1.0000          .0000       10.000    
     3 'Normalizat'    1.3396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85294       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=   6612.242     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.631        17.165        .29367E-02   -.98956E-03
   2  Index         2.2598        .84876        .24482       -.32732E-04
   3  Normalizat    1.3396        .20124        .59319E-01    .56874E-05
   4  Prefactor     .85294        .17344        .44402E-01    .16656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6307
  Index      = 2.25981
  Normalizat = 1.3396
  Prefactor  = 0.852943
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.242     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.631        13.130        .11747E-03   -1.5026    
   2  Index         2.2598        .81496        .11741E-01   -.58002    
   3  Normalizat    1.3396        .23818        .26234E-03   -.82392    
   4  Prefactor     .85294        .20399        .27534E-03   -.97805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72992e-09
Minuit parameter uncertainties:
  1  13.1335
  2  0.820205
  3  0.238376
  4  0.204167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849': 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) = 6612.24154277
delta logL = 0.187739875876

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.163e+01  1.313e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.260e+00  8.202e-01  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.529e-01  2.042e-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.340e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.26 +/- 0.82
Photon Flux (Free Index): 2.90e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/849/cmap_HighResolution_648086401_648345601_4FGL_J1254.9+1138_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='1.17e-05', photon_flux_error='4.75e-08', dlogl='1.88e-01', energy_flux='9.67e-06', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-09-06 09:56:48.646033', photon_index_error2='0.82', photon_index2='2.26', ts='1.51', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.37e-05', EG='1.32', time_epoch_completed='1630947408.65', return_code='0', job_id='849', GAL2='0.85', EG2='1.34', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.12e-08', ts2='1.86', photon_index='2.79' WHERE bin_id='1577' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 849: <4FGL_J1254.9+1138_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1577> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:45:40 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:45:42 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:45:42 2021
Terminated at Mon Sep  6 09:56:49 2021
Results reported at Mon Sep  6 09:56:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1577 193.733 11.6495 648086401 648345601 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 :                                   639.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            669 sec.

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

