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


Performing analysis on: 4FGL_J1754.2+3212_daily_bin1412
RA = 268.553, Dec = 32.2007
tmin = 605318401, tmax = 605577601
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='302465', job_status='RUN', time_executed='2021-09-18 22:20:26.543332', time_epoch_executed='1632028826.54' WHERE source_name='4FGL J1754.2+3212' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302465/ft1_4FGL_J1754.2+3212_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302465/ft1_4FGL_J1754.2+3212_daily_bin1412.fits outfile=/scratch/kocevski/302465/ft1_filteredMKT_4FGL_J1754.2+3212_daily_bin1412.fits ra=268.553 dec=32.2007 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.50
user 5.26
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.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/302465/ft1_filteredMKT_4FGL_J1754.2+3212_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/302465/ltcube_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.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/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits
.....................!
real 11.99
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/302465/ltcube_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.fits outfile=/scratch/kocevski/302465/expmap_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.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/302465/ltcube_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.fits
.....................!
real 190.27
user 184.73
sys 4.91

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1754.2+3212 @ 268.553 32.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits scfile=/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits outfile=/scratch/kocevski/302465/cmap_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.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=268.553 yref=32.2007 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits scfile=/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits outfile=/scratch/kocevski/302465/cmap_HighResolution_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.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=268.553 yref=32.2007 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302465/Model_4FGL_J1754.2+3212_daily_bin1412.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/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits.....................!
real 78.98
user 77.24
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits', '/scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits', expMap='/scratch/kocevski/302465/expmap_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.fits', expCube='/scratch/kocevski/302465/ltcube_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302465/Model_4FGL_J1754.2+3212_daily_bin1412.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1754.2+3212'

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  1.314e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302465/ft1_filtered_4FGL_J1754.2+3212_daily_bin1412.fits
Spacecraft file(s): /scratch/kocevski/302465/ft2_4FGL_J1754.2+3212_daily_bin1412.fits
Exposure map: /scratch/kocevski/302465/expmap_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.fits
Exposure cube: /scratch/kocevski/302465/ltcube_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302465/Model_4FGL_J1754.2+3212_daily_bin1412.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) = 9618.04036134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.107       1.0000         .10000E-03   10000.    
     3 'norm      '    7.8222       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22819E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0118       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5508       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6934       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7291       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2255       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85856       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2812       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6941       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92098       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9617.970     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2975 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13705        5.8291       -.10972E-05    .52628E-03
   2  Prefactor     45.079        52.312       -.17660E-05   -.35988E-04
   3  norm          7.8216        6.0471        .35964E-07    .25285E-03
   4  Prefactor     46.010        62.178        .55324E-06    .76278E-04
   5  Prefactor     .10000E-03    45.317       -.59056E-08** at limit **
   6  Prefactor     .10000E-03    13.348        .13057E-05** at limit **
   7  Prefactor     46.141        68.267       -.57779E-06   -.10172E-04
   8  Prefactor     .10000E-03    2.9845        .19747E-07** at limit **
   9  Prefactor     .10000E-03    201.68       -.64016E-05** at limit **
  10  Prefactor     52.182        84.837        .36680E-05    .24052E-04
  11  Prefactor     7.0121        6.8639        .98158E-07    .28926E-04
  12  norm          2.5506        1.6557        .32854E-07    .70692E-04
  13  norm          4.7765        91.233        .10244E-04    .74005E-04
  14  norm          2.8379        5.8216        .40696E-06    .13604E-04
  15  Prefactor     1.7289        3.0975        .48438E-06    .69398E-04
  16  norm          .10000E-03    2.6636       -.31568E-07** at limit **
  17  Prefactor     9.2255        4.9466        .13869E-07    .42313E-03
  18  Prefactor     .85084        11.012       -.21707E-05    .35537E-03
  19  norm          2.2819        29.888        .50576E-06    .24598E-06
  20  Prefactor     8.6936        7.3269        .22304E-05    .21193E-03
  21  norm          .10000E-03    12.967       -.61084E-07** at limit **
  22  norm          .10000E-03    .83363       -.53102E-07** at limit **
  23  norm          .10000E-03    .68240       -.80197E-07** at limit **
  24  Normalizat    .92090        .19765        .41029E-06    .26696E-03
  25  Prefactor     .99685        .88771E-01   -.39516E-06    .64050E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.137049
  Prefactor  = 45.0793
  norm       = 7.8216
  Prefactor  = 46.0101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.1411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.1822
  Prefactor  = 7.01211
  norm       = 2.55059
  norm       = 4.77646
  norm       = 2.83788
  Prefactor  = 1.72891
  norm       = 0.0001
  Prefactor  = 9.22548
  Prefactor  = 0.850844
  norm       = 2.2819
  Prefactor  = 8.69356
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.920904
  Prefactor  = 0.996848
 **********
 **   18 **HESSE 
 **********

 FCN=   9617.970     FROM HESSE     STATUS=OK           437 CALLS     3412 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13705        10.022        .66197E-01   -1.5634    
   2  Prefactor     45.079        52.603        .59696E-04   -1.4364    
   3  norm          7.8216        6.0486        .14337E-03   -1.5149    
   4  Prefactor     46.010        62.287        .59116E-04   -1.4350    
   5  Prefactor     .10000E-03    45.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.141        68.268        .59015E-04   -1.4348    
   8  Prefactor     .10000E-03    2.9923        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    211.45        .40214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     52.182        85.287        .55506E-04   -1.4262    
  11  Prefactor     7.0121        6.8587        .15150E-03   -1.5178    
  12  norm          2.5506        1.6523        .98715E-04   -1.5389    
  13  norm          4.7765        94.446        .18575E-03   -1.5271    
  14  norm          2.8379        5.8037        .24139E-03   -1.5371    
  15  Prefactor     1.7289        3.0662        .22362E-03   -1.5445    
  16  norm          .10000E-03    2.6656        .15629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2255        4.9352        .13195E-03   -1.5100    
  18  Prefactor     .85084        76.406        .57360E-02   -1.5523    
  19  norm          2.2819        29.972        .27184E-03   -1.5406    
  20  Prefactor     8.6936        7.3400        .67972E-03   -1.5118    
  21  norm          .10000E-03    12.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .84295        .87446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .70550        .15827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92090        .22992        .36708E-03   -.95729    
  25  Prefactor     .99685        .10414        .16515E-03   -.92835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04058e-09
