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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin391
RA = 183.774, Dec = 16.9372
tmin = 340675201, tmax = 340934401
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='435459', job_status='RUN', time_executed='2021-09-05 05:15:49.972870', time_epoch_executed='1630844149.97' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435459

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435459/ft1_4FGL_J1215.0+1656_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435459/ft1_4FGL_J1215.0+1656_daily_bin391.fits outfile=/scratch/kocevski/435459/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin391.fits ra=183.774 dec=16.9372 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.10
user 5.85
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.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/435459/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin391.fits evtable="EVENTS" outfile="/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/435459/ltcube_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.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/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits
.....................!
real 10.89
user 10.46
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/435459/ltcube_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.fits outfile=/scratch/kocevski/435459/expmap_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.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/435459/ltcube_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.fits
.....................!
real 191.61
user 186.09
sys 5.02

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

Setting source of interest to:
4FGL J1215.0+1656 @ 183.774 16.9372

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits scfile=/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits outfile=/scratch/kocevski/435459/cmap_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.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=183.774 yref=16.9372 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits scfile=/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits outfile=/scratch/kocevski/435459/cmap_HighResolution_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.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=183.774 yref=16.9372 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435459/Model_4FGL_J1215.0+1656_daily_bin391.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/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits.....................!
real 54.31
user 52.93
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits', '/scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits', expMap='/scratch/kocevski/435459/expmap_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.fits', expCube='/scratch/kocevski/435459/ltcube_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435459/Model_4FGL_J1215.0+1656_daily_bin391.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1215.0+1656'

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.342e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/435459/ft1_filtered_4FGL_J1215.0+1656_daily_bin391.fits
Spacecraft file(s): /scratch/kocevski/435459/ft2_4FGL_J1215.0+1656_daily_bin391.fits
Exposure map: /scratch/kocevski/435459/expmap_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.fits
Exposure cube: /scratch/kocevski/435459/ltcube_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435459/Model_4FGL_J1215.0+1656_daily_bin391.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) = 5582.47114967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11987E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3155       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.820       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.038       1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.951       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2854       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0002       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4697       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5582.458     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3177 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.790       -.37038E-08** at limit **
   2  Prefactor     .10000E-03    63.695       -.86479E-06** at limit **
   3  Prefactor     .10000E-03    12.694       -.37876E-07** at limit **
   4  Prefactor     2.4363        1.9190       -.74011E-07   -.12843E-03
   5  Prefactor     .10000E-03    36.768       -.15845E-05** at limit **
   6  Prefactor     .10000E-03    3.4421       -.14754E-07** at limit **
   7  Prefactor     .10000E-03    5.8305       -.13299E-07** at limit **
   8  Prefactor     .10000E-03    1.1943       -.38639E-08** at limit **
   9  Prefactor     48.169        56.572       -.25147E-05   -.29875E-05
  10  Prefactor     5.2932        4.1775       -.89147E-07   -.30354E-03
  11  Prefactor     3.9821        4.2898       -.18837E-06   -.38660E-03
  12  Prefactor     8.0532        27.575        .16451E-04   -.22013E-04
  13  Prefactor     1.2834        1.8332       -.13253E-06   -.39952E-03
  14  Prefactor     .10000E-03    36.583        .16578E-05** at limit **
  15  Prefactor     .10000E-03    1.9877       -.11095E-07** at limit **
  16  norm          .42766        .24019       -.19136E-07   -.38916E-03
  17  Prefactor     .10000E-03    507.80        .62444E-04** at limit **
  18  norm          1.3155        2.9403       -.44118E-06   -.64276E-03
  19  Prefactor     15.820        12.185        .12739E-06   -.46415E-04
  20  Prefactor     16.036        19.162        .87011E-06   -.29320E-04
  21  Prefactor     72.831        72.784       -.62825E-04   -.20121E-03
  22  Prefactor     6.2854        7.9421       -.70751E-06   -.95515E-04
  23  Prefactor     3.0213        21.451        .37251E-04    .20424E-03
  24  Prefactor     .10000E-03    22.295       -.46700E-06** at limit **
  25  Normalizat    1.4699        .21375       -.78361E-06   -.81045E-04
  26  Prefactor     .85694        .20048        .26219E-05   -.18318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1689
  Prefactor  = 5.29323
  Prefactor  = 3.98211
  Prefactor  = 8.05321
  Prefactor  = 1.28336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.427664
  Prefactor  = 0.000100001
  norm       = 1.31554
  Prefactor  = 15.8195
  Prefactor  = 16.0362
  Prefactor  = 72.831
  Prefactor  = 6.28536
  Prefactor  = 3.02128
  Prefactor  = 0.0001
  Normalizat = 1.46992
  Prefactor  = 0.856937
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.458     FROM HESSE     STATUS=OK           456 CALLS     3633 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4363        1.9175        .88379E-04   -1.5396    
   5  Prefactor     .10000E-03    36.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4471        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8363        .17619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1981        .79716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.169        56.596        .57771E-04   -1.4319    
  10  Prefactor     5.2932        4.1539        .11482E-03   -1.5248    
  11  Prefactor     3.9821        4.2600        .13651E-03   -1.5309    
  12  Prefactor     8.0532        27.522        .14122E-03   -1.5140    
  13  Prefactor     1.2834        1.7977        .11744E-03   -1.5481    
  14  Prefactor     .10000E-03    36.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9906        .10285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .42766        .23850        .26282E-04   -1.5577    
  17  Prefactor     .10000E-03    507.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3155        2.8916        .18582E-03   -1.5479    
  19  Prefactor     15.820        12.183        .10070E-03   -1.4912    
  20  Prefactor     16.036        19.157        .10001E-03   -1.4907    
  21  Prefactor     72.831        72.704        .23503E-03   -1.3999    
  22  Prefactor     6.2854        7.9424        .16011E-03   -1.5207    
  23  Prefactor     3.0213        21.229        .23435E-03   -1.5360    
  24  Prefactor     .10000E-03    22.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4699        .25216        .24752E-03   -.78627    
  26  Prefactor     .85694        .23513        .30187E-03   -.97662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41859e-09
