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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin20
RA = 183.774, Dec = 16.9372
tmin = 244512001, tmax = 244771201
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='433758', job_status='RUN', time_executed='2021-09-05 05:14:06.990595', time_epoch_executed='1630844046.99' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433758/ft1_4FGL_J1215.0+1656_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433758/ft2_4FGL_J1215.0+1656_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433758/ft1_4FGL_J1215.0+1656_daily_bin20.fits outfile=/scratch/kocevski/433758/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin20.fits ra=183.774 dec=16.9372 rad=12.0 tmin=244512001.0 tmax=244771201.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 1.89
user 1.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433758/ft2_4FGL_J1215.0+1656_daily_bin20.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/433758/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/433758/ft1_filtered_4FGL_J1215.0+1656_daily_bin20.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.65
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433758/ft1_filtered_4FGL_J1215.0+1656_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/433758/ft2_4FGL_J1215.0+1656_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/433758/ltcube_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.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/433758/ft2_4FGL_J1215.0+1656_daily_bin20.fits
.....................!
real 13.11
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433758/ft1_filtered_4FGL_J1215.0+1656_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/433758/ft2_4FGL_J1215.0+1656_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/433758/ltcube_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.fits outfile=/scratch/kocevski/433758/expmap_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.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/433758/ltcube_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.fits
.....................!
real 193.20
user 185.23
sys 5.29

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/433758/ft1_filtered_4FGL_J1215.0+1656_daily_bin20.fits scfile=/scratch/kocevski/433758/ft2_4FGL_J1215.0+1656_daily_bin20.fits outfile=/scratch/kocevski/433758/cmap_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.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.67
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433758/ft1_filtered_4FGL_J1215.0+1656_daily_bin20.fits scfile=/scratch/kocevski/433758/ft2_4FGL_J1215.0+1656_daily_bin20.fits outfile=/scratch/kocevski/433758/cmap_HighResolution_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.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.68
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.926       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72516E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1435       1.0000         .10000E-03   10000.    
    16 'norm      '    .23682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    196.76       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21929E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.882       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.738       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84222       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=   4954.740     FROM MIGRAD    STATUS=FAILED      1104 CALLS     3724 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.768        .18142E-02** at limit **
   2  Prefactor     .10000E-03    64.203        .36285E-03** at limit **
   3  Prefactor     .10000E-03    1.8950        .94625E-03** at limit **
   4  Prefactor     .10000E-03    .63663        .54485E-03** at limit **
   5  Prefactor     36.397        116.78        .66473E-04    .92355E-05
   6  Prefactor     .10000E-03    6.8877        .17985E-02** at limit **
   7  Prefactor     19.923        15.992        .89727E-04    .72220E-05
   8  Prefactor     2.0931        3.4089        .15944E-03    .57327E-04
   9  Prefactor     .10000E-03    24.828        .18142E-02** at limit **
  10  Prefactor     .10000E-03    1.1944        .74628E-03** at limit **
  11  Prefactor     .79291E-01    10.482        .16381E-02    .11886E-03
  12  Prefactor     .92964        309.57        .80727E-02    .54265E-03
  13  Prefactor     4.9721        2.7778        .84976E-04    .36122E-04
  14  Prefactor     .10000E-03    13.144        .18142E-02** at limit **
  15  Prefactor     2.1434        4.2257        .19813E-03    .21977E-04
  16  norm          .23679        .20013        .28224E-04   -.50753E-04
  17  Prefactor     196.68        167.65        .14401E-03   -.65209E-05
  18  norm          .10000E-03    1.9311        .95304E-03** at limit **
  19  Prefactor     1.9812        9.8467        .14779E-02    .28147E-04
  20  Prefactor     .10000E-03    92.400        .40289E-03** at limit **
  21  Prefactor     12.970        37.480        .11161E-03    .16298E-05
  22  Prefactor     .10000E-03    2.4913        .10843E-02** at limit **
  23  Prefactor     .10000E-03    8.1366        .18142E-02** at limit **
  24  Prefactor     16.740        16.986        .97896E-04   -.22413E-04
  25  Normalizat    1.2172        .22309        .23044E-03    .16228E-03
  26  Prefactor     .84219        .21392        .26451E-03    .62752E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4954.740     FROM SIMPLEX   STATUS=UNCHANGED   1488 CALLS     5212 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.768        .44643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.203        .49558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8950        .15021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .63663        .70594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.397        116.78        .14125E-05   -1.4501    
   6  Prefactor     .10000E-03    6.8877        .18349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.923        15.992        .14453E-05   -1.4815    
   8  Prefactor     2.0931        3.4089        .15045E-05   -1.5419    
   9  Prefactor     .10000E-03    24.828        .71231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1944        .55477E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79291E-01    10.482        .15274E-05   -1.5652    
  12  Prefactor     .92964        309.57        .15900E-05   -1.5515    
  13  Prefactor     4.9721        2.7778        .14890E-05   -1.5262    
  14  Prefactor     .10000E-03    13.144        .49985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1434        4.2257        .15038E-05   -1.5415    
  16  norm          .23679        .20013        .15228E-05   -1.5611    
  17  Prefactor     196.68        167.65        .12577E-05   -1.2894    
  18  norm          .10000E-03    1.9311        .12586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9812        9.8467        .15048E-05   -1.5426    
  20  Prefactor     .10000E-03    92.400        .35296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.970        37.480        .14622E-05   -1.4988    
  22  Prefactor     .10000E-03    2.4913        .15322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.1366        .34090E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.740        16.986        .14525E-05   -1.4889    
  25  Normalizat    1.2172        .22309        .83966E-06   -.86073    
  26  Prefactor     .84219        .21392        .95792E-06   -.98192    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4954.740     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     5651 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.770        .36285E-03** at limit **
   2  Prefactor     .10000E-03    64.208        .72569E-04** at limit **
   3  Prefactor     .10000E-03    1.8950        .18925E-03** at limit **
   4  Prefactor     .10000E-03    .63666        .10897E-03** at limit **
   5  Prefactor     36.396        116.73        .13295E-04   -.17103E-06
   6  Prefactor     .10000E-03    6.8893        .35969E-03** at limit **
   7  Prefactor     19.923        15.991        .35891E-05   -.12670E-06
   8  Prefactor     2.0931        3.4081        .63777E-05    .35651E-06
   9  Prefactor     .10000E-03    24.828        .36285E-03** at limit **
  10  Prefactor     .10000E-03    1.1944        .14926E-03** at limit **
  11  Prefactor     .79290E-01    10.562        .65522E-04    .20821E-05
  12  Prefactor     .92968        316.67        .16145E-02    .11196E-05
  13  Prefactor     4.9721        2.7775        .33990E-05     .0000    
  14  Prefactor     .10000E-03    13.144        .36285E-03** at limit **
  15  Prefactor     2.1434        4.2252        .79251E-05    .51643E-06
  16  norm          .23680        .20010        .11290E-05    .12218E-05
  17  Prefactor     196.69        167.33        .28801E-04   -.31578E-06
  18  norm          .10000E-03    1.9312        .19061E-03** at limit **
  19  Prefactor     1.9812        9.8342        .59116E-04   -.19231E-06
  20  Prefactor     .10000E-03    92.406        .80578E-04** at limit **
  21  Prefactor     12.970        37.473        .44642E-05   -.50932E-06
  22  Prefactor     .10000E-03    2.4914        .21685E-03** at limit **
  23  Prefactor     .10000E-03    8.1379        .36285E-03** at limit **
  24  Prefactor     16.740        16.981        .39158E-05   -.58065E-06
  25  Normalizat    1.2172        .22294        .46089E-04   -.13320E-05
  26  Prefactor     .84219        .21400        .10580E-04   -.15043E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3964
  Prefactor  = 0.0001
  Prefactor  = 19.9232
  Prefactor  = 2.09311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0792896
  Prefactor  = 0.929682
  Prefactor  = 4.97207
  Prefactor  = 0.0001
  Prefactor  = 2.14337
  norm       = 0.236795
  Prefactor  = 196.685
  norm       = 0.0001
  Prefactor  = 1.98121
  Prefactor  = 0.0001
  Prefactor  = 12.9695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7404
  Normalizat = 1.21718
  Prefactor  = 0.842186
 **********
 **   18 **HESSE 
 **********

 FCN=   4954.740     FROM HESSE     STATUS=OK           432 CALLS     6083 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.770        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.200        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8950        .37850E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .63666        .21794E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.396        117.06        .26589E-05   -1.4501    
   6  Prefactor     .10000E-03    6.8894        .71939E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.923        15.990        .35891E-05   -1.4815    
   8  Prefactor     2.0931        3.4071        .12755E-05   -1.5419    
   9  Prefactor     .10000E-03    24.828        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1944        .29851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79290E-01    10.557        .26209E-05   -1.5652    
  12  Prefactor     .92968        316.05        .64581E-04   -1.5515    
  13  Prefactor     4.9721        2.7775        .33990E-05   -1.5262    
  14  Prefactor     .10000E-03    13.144        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1434        4.2252        .79251E-05   -1.5415    
  16  norm          .23680        .20010        .37219E-06   -1.5611    
  17  Prefactor     196.69        167.25        .57603E-05   -1.2894    
  18  norm          .10000E-03    1.9312        .38122E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9812        9.8242        .23646E-05   -1.5426    
  20  Prefactor     .10000E-03    92.403        .16116E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.970        37.096        .89284E-06   -1.4988    
  22  Prefactor     .10000E-03    2.4914        .43371E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.1380        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.740        16.982        .78316E-06   -1.4889    
  25  Normalizat    1.2172        .22274        .92178E-05   -.86073    
  26  Prefactor     .84219        .21391        .21161E-05   -.98192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14831e-14
