/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 2 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin418
RA = 193.733, Dec = 11.6495
tmin = 347673601, tmax = 347932801
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='995697', job_status='RUN', time_executed='2021-09-06 09:30:47.398243', time_epoch_executed='1630945847.4' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995697/ft1_4FGL_J1254.9+1138_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995697/ft2_4FGL_J1254.9+1138_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995697/ft1_4FGL_J1254.9+1138_daily_bin418.fits outfile=/scratch/kocevski/995697/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin418.fits ra=193.733 dec=11.6495 rad=12.0 tmin=347673601.0 tmax=347932801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.43
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995697/ft1_filtered_4FGL_J1254.9+1138_daily_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/995697/ft2_4FGL_J1254.9+1138_daily_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/995697/ltcube_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.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/995697/ft2_4FGL_J1254.9+1138_daily_bin418.fits
.....................!
real 12.09
user 11.78
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995697/ft1_filtered_4FGL_J1254.9+1138_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/995697/ft2_4FGL_J1254.9+1138_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/995697/ltcube_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.fits outfile=/scratch/kocevski/995697/expmap_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.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/995697/ltcube_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.fits
.....................!
real 191.82
user 186.84
sys 4.50

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/995697/ft1_filtered_4FGL_J1254.9+1138_daily_bin418.fits scfile=/scratch/kocevski/995697/ft2_4FGL_J1254.9+1138_daily_bin418.fits outfile=/scratch/kocevski/995697/cmap_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995697/ft1_filtered_4FGL_J1254.9+1138_daily_bin418.fits scfile=/scratch/kocevski/995697/ft2_4FGL_J1254.9+1138_daily_bin418.fits outfile=/scratch/kocevski/995697/cmap_HighResolution_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5834       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0234       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8437       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.334       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0174       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0358       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1205       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8416       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0136       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98448       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=   7386.314     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1760 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5834        3.4987        .77700E-07   -.27774E-03
   2  Prefactor     5.0049        22.269       -.11750E-05   -.63780E-04
   3  norm          2.8461        3.5593        .15895E-05   -.72771E-03
   4  Prefactor     .10000E-03    41.900        .27077E-04** at limit **
   5  norm          11.754        33.307       -.15695E-04   -.46592E-04
   6  Prefactor     .10000E-03    95.188       -.13122E-04** at limit **
   7  norm          .10000E-03    .21918        .13910E-06** at limit **
   8  Prefactor     20.336        13.268        .63071E-06   -.21369E-04
   9  Prefactor     4.0115        44.787       -.66734E-05   -.45059E-04
  10  norm          3.0359        1.4873        .61085E-07   -.51824E-03
  11  Prefactor     8.1730        18.733        .45669E-06   -.32626E-04
  12  Prefactor     .10000E-03    16.969        .12904E-05** at limit **
  13  Prefactor     5.1187        7.2525        .81638E-05   -.20429E-03
  14  Prefactor     29.993        13.436       -.11133E-06   -.34535E-04
  15  Prefactor     9.8425        12.054       -.22963E-06   -.55072E-04
  16  Prefactor     .10000E-03    2.5125       -.61890E-08** at limit **
  17  Prefactor     .10000E-03    35.773       -.20241E-04** at limit **
  18  Prefactor     .10000E-03    12.866       -.60597E-06** at limit **
  19  Normalizat    1.0134        .18929       -.11130E-05   -.78461E-04
  20  Prefactor     .98469        .15565       -.44835E-07   -.11909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58344
  Prefactor  = 5.00493
  norm       = 2.84608
  Prefactor  = 0.0001
  norm       = 11.7539
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3357
  Prefactor  = 4.01148
  norm       = 3.0359
  Prefactor  = 8.173
  Prefactor  = 0.0001
  Prefactor  = 5.11871
  Prefactor  = 29.9932
  Prefactor  = 9.84248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01344
  Prefactor  = 0.984685
 **********
 **   18 **HESSE 
 **********

 FCN=   7386.314     FROM HESSE     STATUS=OK           299 CALLS     2059 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5834        3.4976        .12228E-03   -1.5235    
   2  Prefactor     5.0049        22.093        .17941E-03   -1.5260    
   3  norm          2.8461        3.4949        .14473E-03   -1.5371    
   4  Prefactor     .10000E-03    42.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.754        33.082        .11678E-03   -1.5022    
   6  Prefactor     .10000E-03    95.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .52076        .76856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.336        13.115        .88823E-04   -1.4806    
   9  Prefactor     4.0115        43.891        .20120E-03   -1.5307    
  10  norm          3.0359        1.4809        .69596E-04   -1.5359    
  11  Prefactor     8.1730        18.717        .14020E-03   -1.5136    
  12  Prefactor     .10000E-03    16.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1187        7.1882        .17767E-03   -1.5255    
  14  Prefactor     29.993        13.469        .73159E-04   -1.4612    
  15  Prefactor     9.8425        12.050        .12773E-03   -1.5080    
  16  Prefactor     .10000E-03    2.5155        .13303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0134        .22269        .27347E-03   -.92581    
  20  Prefactor     .98469        .18335        .23787E-03   -.93242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70678e-10
