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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin458
RA = 192.46, Dec = 37.1306
tmin = 358041601, tmax = 358300801
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='937099', job_status='RUN', time_executed='2021-09-06 06:38:08.316872', time_epoch_executed='1630935488.32' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937099/ft1_4FGL_J1249.8+3707_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937099/ft1_4FGL_J1249.8+3707_daily_bin458.fits outfile=/scratch/kocevski/937099/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin458.fits ra=192.46 dec=37.1306 rad=12.0 tmin=358041601.0 tmax=358300801.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.49
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.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/937099/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin458.fits evtable="EVENTS" outfile="/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.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.55
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/937099/ltcube_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.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/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits
.....................!
real 12.50
user 12.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/937099/ltcube_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.fits outfile=/scratch/kocevski/937099/expmap_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.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/937099/ltcube_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.fits
.....................!
real 192.14
user 185.05
sys 5.98

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

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits scfile=/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits outfile=/scratch/kocevski/937099/cmap_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.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=192.46 yref=37.1306 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.85
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits scfile=/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits outfile=/scratch/kocevski/937099/cmap_HighResolution_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.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=192.46 yref=37.1306 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.81
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937099/Model_4FGL_J1249.8+3707_daily_bin458.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/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits.....................!
real 51.49
user 49.57
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits', '/scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits', expMap='/scratch/kocevski/937099/expmap_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.fits', expCube='/scratch/kocevski/937099/ltcube_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937099/Model_4FGL_J1249.8+3707_daily_bin458.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/937099/ft1_filtered_4FGL_J1249.8+3707_daily_bin458.fits
Spacecraft file(s): /scratch/kocevski/937099/ft2_4FGL_J1249.8+3707_daily_bin458.fits
Exposure map: /scratch/kocevski/937099/expmap_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.fits
Exposure cube: /scratch/kocevski/937099/ltcube_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937099/Model_4FGL_J1249.8+3707_daily_bin458.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) = 6084.81461685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4642       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.303       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8375       1.0000         .10000E-03   10000.    
    19 'norm      '    .10596E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0576       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23927E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.154       1.0000         .10000E-03   10000.    
    24 'Prefactor '    80.071       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6084.807     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3133 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.308        .71476E-07** at limit **
   2  Prefactor     .10000E-03    76.681        .19012E-05** at limit **
   3  norm          11.140        4.0941        .98247E-08   -.13888E-04
   4  Prefactor     .10000E-03    3.2903        .13291E-06** at limit **
   5  Prefactor     2.4382        2.3035       -.19465E-07   -.70139E-04
   6  Prefactor     .29476        1.6752        .23740E-06   -.12760E-03
   7  Prefactor     3.2046        16.001        .86292E-06   -.12995E-04
   8  Prefactor     .10000E-03    7.4017        .54784E-07** at limit **
   9  Prefactor     8.2346        22.800       -.64459E-05   -.37627E-04
  10  Prefactor     79.079        102.34       -.79607E-06   -.13385E-03
  11  Prefactor     4.4635        7.5731        .76220E-05   -.31721E-03
  12  norm          6.6054        7.4201       -.48417E-07    .49788E-04
  13  Prefactor     52.250        45.745       -.11567E-06   -.13334E-03
  14  Prefactor     .10000E-03    45.946        .24643E-06** at limit **
  15  Prefactor     .10000E-03    9.1624       -.49769E-06** at limit **
  16  norm          .10000E-03    3.2689       -.14918E-06** at limit **
  17  norm          21.295        15.199        .15236E-06    .74050E-06
  18  norm          2.8405        3.5411       -.49577E-06    .38875E-03
  19  norm          .10003E-03    5.5537       -.19610E-06** at limit **
  20  Prefactor     1.0598        3.0660       -.17828E-05    .29506E-03
  21  Prefactor     .10000E-03    13.628        .46524E-06** at limit **
  22  Prefactor     .10059E-03    877.91       -.41886E-04** at limit **
  23  Prefactor     11.152        17.669        .13765E-06    .31935E-04
  24  Prefactor     80.047        92.471       -.19202E-05   -.31668E-04
  25  Normalizat    .86388        .18749       -.10121E-05    .12601E-03
  26  Prefactor     1.3479        .23110       -.18710E-05    .15497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.1396
  Prefactor  = 0.0001
  Prefactor  = 2.43824
  Prefactor  = 0.294757
  Prefactor  = 3.20463
  Prefactor  = 0.0001
  Prefactor  = 8.23457
  Prefactor  = 79.0787
  Prefactor  = 4.46355
  norm       = 6.60535
  Prefactor  = 52.2503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.2947
  norm       = 2.8405
  norm       = 0.000100034
  Prefactor  = 1.05983
  Prefactor  = 0.000100001
  Prefactor  = 0.000100595
  Prefactor  = 11.1525
  Prefactor  = 80.0465
  Normalizat = 0.863877
  Prefactor  = 1.34793
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.807     FROM HESSE     STATUS=OK           460 CALLS     3593 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.140        4.0846        .87539E-04   -1.5040    
   4  Prefactor     .10000E-03    3.3119        .13818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4382        2.3041        .10627E-03   -1.5396    
   6  Prefactor     .29476        6.4565        .17839E-02   -1.5599    
   7  Prefactor     3.2046        15.331        .22667E-03   -1.5350    
   8  Prefactor     .10000E-03    7.4070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2346        22.802        .13969E-03   -1.5134    
  10  Prefactor     79.079        102.51        .22573E-03   -1.3927    
  11  Prefactor     4.4635        7.6294        .95287E-03   -1.5285    
  12  norm          6.6054        7.3699        .15615E-03   -1.5194    
  13  Prefactor     52.250        45.814        .27737E-03   -1.4261    
  14  Prefactor     .10000E-03    46.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3013        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.295        15.200        .86781E-04   -1.4785    
  18  norm          2.8405        3.1287        .13733E-03   -1.5371    
  19  norm          .10003E-03    13.174        .31442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0598        2.9609        .21486E-03   -1.5502    
  21  Prefactor     .10000E-03    13.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10059E-03    909.52        .40122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.152        17.667        .11996E-03   -1.5040    
  24  Prefactor     80.047        92.770        .44882E-04   -1.3916    
  25  Normalizat    .86388        .22219        .27059E-03   -.97741    
  26  Prefactor     1.3479        .27604        .27994E-03   -.81893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84189e-08
