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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin94
RA = 183.774, Dec = 16.9372
tmin = 263692801, tmax = 263952001
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='433849', job_status='RUN', time_executed='2021-09-05 05:12:56.661963', time_epoch_executed='1630843976.66' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433849

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433849/ft1_4FGL_J1215.0+1656_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433849/ft2_4FGL_J1215.0+1656_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433849/ft1_4FGL_J1215.0+1656_daily_bin94.fits outfile=/scratch/kocevski/433849/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin94.fits ra=183.774 dec=16.9372 rad=12.0 tmin=263692801.0 tmax=263952001.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.67
user 1.46
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433849/ft1_filtered_4FGL_J1215.0+1656_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/433849/ft2_4FGL_J1215.0+1656_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/433849/ltcube_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.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/433849/ft2_4FGL_J1215.0+1656_daily_bin94.fits
.....................!
real 12.27
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433849/ft1_filtered_4FGL_J1215.0+1656_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/433849/ft2_4FGL_J1215.0+1656_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/433849/ltcube_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.fits outfile=/scratch/kocevski/433849/expmap_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.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/433849/ltcube_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.fits
.....................!
real 190.81
user 185.28
sys 5.05

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/433849/ft1_filtered_4FGL_J1215.0+1656_daily_bin94.fits scfile=/scratch/kocevski/433849/ft2_4FGL_J1215.0+1656_daily_bin94.fits outfile=/scratch/kocevski/433849/cmap_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433849/ft1_filtered_4FGL_J1215.0+1656_daily_bin94.fits scfile=/scratch/kocevski/433849/ft2_4FGL_J1215.0+1656_daily_bin94.fits outfile=/scratch/kocevski/433849/cmap_HighResolution_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0599       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0279       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15899E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5334       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.078       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .40400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.810       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9886       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0718       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.392       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93794       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=   5717.703     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3081 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.790        29.542       -.38777E-06    .74459E-05
   2  Prefactor     7.6771        14.271       -.48965E-06   -.10221E-04
   3  Prefactor     .10000E-03    3.5118        .21239E-06** at limit **
   4  Prefactor     1.9986        1.6486       -.12871E-06   -.12145E-03
   5  Prefactor     8.7331        304.41       -.74798E-05   -.10714E-04
   6  Prefactor     1.0385        9.2021       -.81460E-07   -.82303E-04
   7  Prefactor     7.2966        10.431        .88843E-06    .15230E-03
   8  Prefactor     .10000E-03    2.5612        .45866E-06** at limit **
   9  Prefactor     44.246        48.492        .33113E-05    .12182E-03
  10  Prefactor     1.0675        1.9656        .54848E-06    .78999E-03
  11  Prefactor     .10000E-03    1.5092       -.35875E-06** at limit **
  12  Prefactor     25.353        25.205        .12879E-06    .16774E-04
  13  Prefactor     5.5335        2.6657       -.10182E-06   -.40717E-04
  14  Prefactor     30.077        32.387        .21023E-06    .16611E-04
  15  Prefactor     .10000E-03    1.6590        .14676E-06** at limit **
  16  norm          .40404        .22080       -.72801E-07   -.72472E-03
  17  Prefactor     96.814        99.552        .14932E-06    .23133E-05
  18  norm          .10000E-03    1.0696        .12637E-06** at limit **
  19  Prefactor     2.9871        7.9251        .10529E-05    .84339E-04
  20  Prefactor     3.0754        44.350       -.18484E-05   -.19664E-05
  21  Prefactor     17.393        35.252       -.12216E-07   -.58807E-05
  22  Prefactor     .10000E-03    4.3385        .50191E-06** at limit **
  23  Prefactor     .10000E-03    5.6104        .50304E-06** at limit **
  24  Prefactor     .10000E-03    20.670        .18863E-05** at limit **
  25  Normalizat    1.0416        .21152        .60437E-05   -.39419E-05
  26  Prefactor     .93805        .19947       -.54086E-05    .20794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7905
  Prefactor  = 7.67707
  Prefactor  = 0.0001
  Prefactor  = 1.99857
  Prefactor  = 8.7331
  Prefactor  = 1.0385
  Prefactor  = 7.29662
  Prefactor  = 0.000100004
  Prefactor  = 44.2461
  Prefactor  = 1.06748
  Prefactor  = 0.000100002
  Prefactor  = 25.3534
  Prefactor  = 5.5335
  Prefactor  = 30.0768
  Prefactor  = 0.0001
  norm       = 0.404035
  Prefactor  = 96.8136
  norm       = 0.0001
  Prefactor  = 2.98712
  Prefactor  = 3.07537
  Prefactor  = 17.3934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04157
  Prefactor  = 0.938046
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.703     FROM HESSE     STATUS=OK           468 CALLS     3549 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.790        29.538        .97738E-04   -1.4888    
   2  Prefactor     7.6771        14.242        .14473E-03   -1.5154    
   3  Prefactor     .10000E-03    3.5345        .13836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9986        1.6366        .84059E-04   -1.5425    
   5  Prefactor     8.7331        313.35        .13316E-02   -1.5117    
   6  Prefactor     1.0385        22.055        .42060E-02   -1.5504    
   7  Prefactor     7.2966        10.452        .14847E-03   -1.5168    
   8  Prefactor     .10000E-03    5.8304        .22644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.246        49.068        .30131E-03   -1.4377    
  10  Prefactor     1.0675        1.6590        .13606E-02   -1.5501    
  11  Prefactor     .10000E-03    7.6948        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.353        25.201        .79559E-04   -1.4700    
  13  Prefactor     5.5335        2.6643        .82982E-04   -1.5237    
  14  Prefactor     30.077        32.375        .73055E-04   -1.4611    
  15  Prefactor     .10000E-03    1.6627        .95096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .40404        .21803        .24965E-04   -1.5581    
  17  Prefactor     96.814        99.547        .40852E-04   -1.3737    
  18  norm          .10000E-03    1.0713        .76356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9871        7.7857        .23483E-03   -1.5362    
  20  Prefactor     3.0754        42.889        .23144E-03   -1.5357    
  21  Prefactor     17.393        35.235        .96038E-04   -1.4874    
  22  Prefactor     .10000E-03    4.3707        .15378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6334        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0416        .21236        .24149E-03   -.91650    
  26  Prefactor     .93805        .20272        .24924E-03   -.94824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21963e-08
