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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin50
RA = 183.774, Dec = 16.9372
tmin = 252288001, tmax = 252547201
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='433789', job_status='RUN', time_executed='2021-09-05 05:11:10.190858', time_epoch_executed='1630843870.19' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433789/ft1_4FGL_J1215.0+1656_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433789/ft1_4FGL_J1215.0+1656_daily_bin50.fits outfile=/scratch/kocevski/433789/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin50.fits ra=183.774 dec=16.9372 rad=12.0 tmin=252288001.0 tmax=252547201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.59
user 2.38
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.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/433789/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.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/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/433789/ltcube_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.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/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits
.....................!
real 12.44
user 12.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/433789/ltcube_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.fits outfile=/scratch/kocevski/433789/expmap_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.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/433789/ltcube_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.fits
.....................!
real 191.18
user 185.89
sys 4.90

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/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.fits scfile=/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits outfile=/scratch/kocevski/433789/cmap_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.fits scfile=/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits outfile=/scratch/kocevski/433789/cmap_HighResolution_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.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.61
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.fits', '/scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits', expMap='/scratch/kocevski/433789/expmap_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.fits', expCube='/scratch/kocevski/433789/ltcube_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433789/Model_4FGL_J1215.0+1656_daily_bin50.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/433789/ft1_filtered_4FGL_J1215.0+1656_daily_bin50.fits
Spacecraft file(s): /scratch/kocevski/433789/ft2_4FGL_J1215.0+1656_daily_bin50.fits
Exposure map: /scratch/kocevski/433789/expmap_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.fits
Exposure cube: /scratch/kocevski/433789/ltcube_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433789/Model_4FGL_J1215.0+1656_daily_bin50.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) = 8402.03941036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2823       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .51980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2023       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0777       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49457       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .88082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9132       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7966       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3333       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70860       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=   8401.986     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     2692 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.833       -.33725E-06** at limit **
   2  Prefactor     8.2861        13.292       -.12265E-05   -.12412E-03
   3  Prefactor     .10000E-03    9.1715       -.48985E-07** at limit **
   4  Prefactor     .51767        .88050        .39417E-06    .11083E-02
   5  Prefactor     .10000E-03    38.050        .15864E-05** at limit **
   6  Prefactor     18.318        9.4427       -.36101E-06   -.73964E-04
   7  Prefactor     .10000E-03    5.9554        .90440E-07** at limit **
   8  Prefactor     2.9297        3.7826       -.11297E-05   -.77189E-03
   9  Prefactor     .10000E-03    26.334       -.27545E-06** at limit **
  10  Prefactor     2.2017        2.5107       -.12212E-06   -.33463E-03
  11  Prefactor     2.0774        2.7462       -.54823E-06   -.55782E-03
  12  Prefactor     .10000E-03    5.3713        .13111E-06** at limit **
  13  Prefactor     3.7652        2.3036       -.13495E-06    .15583E-03
  14  Prefactor     19.503        17.357       -.19694E-06    .28595E-04
  15  Prefactor     .49371        4.9303       -.18975E-05    .12079E-02
  16  norm          .10000E-03    .82401E-01    .74435E-07** at limit **
  17  Prefactor     .10000E-03    26.252       -.30109E-06** at limit **
  18  norm          .10000E-03    2.1379        .88829E-07** at limit **
  19  Prefactor     .10000E-03    13.990        .19111E-06** at limit **
  20  Prefactor     .79542        149.58       -.12691E-04    .14187E-03
  21  Prefactor     .10000E-03    10.862        .16668E-06** at limit **
  22  Prefactor     2.9113        6.0726       -.17213E-05   -.43688E-03
  23  Prefactor     5.7956        10.047       -.37386E-06    .65923E-04
  24  Prefactor     .10000E-03    5.4344       -.21423E-06** at limit **
  25  Normalizat    1.3335        .15818        .11514E-05    .77397E-03
  26  Prefactor     .70857        .13968        .95656E-06    .69461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.28614
  Prefactor  = 0.0001
  Prefactor  = 0.517667
  Prefactor  = 0.0001
  Prefactor  = 18.3178
  Prefactor  = 0.0001
  Prefactor  = 2.92966
  Prefactor  = 0.0001
  Prefactor  = 2.20172
  Prefactor  = 2.07737
  Prefactor  = 0.0001
  Prefactor  = 3.7652
  Prefactor  = 19.5027
  Prefactor  = 0.493705
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.795419
  Prefactor  = 0.0001
  Prefactor  = 2.9113
  Prefactor  = 5.79559
  Prefactor  = 0.0001
  Normalizat = 1.33354
  Prefactor  = 0.708575
 **********
 **   18 **HESSE 
 **********

 FCN=   8401.986     FROM HESSE     STATUS=OK           460 CALLS     3152 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2861        13.369        .13930E-03   -1.5132    
   3  Prefactor     .10000E-03    9.3240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51767        .88000        .12767E-02   -1.5564    
   5  Prefactor     .10000E-03    37.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.318        9.4561        .93574E-04   -1.4852    
   7  Prefactor     .10000E-03    5.9814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9297        3.8204        .18742E-03   -1.5366    
   9  Prefactor     .10000E-03    26.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2017        2.4418        .13379E-03   -1.5411    
  11  Prefactor     2.0774        2.7059        .15489E-03   -1.5420    
  12  Prefactor     .10000E-03    5.3711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7652        2.2997        .10498E-03   -1.5320    
  14  Prefactor     19.503        17.360        .90684E-04   -1.4824    
  15  Prefactor     .49371        7.7939        .26732E-02   -1.5567    
  16  norm          .10000E-03    .17912        .50266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1996        .26113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .79542        162.10        .68706E-02   -1.5530    
  21  Prefactor     .10000E-03    10.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9113        6.1659        .23804E-03   -1.5367    
  23  Prefactor     5.7956        10.046        .16682E-03   -1.5226    
  24  Prefactor     .10000E-03    5.4530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3335        .18657        .22357E-03   -.82571    
  26  Prefactor     .70857        .16572        .28091E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31744e-09
