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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin77
RA = 193.733, Dec = 11.6495
tmin = 259286401, tmax = 259545601
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='993180', job_status='RUN', time_executed='2021-09-06 09:23:23.545670', time_epoch_executed='1630945403.55' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993180/ft1_4FGL_J1254.9+1138_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993180/ft2_4FGL_J1254.9+1138_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993180/ft1_4FGL_J1254.9+1138_daily_bin77.fits outfile=/scratch/kocevski/993180/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin77.fits ra=193.733 dec=11.6495 rad=12.0 tmin=259286401.0 tmax=259545601.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 2.30
user 2.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993180/ft1_filtered_4FGL_J1254.9+1138_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/993180/ft2_4FGL_J1254.9+1138_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/993180/ltcube_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.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/993180/ft2_4FGL_J1254.9+1138_daily_bin77.fits
.....................!
real 12.48
user 12.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993180/ft1_filtered_4FGL_J1254.9+1138_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/993180/ft2_4FGL_J1254.9+1138_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/993180/ltcube_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.fits outfile=/scratch/kocevski/993180/expmap_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.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/993180/ltcube_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.fits
.....................!
real 192.78
user 187.28
sys 4.96

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/993180/ft1_filtered_4FGL_J1254.9+1138_daily_bin77.fits scfile=/scratch/kocevski/993180/ft2_4FGL_J1254.9+1138_daily_bin77.fits outfile=/scratch/kocevski/993180/cmap_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993180/ft1_filtered_4FGL_J1254.9+1138_daily_bin77.fits scfile=/scratch/kocevski/993180/ft2_4FGL_J1254.9+1138_daily_bin77.fits outfile=/scratch/kocevski/993180/cmap_HighResolution_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0313       1.0000         .10000E-03   10000.    
     5 'norm      '    15.715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.261       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.373       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9941       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3032       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7741       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96708       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=   9265.788     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2049 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1737        1.6976       -.11863E-06   -.52948E-03
   2  Prefactor     .10000E-03    10.280       -.82502E-05** at limit **
   3  norm          7.1299        4.2357        .49205E-06   -.27676E-03
   4  Prefactor     8.0318        22.791        .66194E-06   -.16638E-04
   5  norm          15.715        30.058        .52981E-06   -.25612E-05
   6  Prefactor     59.261        59.012        .52819E-06    .23563E-05
   7  norm          4.2223        .86749       -.51228E-07   -.11473E-04
   8  Prefactor     .10000E-03    6.3588       -.22840E-06** at limit **
   9  Prefactor     41.372        24.677       -.24786E-07   -.24218E-06
  10  norm          1.9941        1.2163       -.29640E-07   -.24420E-03
  11  Prefactor     .10000E-03    11.473        .58953E-05** at limit **
  12  Prefactor     .10000E-03    34.834       -.96793E-06** at limit **
  13  Prefactor     6.3033        6.7393       -.18483E-06   -.19377E-03
  14  Prefactor     5.0391        8.3505       -.76352E-06   -.22295E-03
  15  Prefactor     .10000E-03    8.4813        .29237E-05** at limit **
  16  Prefactor     .10000E-03    2.5445        .23602E-07** at limit **
  17  Prefactor     14.027        17.509        .76912E-06   -.70176E-05
  18  Prefactor     8.7745        74.041        .83842E-06   -.55690E-05
  19  Normalizat    1.3027        .17881        .72926E-08   -.57862E-04
  20  Prefactor     .96712        .14957       -.98238E-07   -.56344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17366
  Prefactor  = 0.0001
  norm       = 7.12989
  Prefactor  = 8.03178
  norm       = 15.715
  Prefactor  = 59.261
  norm       = 4.22231
  Prefactor  = 0.0001
  Prefactor  = 41.372
  norm       = 1.99408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.30327
  Prefactor  = 5.03909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0266
  Prefactor  = 8.77451
  Normalizat = 1.30266
  Prefactor  = 0.96712
 **********
 **   18 **HESSE 
 **********

 FCN=   9265.788     FROM HESSE     STATUS=OK           297 CALLS     2346 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1737        1.6657        .14711E-03   -1.5491    
   2  Prefactor     .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1299        4.2236        .13460E-03   -1.5174    
   4  Prefactor     8.0318        22.780        .14148E-03   -1.5141    
   5  norm          15.715        30.082        .10103E-03   -1.4915    
   6  Prefactor     59.261        59.014        .52118E-04   -1.4167    
   7  norm          4.2223        .87020        .36570E-04   -1.5297    
   8  Prefactor     .10000E-03    6.4331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.372        24.675        .62321E-04   -1.4421    
  10  norm          1.9941        1.2159        .79059E-04   -1.5426    
  11  Prefactor     .10000E-03    11.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3033        6.7548        .15988E-03   -1.5206    
  14  Prefactor     5.0391        8.4127        .17914E-03   -1.5259    
  15  Prefactor     .10000E-03    8.5878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5503        .14995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.027        17.505        .10695E-03   -1.4959    
  18  Prefactor     8.7745        74.123        .13532E-03   -1.5115    
  19  Normalizat    1.3027        .21450        .27258E-03   -.83487    
  20  Prefactor     .96712        .17872        .26543E-03   -.93834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88473e-10