Minuit parameter uncertainties:
  1  29.5636
  2  14.2483
  3  2.75202e-06
  4  1.63662
  5  105.224
  6  9.57525
  7  10.455
  8  0.000317701
  9  49.113
  10  1.65908
  11  0.00024313
  12  25.2114
  13  2.66435
  14  32.3942
  15  1.25492e-06
  16  0.218027
  17  99.7196
  18  9.72484e-07
  19  7.78837
  20  22.989
  21  35.2774
  22  1.24816e-05
  23  1.33031e-05
  24  7.63321e-05
  25  0.212532
  26  0.20288
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.431e-04  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:  9.380e-01  2.029e-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.042e+00  2.125e-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: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433849/likelihoodResults_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.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) = 5717.70343232
delta logL = -0.000620964007794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5717.70280888
delta logL = 2.472594133e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36332E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5349       1.0000          .0000       10.000    
     3 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93818       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=   5715.576     FROM MIGRAD    STATUS=CONVERGED    205 CALLS      387 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .38212E-02    .25312E-03** at limit **
   2  Index         8.3078        2.7859        .13320        .13255E-03
   3  Normalizat    .93914        .59231E-01    .41170E-01    .37725E-03
   4  Prefactor     1.0064        .57650E-01    .45490E-01    .35861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.30777
  Normalizat = 0.939139
  Prefactor  = 1.00643
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.576     FROM HESSE     STATUS=OK            29 CALLS      416 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .32198E-03    .83326E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3078        .30874        .56414E-02    .72289    
   3  Normalizat    .93914        .20834        .25211E-03   -.95098    
   4  Prefactor     1.0064        .20476        .24161E-03   -.92515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57097e-10
Minuit parameter uncertainties:
  1  5.97247e-09
  2  0.309091
  3  0.208522
  4  0.204923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433849': 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) = 5715.57551467
delta logL = 2.12729669075

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  5.972e-09  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  8.308e+00  3.091e-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:  1.006e+00  2.049e-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:  9.391e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 183.774 16.937
Photon Index (Free Index): 8.31 +/- 0.31
Photon Flux (Free Index): 7.64e-08 +/- 4.64e-08
Energy Flux (Free Index): 8.81e-06 +/- 5.32e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/433849/cmap_HighResolution_263692801_263952001_4FGL_J1215.0+1656_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', comment='SUCCESS', energy_flux2='8.81e-06', dlogl='2.13e+00', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-05 05:24:43.859605', photon_index_error2='0.31', photon_index2='8.31', ts='-0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='5.32e-06', EG='1.04', time_epoch_completed='1630844683.86', return_code='0', job_id='433849', GAL2='1.01', EG2='0.94', return_code2='0', photon_flux_error2='4.64e-08', ts2='4.45', photon_index='2.41' WHERE bin_id='94' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:24:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 433849: <4FGL_J1215.0+1656_daily_bin94> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin94 183.774 16.9372 263692801 263952001 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