Minuit parameter uncertainties:
  1  2.34351
  2  52.6576
  3  6.04911
  4  62.3756
  5  1.58646e-05
  6  2.30125e-05
  7  68.3836
  8  2.23415e-07
  9  5.10454e-05
  10  85.4877
  11  6.85944
  12  1.65231
  13  42.556
  14  5.80482
  15  3.06652
  16  2.24842e-06
  17  4.93544
  18  16.1461
  19  16.5497
  20  7.34079
  21  8.13257e-06
  22  3.06311e-06
  23  4.31406e-06
  24  0.230168
  25  0.104166
Done.

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

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  2.551e+00  1.652e+00  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  9.968e-01  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.209e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 268.553 32.201
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.82e-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) = 9617.968773
delta logL = 0.00166406279095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9617.96875812
delta logL = 0.00167893416256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5526       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7839       1.0000          .0000       5.0000    
     3 'Normalizat'    .91977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99700       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9617.969     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      227 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5523        40.145        .63890E-02    .55598E-04
   2  alpha         1.7838        2.8287        .43519        .38128E-05
   3  Normalizat    .91982        .13409        .82958E-01    .35147E-04
   4  Prefactor     .99699        .40020E-01    .46230E-01   -.55076E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55228
  alpha      = 1.78379
  Normalizat = 0.919816
  Prefactor  = 0.996988
 **********
 **   18 **HESSE 
 **********

 FCN=   9617.969     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .30E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5523        1.6437        .98217E-04   -1.5388    
   2  alpha         1.7838        .61414        .17437E-01   -.29055    
   3  Normalizat    .91982        .21519        .36727E-03   -.95767    
   4  Prefactor     .99699        .10071        .16513E-03   -.92830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.982e-14
Minuit parameter uncertainties:
  1  1.6437
  2  0.621081
  3  0.215394
  4  0.100734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302465': 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) = 9617.96875805
delta logL = 0.00167900814813

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  2.552e+00  1.644e+00  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.784e+00  6.211e-01  0.000e+00  5.000e+00 ( 1.000e+00)
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  9.970e-01  1.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.198e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.87
Ra Dec: 268.553 32.201
Photon Index (Free Index): 1.78 +/- 0.62
Photon Flux (Free Index): 2.61e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.72e-05 +/- 2.42e-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/302465/cmap_HighResolution_605318401_605577601_4FGL_J1754.2+3212_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='2.72e-05', photon_flux_error='1.62e-08', dlogl='1.68e-03', energy_flux='2.81e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-18 22:36:01.561862', photon_index_error2='0.62', photon_index2='1.78', ts='5.87', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='0.92', time_epoch_completed='1632029761.56', return_code='0', job_id='302465', GAL2='1.00', EG2='0.92', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='2.56e-08', ts2='5.87', photon_index='1.75' WHERE bin_id='1412' AND source_name='4FGL J1754.2+3212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 22:36:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 302465: <4FGL_J1754.2+3212_daily_bin1412> in cluster <slac> Done

Job <4FGL_J1754.2+3212_daily_bin1412> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 22:20:12 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 22:20:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 22:20:13 2021
Terminated at Sat Sep 18 22:36:02 2021
Results reported at Sat Sep 18 22:36:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1754.2+3212_daily_bin1412 268.553 32.2007 605318401 605577601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1754.2+3212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   928.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             344.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