Minuit parameter uncertainties:
  1  3.79136e-07
  2  0.000657702
  3  4.08468
  4  6.06415e-06
  5  2.30414
  6  2.75892
  7  14.0244
  8  4.50255e-06
  9  22.826
  10  102.742
  11  7.63103
  12  7.37096
  13  45.8449
  14  6.1835e-05
  15  6.3121e-05
  16  3.97123e-06
  17  15.203
  18  3.12891
  19  0.00133778
  20  2.96133
  21  0.000273446
  22  0.0472577
  23  17.6749
  24  92.9382
  25  0.222421
  26  0.276339
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  8.235e+00  2.283e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.348e+00  2.763e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.639e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937099/likelihoodResults_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.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): 102
logL (Free Index) = 6084.0206792
delta logL = 0.78597041666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6083.96614199
delta logL = 0.840507622074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21269E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.3847       1.0000          .0000       10.000    
     3 'Normalizat'    .77368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6083.966     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      356 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21103E-01    .25325        .20293E-02    .92974E-02
   2  Index         4.3881        1.5143        .80295E-01    .32158E-03
   3  Normalizat    .77364        .40149E-01    .64347E-01    .39737E-03
   4  Prefactor     1.4257        .50676E-01    .61830E-01    .37850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0211034
  Index      = 4.3881
  Normalizat = 0.77364
  Prefactor  = 1.4257
 **********
 **   18 **HESSE 
 **********

 FCN=   6083.966     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      389 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21103E-01    .69598        .92543E-04   -1.5679    
   2  Index         4.3881        3.1088        .28508E-02   -.12269    
   3  Normalizat    .77364        .16094        .28466E-03   -1.0105    
   4  Prefactor     1.4257        .20043        .27344E-03   -.79642    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92113e-10
Minuit parameter uncertainties:
  1  0.241813
  2  3.35962
  3  0.161037
  4  0.20054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937099': 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): 102
logL (Free Index) = 6083.96612835
delta logL = 0.840521264228

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.110e-02  2.418e-01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  4.388e+00  3.360e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.426e+00  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  7.736e-01  1.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 192.460 37.131
Photon Index (Free Index): 4.39 +/- 3.36
Photon Flux (Free Index): 6.79e-08 +/- 5.33e-08
Energy Flux (Free Index): 9.61e-06 +/- 8.63e-06

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/937099/cmap_HighResolution_358041601_358300801_4FGL_J1249.8+3707_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', comment='SUCCESS', energy_flux2='9.61e-06', dlogl='8.41e-01', photon_flux2='6.79e-08', job_status='DONE', time_completed='2021-09-06 06:50:53.639631', photon_index_error2='3.36', photon_index2='4.39', ts='0.19', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='6.09e-08', energy_flux_error2='8.63e-06', EG='0.86', time_epoch_completed='1630936253.64', return_code='0', job_id='937099', GAL2='1.43', EG2='0.77', return_code2='102', photon_flux_error2='5.33e-08', ts2='2.01', photon_index='1.78' WHERE bin_id='458' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 937099: <4FGL_J1249.8+3707_daily_bin458> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin458> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:27 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:35:28 2021
Terminated at Mon Sep  6 06:50:54 2021
Results reported at Mon Sep  6 06:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin458 192.46 37.1306 358041601 358300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