Minuit parameter uncertainties:
  1  2.99796e-07
  2  1.24025e-06
  3  1.59253e-08
  4  1.46912e-08
  5  117.809
  6  2.99498e-07
  7  15.9939
  8  3.40738
  9  2.46544e-07
  10  6.21392e-08
  11  1.82902
  12  34.4655
  13  2.77753
  14  1.108e-07
  15  4.22575
  16  0.200102
  17  167.655
  18  4.60666e-08
  19  8.82566
  20  1.68849e-06
  21  37.1616
  22  3.65508e-08
  23  2.10852e-07
  24  16.9867
  25  0.222913
  26  0.21412
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  7.929e-02  1.829e+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.422e-01  2.141e-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.217e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433758/likelihoodResults_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.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) = 4954.60568162
delta logL = 0.134369732212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4954.57994744
delta logL = 0.160103914818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11857       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3176       1.0000          .0000       10.000    
     3 'Normalizat'    1.1741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86517       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=   4954.580     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      226 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11912        2.2445        .91901E-02    .43594E-02
   2  Index         4.3165        2.6259        .20337        .11155E-03
   3  Normalizat    1.1740        .26175E-01    .52943E-01   -.71968E-04
   4  Prefactor     .86512        .25633E-01    .44560E-01    .25952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.11912
  Index      = 4.31655
  Normalizat = 1.17403
  Prefactor  = 0.86512
 **********
 **   18 **HESSE 
 **********

 FCN=   4954.580     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11912        16.698        .39552E-03   -1.5639    
   2  Index         4.3165        5.4182        .73759E-02   -.13712    
   3  Normalizat    1.1740        .15890        .23409E-03   -.87409    
   4  Prefactor     .86512        .15065        .26135E-03   -.97371    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75876e-10
Minuit parameter uncertainties:
  1  2.82026
  2  13.3515
  3  0.158964
  4  0.150719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433758': 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) = 4954.57994606
delta logL = 0.160105293373

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.191e-01  2.820e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  4.317e+00  1.335e+01  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.651e-01  1.507e-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.174e+00  1.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 183.774 16.937

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/433758/cmap_HighResolution_244512001_244771201_4FGL_J1215.0+1656_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2021-09-05 05:27:36.711119', job_id='433758', GAL2='0.87', fit_tolerance='1e-08', EG2='1.17', EG='1.22', time_epoch_completed='1630844856.71', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.60e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='20' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:27:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 433758: <4FGL_J1215.0+1656_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin20 183.774 16.9372 244512001 244771201 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 :                                   805.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

