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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin73
RA = 193.733, Dec = 11.6495
tmin = 258249601, tmax = 258508801
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='993176', job_status='RUN', time_executed='2021-09-06 09:24:28.244641', time_epoch_executed='1630945468.24' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993176

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993176/ft1_4FGL_J1254.9+1138_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993176/ft2_4FGL_J1254.9+1138_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993176/ft1_4FGL_J1254.9+1138_daily_bin73.fits outfile=/scratch/kocevski/993176/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin73.fits ra=193.733 dec=11.6495 rad=12.0 tmin=258249601.0 tmax=258508801.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.16
user 0.96
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993176/ft2_4FGL_J1254.9+1138_daily_bin73.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/993176/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/993176/ft1_filtered_4FGL_J1254.9+1138_daily_bin73.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.29
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993176/ft1_filtered_4FGL_J1254.9+1138_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/993176/ft2_4FGL_J1254.9+1138_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/993176/ltcube_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.fits outfile=/scratch/kocevski/993176/expmap_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.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/993176/ltcube_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.fits
.....................!
real 190.07
user 184.88
sys 4.82

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/993176/ft1_filtered_4FGL_J1254.9+1138_daily_bin73.fits scfile=/scratch/kocevski/993176/ft2_4FGL_J1254.9+1138_daily_bin73.fits outfile=/scratch/kocevski/993176/cmap_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.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/993176/ft1_filtered_4FGL_J1254.9+1138_daily_bin73.fits scfile=/scratch/kocevski/993176/ft2_4FGL_J1254.9+1138_daily_bin73.fits outfile=/scratch/kocevski/993176/cmap_HighResolution_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.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/993176/ft1_filtered_4FGL_J1254.9+1138_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/993176/ft2_4FGL_J1254.9+1138_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993176/Model_4FGL_J1254.9+1138_daily_bin73.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/993176/ft1_filtered_4FGL_J1254.9+1138_daily_bin73.fits.....................!
real 41.48
user 40.14
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9086       1.0000         .10000E-03   10000.    
     3 'norm      '    .13396E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    182.81       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6945       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.602       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0038       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0920       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.030       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3137       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95704       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=   4173.536     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2018 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4677       -.70139E-07** at limit **
   2  Prefactor     6.9371        43.811       -.71220E-05   -.10335E-03
   3  norm          .10002E-03    4.3362        .23039E-05** at limit **
   4  Prefactor     .10000E-03    25.483        .32442E-06** at limit **
   5  norm          .10000E-03    18.280       -.13523E-06** at limit **
   6  Prefactor     182.86        236.08       -.33627E-05   -.65287E-04
   7  norm          3.6946        1.0719       -.24155E-07   -.24490E-02
   8  Prefactor     .10000E-03    5.9036       -.62516E-07** at limit **
   9  Prefactor     13.598        25.856        .44652E-06   -.12017E-04
  10  norm          1.0039        1.9132        .28047E-08   -.35643E-03
  11  Prefactor     .10000E-03    16.652        .58497E-06** at limit **
  12  Prefactor     .10000E-03    19.549       -.45338E-06** at limit **
  13  Prefactor     5.8995        11.978        .11274E-06    .30613E-05
  14  Prefactor     3.0914        10.368        .27940E-05    .16099E-03
  15  Prefactor     15.185        15.061       -.33864E-07   -.64637E-06
  16  Prefactor     .10000E-03    4.5384       -.33371E-07** at limit **
  17  Prefactor     25.713        46.489        .11680E-05   -.93622E-05
  18  Prefactor     52.034        48.849       -.24330E-06    .41922E-05
  19  Normalizat    1.3141        .25854       -.83157E-06   -.20942E-03
  20  Prefactor     .95675        .22017        .60477E-06   -.18089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.93714
  norm       = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 182.859
  norm       = 3.69459
  Prefactor  = 0.0001
  Prefactor  = 13.5981
  norm       = 1.00393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.89953
  Prefactor  = 3.09135
  Prefactor  = 15.185
  Prefactor  = 0.0001
  Prefactor  = 25.7131
  Prefactor  = 52.0339
  Normalizat = 1.31409
  Prefactor  = 0.956754
 **********
 **   18 **HESSE 
 **********

 FCN=   4173.536     FROM HESSE     STATUS=OK           287 CALLS     2305 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5046        .99078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9371        45.789        .15264E-03   -1.5181    
   3  norm          .10002E-03    10.624        .20032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     182.86        236.20        .14929E-03   -1.2995    
   7  norm          3.6946        1.0577        .21012E-04   -1.5324    
   8  Prefactor     .10000E-03    5.9089        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.598        25.891        .10861E-03   -1.4970    
  10  norm          1.0039        1.8415        .11480E-03   -1.5508    
  11  Prefactor     .10000E-03    16.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8995        11.977        .16532E-03   -1.5222    
  14  Prefactor     3.0914        10.554        .11532E-02   -1.5356    
  15  Prefactor     15.185        15.101        .10278E-03   -1.4928    
  16  Prefactor     .10000E-03    4.5423        .13441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.713        46.610        .78984E-04   -1.4693    
  18  Prefactor     52.034        48.843        .55601E-04   -1.4264    
  19  Normalizat    1.3141        .30733        .26362E-03   -.83147    
  20  Prefactor     .95675        .26208        .26106E-03   -.94185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32438e-09