Minuit parameter uncertainties:
  1  1.66574
  2  7.7972e-06
  3  4.22381
  4  22.8045
  5  30.1112
  6  59.0725
  7  0.870201
  8  2.03409e-06
  9  24.6814
  10  1.21593
  11  3.28913e-06
  12  4.49192e-05
  13  6.75567
  14  8.4147
  15  1.62996e-06
  16  1.24451e-07
  17  17.5109
  18  51.0911
  19  0.214647
  20  0.178832
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  5.039e+00  8.415e+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:  9.671e-01  1.788e-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.303e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993180/likelihoodResults_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.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) = 9265.17767165
delta logL = 0.610343723418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9265.16986389
delta logL = 0.61815148393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6454       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6821       1.0000          .0000       10.000    
     3 'Normalizat'    1.3245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95269       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=   9265.170     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      208 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6454        5.5059        .46682E-02   -.32464E-02
   2  Index         1.6821        .39725        .28015       -.11657E-03
   3  Normalizat    1.3244        .17331        .61177E-01    .75799E-05
   4  Prefactor     .95270        .14874        .45673E-01    .19022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64541
  Index      = 1.6821
  Normalizat = 1.32444
  Prefactor  = 0.952697
 **********
 **   18 **HESSE 
 **********

 FCN=   9265.170     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6454        8.0233        .18673E-03   -1.5277    
   2  Index         1.6821        .79958        .99962E-02   -.72559    
   3  Normalizat    1.3244        .20714        .27057E-03   -.82840    
   4  Prefactor     .95270        .17764        .26703E-03   -.94323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64657e-08
Minuit parameter uncertainties:
  1  8.02514
  2  0.805799
  3  0.207274
  4  0.177752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993180': 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) = 9265.16986388
delta logL = 0.618151490533

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.645e+00  8.025e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.682e+00  8.058e-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.527e-01  1.778e-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.324e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.68 +/- 0.81
Photon Flux (Free Index): 8.78e-09 +/- 1.58e-08
Energy Flux (Free Index): 1.52e-05 +/- 2.61e-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/993180/cmap_HighResolution_259286401_259545601_4FGL_J1254.9+1138_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='6.18e-01', photon_flux2='8.78e-09', job_status='DONE', time_completed='2021-09-06 09:35:39.665337', photon_index_error2='0.81', photon_index2='1.68', ts='0.45', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.49e-08', energy_flux_error2='2.61e-05', EG='1.30', time_epoch_completed='1630946139.67', return_code='0', job_id='993180', GAL2='0.95', EG2='1.32', return_code2='0', photon_flux_error2='1.58e-08', ts2='1.67', photon_index='2.79' WHERE bin_id='77' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 993180: <4FGL_J1254.9+1138_daily_bin77> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin77> 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) <bullet0047>, 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:35:40 2021
Results reported at Mon Sep  6 09:35:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin77 193.733 11.6495 259286401 259545601 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 :                                   732.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