Minuit parameter uncertainties:
  1  7.07603e-06
  2  13.3739
  3  2.8441e-05
  4  0.88002
  5  0.00024252
  6  9.45682
  7  1.77888e-05
  8  3.82071
  9  1.80732e-05
  10  2.44195
  11  2.7061
  12  9.31982e-06
  13  2.29978
  14  17.364
  15  3.92341
  16  1.67005e-06
  17  2.82857e-05
  18  2.07172e-05
  19  1.95031e-05
  20  22.7712
  21  1.5771e-05
  22  6.16725
  23  10.0486
  24  8.20086e-06
  25  0.18666
  26  0.165831
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.077e+00  2.706e+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:  7.086e-01  1.658e-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.334e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433789/likelihoodResults_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.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) = 8401.92777782
delta logL = 0.0584836991638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8401.91991986
delta logL = 0.0663416506941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3042       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0175       1.0000          .0000       10.000    
     3 'Normalizat'    1.3100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72431       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8401.920     FROM MIGRAD    STATUS=FAILED        84 CALLS      277 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3041        64.917        .10581E-03   -.29206E-02
   2  Index         3.0175        5.2424        .76289E-02   -.31690E-03
   3  Normalizat    1.3100        .30372        .22523E-03   -.41255E-03
   4  Prefactor     .72428        .26787        .27816E-03   -.39572E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8401.920     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      363 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3041        64.917        .11989E-03   -.29206E-02
   2  Index         3.0175        5.2424        .17859E-02   -.31690E-03
   3  Normalizat    1.3100        .30372        .17940E-03   -.41255E-03
   4  Prefactor     .72428        .26787        .21428E-03   -.39572E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8401.920     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      394 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3039        3.5617        .42326E-05   -.18587E-03
   2  Index         3.0176        1.9081        .30515E-03   -.12667E-04
   3  Normalizat    1.3100        .18735        .45046E-04    .36343E-05
   4  Prefactor     .72429        .17232        .11126E-04   -.13079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30391
  Index      = 3.01764
  Normalizat = 1.31004
  Prefactor  = 0.724286
 **********
 **   18 **HESSE 
 **********

 FCN=   8401.920     FROM HESSE     STATUS=OK            23 CALLS      417 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3039        3.5119        .84652E-06   -1.5480    
   2  Index         3.0176        1.8828        .12206E-04   -.40767    
   3  Normalizat    1.3100        .18735        .90092E-05   -.83267    
   4  Prefactor     .72429        .17234        .22252E-05   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2139e-12
Minuit parameter uncertainties:
  1  3.51245
  2  1.94
  3  0.187443
  4  0.172468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433789': 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) = 8401.91991985
delta logL = 0.0663416637963

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.304e+00  3.512e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.018e+00  1.940e+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:  7.243e-01  1.725e-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.310e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 183.774 16.937
Photon Index (Free Index): 3.02 +/- 1.94
Photon Flux (Free Index): 4.18e-08 +/- 5.48e-08
Energy Flux (Free Index): 8.28e-06 +/- 9.14e-06

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/433789/cmap_HighResolution_252288001_252547201_4FGL_J1215.0+1656_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-03', comment='SUCCESS', energy_flux2='8.28e-06', dlogl='6.63e-02', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-09-05 05:25:34.827644', photon_index_error2='1.94', photon_index2='3.02', ts='0.85', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='9.56e-08', energy_flux_error2='9.14e-06', EG='1.33', time_epoch_completed='1630844734.83', return_code='0', job_id='433789', GAL2='0.72', EG2='1.31', return_code2='0', photon_flux_error2='5.48e-08', ts2='1.01', photon_index='2.41' WHERE bin_id='50' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:25:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 433789: <4FGL_J1215.0+1656_daily_bin50> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin50> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:11:01 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:11:02 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:11:02 2021
Terminated at Sun Sep  5 05:25:35 2021
Results reported at Sun Sep  5 05:25:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin50 183.774 16.9372 252288001 252547201 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 :                                   860.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