Minuit parameter uncertainties:
  1  2.83321e-06
  2  35.6846
  3  0.000912275
  4  3.1764e-05
  5  5.4988e-06
  6  237.445
  7  1.05773
  8  6.34874e-06
  9  25.9121
  10  1.84163
  11  2.45049e-05
  12  2.48436e-05
  13  11.9818
  14  10.5605
  15  15.1049
  16  2.28125e-06
  17  46.6759
  18  48.8805
  19  0.307761
  20  0.262432
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.091e+00  1.056e+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:  9.568e-01  2.624e-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.314e+00  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/993176/likelihoodResults_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.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) = 4171.95845576
delta logL = 1.57759204112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4171.92869126
delta logL = 1.60735654209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6075       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2569       1.0000          .0000       10.000    
     3 'Normalizat'    1.3366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93320       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=   4171.929     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6111        5.0625        .46879E-02    .55051E-04
   2  Index         1.2572        .36261        .16529       -.93697E-04
   3  Normalizat    1.3366        .24986        .59124E-01   -.14176E-04
   4  Prefactor     .93317        .21600        .45427E-01    .57837E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.61113
  Index      = 1.25716
  Normalizat = 1.33661
  Prefactor  = 0.933168
 **********
 **   18 **HESSE 
 **********

 FCN=   4171.929     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6111        7.2991        .14249E-03   -1.5278    
   2  Index         1.2572        .57687        .66258E-02   -.84590    
   3  Normalizat    1.3366        .29660        .26148E-03   -.82480    
   4  Prefactor     .93317        .25644        .26340E-03   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01454e-11
Minuit parameter uncertainties:
  1  7.30052
  2  0.579824
  3  0.296983
  4  0.256778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993176': 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) = 4171.92869111
delta logL = 1.60735669697

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.611e+00  7.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.257e+00  5.798e-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:  9.332e-01  2.568e-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.337e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.26 +/- 0.58
Photon Flux (Free Index): 1.01e-08 +/- 1.24e-08
Energy Flux (Free Index): 7.10e-05 +/- 1.12e-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/993176/cmap_HighResolution_258249601_258508801_4FGL_J1254.9+1138_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='7.10e-05', dlogl='1.61e+00', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-09-06 09:32:33.694948', photon_index_error2='0.58', photon_index2='1.26', ts='0.10', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.12e-04', EG='1.31', time_epoch_completed='1630945953.7', return_code='0', job_id='993176', GAL2='0.93', EG2='1.34', return_code2='0', photon_flux_error2='1.24e-08', ts2='3.33', photon_index='2.79' WHERE bin_id='73' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:32:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 993176: <4FGL_J1254.9+1138_daily_bin73> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin73> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:21:01 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:21:02 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:02 2021
Terminated at Mon Sep  6 09:32:34 2021
Results reported at Mon Sep  6 09:32:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin73 193.733 11.6495 258249601 258508801 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 :                                   486.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