Minuit parameter uncertainties:
  1  3.4977
  2  21.0438
  3  3.49512
  4  0.000130416
  5  33.1338
  6  1.0181e-05
  7  8.29973e-06
  8  13.1171
  9  26.5627
  10  1.48091
  11  18.7303
  12  1.19528e-05
  13  7.18937
  14  13.4702
  15  12.0529
  16  2.32282e-06
  17  0.00015267
  18  4.42038e-06
  19  0.222893
  20  0.183468
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.999e+01  1.347e+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.847e-01  1.835e-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.013e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.10
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 5.31e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.20e-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) = 7385.42034637
delta logL = 0.893392103747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7385.41866846
delta logL = 0.895070020245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.771       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4941       1.0000          .0000       10.000    
     3 'Normalizat'    .96596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       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=   7385.419     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      273 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.772        14.204        .92443E-04   -.22087E-03
   2  Index         3.4943        .64696        .53024E-02   -.75867E-04
   3  Normalizat    .96590        .21774        .27913E-03    .93513E-04
   4  Prefactor     1.0150        .18419        .23470E-03    .11495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7719
  Index      = 3.49431
  Normalizat = 0.965902
  Prefactor  = 1.01498
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.419     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.772        13.021        .36977E-05   -1.4841    
   2  Index         3.4943        .59296        .21210E-03   -.30589    
   3  Normalizat    .96590        .21800        .11165E-04   -.94182    
   4  Prefactor     1.0150        .18431        .93881E-05   -.92232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25327e-11
Minuit parameter uncertainties:
  1  13.0225
  2  0.594495
  3  0.218203
  4  0.184429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995697': 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) = 7385.41866824
delta logL = 0.895070231549

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.877e+01  1.302e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.494e+00  5.945e-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:  1.015e+00  1.844e-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:  9.659e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.11
Ra Dec: 193.733 11.649
Photon Index (Free Index): 3.49 +/- 0.59
Photon Flux (Free Index): 1.56e-07 +/- 6.33e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.04e-05

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/995697/cmap_HighResolution_347673601_347932801_4FGL_J1254.9+1138_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='2.59e-05', photon_flux_error='5.31e-08', dlogl='8.95e-01', energy_flux='2.66e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-06 09:40:11.089701', photon_index_error2='0.59', photon_index2='3.49', ts='9.10', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.01', time_epoch_completed='1630946411.09', return_code='0', job_id='995697', GAL2='1.01', EG2='0.97', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='6.33e-08', ts2='11.11', photon_index='2.79' WHERE bin_id='418' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:40:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 995697: <4FGL_J1254.9+1138_daily_bin418> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin418 193.733 11.6495 347673601 347932801 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 :                                   560.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            575 sec.

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

