/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 75 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 = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1660
RA = 193.733, Dec = 11.6495
tmin = 669600001, tmax = 669859201
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='986270', job_status='RUN', time_executed='2022-03-25 00:13:37.551760', time_epoch_executed='1648192417.55' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986270/ft1_4FGL_J1254.9+1138_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986270/ft2_4FGL_J1254.9+1138_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986270/ft1_4FGL_J1254.9+1138_daily_bin1660.fits outfile=/scratch/kocevski/986270/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1660.fits ra=193.733 dec=11.6495 rad=12.0 tmin=669600001.0 tmax=669859201.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.62
user 4.29
sys 0.24

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

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

Number of photons that the gtmktime cut: 528

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986270/ft1_filtered_4FGL_J1254.9+1138_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/986270/ft2_4FGL_J1254.9+1138_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/986270/ltcube_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.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/986270/ft2_4FGL_J1254.9+1138_daily_bin1660.fits
.....................!
real 23.12
user 22.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986270/ft1_filtered_4FGL_J1254.9+1138_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/986270/ft2_4FGL_J1254.9+1138_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/986270/ltcube_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.fits outfile=/scratch/kocevski/986270/expmap_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.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/986270/ltcube_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.fits
.....................!
real 192.94
user 187.26
sys 5.26

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/986270/ft1_filtered_4FGL_J1254.9+1138_daily_bin1660.fits scfile=/scratch/kocevski/986270/ft2_4FGL_J1254.9+1138_daily_bin1660.fits outfile=/scratch/kocevski/986270/cmap_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986270/ft1_filtered_4FGL_J1254.9+1138_daily_bin1660.fits scfile=/scratch/kocevski/986270/ft2_4FGL_J1254.9+1138_daily_bin1660.fits outfile=/scratch/kocevski/986270/cmap_HighResolution_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.878       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .64200       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.170       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.441       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0297       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.672       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4030       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5963.942     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1717 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0149        3.3202       -.37199E-07    .32527E-05
   2  Prefactor     22.867        1.2879        .52668E-07   -.70149E-03
   3  norm          .10000E-03    1.3435        .42773E-06** at limit **
   4  Prefactor     .10000E-03    103.80        .33645E-05** at limit **
   5  norm          .10000E-03    11.283       -.27750E-05** at limit **
   6  Prefactor     .10000E-03    61.751       -.35289E-05** at limit **
   7  norm          .64176        .51757        .52289E-08   -.36769E-04
   8  Prefactor     .10000E-03    2.5583       -.44013E-06** at limit **
   9  Prefactor     15.165        1.1061        .29740E-07    .23939E-04
  10  norm          3.0939        1.8662        .25993E-06   -.35064E-04
  11  Prefactor     .10002E-03    498.65        .11887E-04** at limit **
  12  Prefactor     44.444        1.4670       -.79403E-08    .15575E-03
  13  Prefactor     3.0281        7.2605       -.65494E-07   -.97112E-06
  14  Prefactor     12.866        11.081        .26255E-07   -.31804E-03
  15  Prefactor     8.2437        8.6818        .31846E-07    .30547E-03
  16  Prefactor     19.720        3.7903       -.12558E-07   -.57249E-03
  17  Prefactor     .10000E-03    18.466        .75059E-06** at limit **
  18  Prefactor     51.649        2.2203        .21975E-07    .28938E-02
  19  Normalizat    1.4037        .25831        .11999E-05   -.14320E-04
  20  Prefactor     .77482        .20576       -.38138E-07   -.12660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.01487
  Prefactor  = 22.8675
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.641757
  Prefactor  = 0.0001
  Prefactor  = 15.1652
  norm       = 3.09389
  Prefactor  = 0.000100018
  Prefactor  = 44.444
  Prefactor  = 3.02814
  Prefactor  = 12.866
  Prefactor  = 8.24372
  Prefactor  = 19.72
  Prefactor  = 0.0001
  Prefactor  = 51.6494
  Normalizat = 1.40373
  Prefactor  = 0.774825
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.942     FROM HESSE     STATUS=OK           345 CALLS     2062 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0149        3.3433        .72897E-02   -1.5424    
   2  Prefactor     22.867        25.523        .20936E-02   -1.4751    
   3  norm          .10000E-03    1.3293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    102.99        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.305        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .64176        .53895        .10799E-01   -1.5548    
   8  Prefactor     .10000E-03    2.5576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.165        19.960        .25709E-02   -1.4929    
  10  norm          3.0939        1.8844        .57632E-02   -1.5356    
  11  Prefactor     .10002E-03    26.752        .13917       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.444        48.562        .15035E-02   -1.4374    
  13  Prefactor     3.0281        7.2930        .58283E-02   -1.5360    
  14  Prefactor     12.866        17.767        .27908E-02   -1.4990    
  15  Prefactor     8.2437        17.811        .34865E-02   -1.5134    
  16  Prefactor     19.720        15.292        .22545E-02   -1.4820    
  17  Prefactor     .10000E-03    18.457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.649        57.682        .13948E-02   -1.4269    
  19  Normalizat    1.4037        .21865        .58524E-01   -.80521    
  20  Prefactor     .77482        .17330        .62454E-01   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65976e-07