Minuit parameter uncertainties:
  1  2.78376e-06
  2  2.08881e-05
  3  1.93433e-05
  4  1.91758
  5  1.2585e-05
  6  1.55458e-06
  7  1.23821e-06
  8  3.00895e-07
  9  56.6589
  10  4.15412
  11  4.26037
  12  27.5654
  13  1.79781
  14  9.74146e-05
  15  6.78924e-07
  16  0.238504
  17  0.00133738
  18  2.89195
  19  12.1848
  20  19.1643
  21  72.7924
  22  7.94374
  23  16.025
  24  0.000186628
  25  0.252374
  26  0.235402
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.982e+00  4.260e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.569e-01  2.354e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.470e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.72e-05

TS (Fixed Index): 1.51
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435459/likelihoodResults_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.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) = 5581.81362701
delta logL = 0.644072139505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5581.79123587
delta logL = 0.666463274925

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5581.791     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      248 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5156        16.865        .86749E-02    .57497E-03
   2  Index         3.4385        2.9577        .13806        .11543E-03
   3  Normalizat    1.4115        .62102E-01    .56845E-01    .72001E-06
   4  Prefactor     .89442        .58561E-01    .66918E-01    .78087E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51555
  Index      = 3.43853
  Normalizat = 1.41145
  Prefactor  = 0.894415
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.791     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5156        4.0011        .60826E-04   -1.5462    
   2  Index         3.4385        1.5514        .49717E-02   -.31761    
   3  Normalizat    1.4115        .25243        .25137E-03   -.80298    
   4  Prefactor     .89442        .23928        .29601E-03   -.96337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57742e-11
Minuit parameter uncertainties:
  1  4.00182
  2  1.58045
  3  0.252657
  4  0.239562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435459': 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) = 5581.79123555
delta logL = 0.666463599197

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.516e+00  4.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.439e+00  1.580e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.944e-01  2.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.411e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 183.774 16.937
Photon Index (Free Index): 3.44 +/- 1.58
Photon Flux (Free Index): 9.93e-08 +/- 7.21e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.25e-05

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/435459/cmap_HighResolution_340675201_340934401_4FGL_J1215.0+1656_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='1.68e-05', photon_flux_error='5.31e-08', dlogl='6.66e-01', energy_flux='1.61e-05', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-09-05 05:28:04.754036', photon_index_error2='1.58', photon_index2='3.44', ts='1.51', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.25e-05', EG='1.47', time_epoch_completed='1630844884.75', return_code='0', job_id='435459', GAL2='0.89', EG2='1.41', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.21e-08', ts2='2.95', photon_index='2.41' WHERE bin_id='391' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:28:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 435459: <4FGL_J1215.0+1656_daily_bin391> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin391> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 05:15:36 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:15:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:15:37 2021
Terminated at Sun Sep  5 05:28:05 2021
Results reported at Sun Sep  5 05:28:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin391 183.774 16.9372 340675201 340934401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1215.0+1656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