Minuit parameter uncertainties:
  1  3.34359
  2  25.5349
  3  2.0365e-07
  4  0.000654497
  5  7.339e-06
  6  5.98064e-05
  7  0.538956
  8  6.3106e-07
  9  19.969
  10  1.88442
  11  0.00137958
  12  48.6052
  13  7.29511
  14  17.7741
  15  17.8228
  16  15.295
  17  3.33774e-06
  18  57.7446
  19  0.218797
  20  0.173423
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.287e+01  1.777e+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:  7.748e-01  1.734e-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.404e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/986270/likelihoodResults_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.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) = 5963.94214076
delta logL = 0.000111298698357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5963.94211938
delta logL = 0.000132674726956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.956       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7746       1.0000          .0000       10.000    
     3 'Normalizat'    1.4044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77448       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5963.942     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      275 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.979        18.288        .55642E-03    .31003E-04
   2  Index         2.7759        .94519        .11745E-01    .10724E-03
   3  Normalizat    1.4042        .25375        .25877E-03   -.50084E-05
   4  Prefactor     .77448        .20609        .27630E-03   -.48552E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9789
  Index      = 2.77586
  Normalizat = 1.4042
  Prefactor  = 0.77448
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.942     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.979        17.791        .11128E-03   -1.4987    
   2  Index         2.7759        .91967        .23490E-02   -.46098    
   3  Normalizat    1.4042        .25406        .10351E-04   -.80507    
   4  Prefactor     .77448        .20621        .11052E-04   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55853e-13
Minuit parameter uncertainties:
  1  17.7984
  2  0.92626
  3  0.254289
  4  0.206413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986270': 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) = 5963.94211621
delta logL = 0.000135847586535

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.298e+01  1.780e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.776e+00  9.263e-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:  7.745e-01  2.064e-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.404e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.81
Ra Dec: 193.733 11.649

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/986270/cmap_HighResolution_669600001_669859201_4FGL_J1254.9+1138_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2022-03-25 00:23:44.885326', job_id='986270', GAL2='0.77', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1648193024.89', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.36e-04', ts2='0.81', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1660' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:23:44 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 986420: <4FGL_J1254.9+1138_daily_bin1660> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1660> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Mar 25 00:07:36 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:07:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:07:38 2022
Terminated at Fri Mar 25 00:21:56 2022
Results reported at Fri Mar 25 00:21:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1660 193.733 11.6495 669600001 669859201 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 :                                   562.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 986270: <4FGL_J1254.9+1138_daily_bin1660> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1660> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar 25 00:07:28 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:07:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:07:30 2022
Terminated at Fri Mar 25 00:23:45 2022
Results reported at Fri Mar 25 00:23:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1660 193.733 11.6495 669600001 669859201 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

