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


Performing analysis on: 4FGL_J0855.9+7144_daily_bin735
RA = 133.975, Dec = 71.7419
tmin = 429840001, tmax = 430099201
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='856522', job_status='RUN', time_executed='2021-08-30 16:36:16.697187', time_epoch_executed='1630366576.7' WHERE source_name='4FGL J0855.9+7144' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856522/ft1_4FGL_J0855.9+7144_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856522/ft1_4FGL_J0855.9+7144_daily_bin735.fits outfile=/scratch/kocevski/856522/ft1_filteredMKT_4FGL_J0855.9+7144_daily_bin735.fits ra=133.975 dec=71.7419 rad=12.0 tmin=429840001.0 tmax=430099201.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.28
user 5.65
sys 0.60

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.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/856522/ft1_filteredMKT_4FGL_J0855.9+7144_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.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.95
user 0.32
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/856522/ltcube_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.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/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits
.....................!
real 12.53
user 11.68
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/856522/ltcube_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.fits outfile=/scratch/kocevski/856522/expmap_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.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/856522/ltcube_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.fits
.....................!
real 193.32
user 187.77
sys 4.97

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

Setting source of interest to:
4FGL J0855.9+7144 @ 133.975 71.7419

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits scfile=/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits outfile=/scratch/kocevski/856522/cmap_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.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=133.975 yref=71.7419 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.93
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits scfile=/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits outfile=/scratch/kocevski/856522/cmap_HighResolution_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.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=133.975 yref=71.7419 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.97
user 0.37
sys 0.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856522/Model_4FGL_J0855.9+7144_daily_bin735.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/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits......................!
real 44.35
user 42.34
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits', '/scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits', expMap='/scratch/kocevski/856522/expmap_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.fits', expCube='/scratch/kocevski/856522/ltcube_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856522/Model_4FGL_J0855.9+7144_daily_bin735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0855.9+7144'

4FGL J0855.9+7144
   Spectrum: PowerLaw
329    Prefactor:  5.650e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  8.574e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856522/ft1_filtered_4FGL_J0855.9+7144_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/856522/ft2_4FGL_J0855.9+7144_daily_bin735.fits
Exposure map: /scratch/kocevski/856522/expmap_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.fits
Exposure cube: /scratch/kocevski/856522/ltcube_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856522/Model_4FGL_J0855.9+7144_daily_bin735.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) = 2905.38963728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35842       1.0000         .10000E-03   10000.    
     3 'norm      '    .10498E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    245.03       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66429       1.0000         .10000E-03   10000.    
     7 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    83.856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.242       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2324       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17009E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39692E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0661       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7855       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.418       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .40263E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.873       1.0000         .10000E-03   10000.    
    26 'norm      '    5.5149       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .27076E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.1292       1.0000         .10000E-03   10000.    
    29 'norm      '    .36927       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.9514       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .85954       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .83949       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2905.201     FROM MIGRAD    STATUS=CONVERGED    301 CALLS     3654 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.613        41.726       -.30432E-06   -.37418E-04
   2  Prefactor     .10000E-03    411.43        .54117E-04** at limit **
   3  norm          .10000E-03    18.965        .17009E-06** at limit **
   4  norm          10.263        3.2094        .26148E-06    .12650E-04
   5  Prefactor     254.35        425.73       -.70451E-04   -.17778E-04
   6  Prefactor     3.7073        703.43       -.78644E-04   -.20290E-05
   7  norm          .10000E-03    21.937        .16291E-06** at limit **
   8  Prefactor     82.056        72.756        .94175E-05   -.67031E-04
   9  Prefactor     54.112        78.528       -.42414E-05   -.67056E-04
  10  norm          1.2352        2.6560       -.83210E-07   -.13722E-05
  11  Prefactor     11.336        11.551        .91925E-06    .46929E-05
  12  Prefactor     .10000E-03    1.4122        .16784E-07** at limit **
  13  norm          12.398        8.7082       -.11705E-06   -.81376E-05
  14  Prefactor     .10000E-03    82.845       -.50867E-06** at limit **
  15  Prefactor     .10000E-03    52.371        .18058E-05** at limit **
  16  Prefactor     8.9069        16.671       -.14852E-05   -.12808E-04
  17  norm          .10000E-03    .42727       -.29120E-07** at limit **
  18  Prefactor     .10000E-03    13.233        .23183E-06** at limit **
  19  Prefactor     .10000E-03    8.1775       -.27859E-06** at limit **
  20  Prefactor     .10000E-03    4.7613        .93793E-07** at limit **
  21  norm          .10000E-03    .74390        .65870E-07** at limit **
  22  norm          2.9384        160.91       -.61128E-04   -.29147E-04
  23  Prefactor     30.642        27.964       -.15181E-05    .43831E-04
  24  Prefactor     .10000E-03    43.853       -.56271E-06** at limit **
  25  Prefactor     14.747        229.45       -.20947E-04    .92441E-04
  26  norm          5.4923        8.3593       -.98935E-06   -.50819E-03
  27  Prefactor     .10000E-03    77.477       -.27207E-05** at limit **
  28  Prefactor     8.0716        7.9701       -.84669E-06    .44022E-04
  29  norm          .36964        .78692       -.91442E-07    .52191E-04
  30  norm          .10000E-03    .80731        .88149E-07** at limit **
  31  Prefactor     4.9368        5.5650       -.63193E-06    .11344E-02
  32  Prefactor     .10000E-03    2.8080       -.10818E-06** at limit **
  33  Normalizat    .85595        .32901        .27047E-05    .67894E-05
  34  Prefactor     .84210        .23624        .24467E-05    .10109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.6126
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.2635
  Prefactor  = 254.348
  Prefactor  = 3.7073
  norm       = 0.0001
  Prefactor  = 82.0564
  Prefactor  = 54.1116
  norm       = 1.23522
  Prefactor  = 11.3364
  Prefactor  = 0.0001
  norm       = 12.3977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90685
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.93835
  Prefactor  = 30.6423
  Prefactor  = 0.0001
  Prefactor  = 14.7468
  norm       = 5.49225
  Prefactor  = 0.0001
  Prefactor  = 8.07157
  norm       = 0.369642
  norm       = 0.0001
  Prefactor  = 4.93684
  Prefactor  = 0.0001
  Normalizat = 0.855952
  Prefactor  = 0.842104
 **********
 **   18 **HESSE 
 **********

 FCN=   2905.201     FROM HESSE     STATUS=OK           808 CALLS     4462 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.613        41.861        .14848E-02   -1.4401    
   2  Prefactor     .10000E-03    401.82        .10678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.263        3.2561        .31252E-02   -1.5067    
   5  Prefactor     254.35        425.37        .64681E-03   -1.2505    
   6  Prefactor     3.7073        708.51        .11924E-01   -1.5323    
   7  norm          .10000E-03    21.871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     82.056        73.002        .10967E-02   -1.3894    
   9  Prefactor     54.112        78.424        .14287E-02   -1.4235    
  10  norm          1.2352        2.7052        .10122E-01   -1.5486    
  11  Prefactor     11.336        11.566        .29574E-02   -1.5034    
  12  Prefactor     .10000E-03    1.4132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.398        8.7131        .28407E-02   -1.5004    
  14  Prefactor     .10000E-03    82.889        .10184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.325        .92197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9069        16.666        .33278E-02   -1.5111    
  17  norm          .10000E-03    .42587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .58187        .19716E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9384        162.99        .51870E-02   -1.5365    
  23  Prefactor     30.642        28.146        .18162E-02   -1.4600    
  24  Prefactor     .10000E-03    43.836        .10630E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.747        243.54        .26885E-02   -1.4940    
  26  norm          5.4923        77.573        .42772E-02   -1.5239    
  27  Prefactor     .10000E-03    77.364        .10716E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.0716        8.0920        .35155E-02   -1.5140    
  29  norm          .36964        .85671        .10725E-01   -1.5586    
  30  norm          .10000E-03    .80609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.9368        430.84        .45185E-02   -1.5264    
  32  Prefactor     .10000E-03    2.8035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .85595        .29156        .68488E-01   -.98026    
  34  Prefactor     .84210        .20780        .44229E-01   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29695e-07
Minuit parameter uncertainties:
  1  41.8899
  2  0.000658593
  3  6.69882e-07
  4  3.25612
  5  430.72
  6  103.772
  7  3.78545e-07
  8  73.0816
  9  78.5744
  10  2.70546
  11  11.5678
  12  6.0351e-08
  13  8.71399
  14  9.2389e-06
  15  7.23789e-06
  16  16.6744
  17  1.61639e-08
  18  9.67435e-07
  19  8.87348e-07
  20  1.55561e-07
  21  3.00418e-09
  22  43.8942
  23  28.1583
  24  3.32474e-06
  25  120.439
  26  41.3464
  27  1.54279e-05
  28  8.0931
  29  0.856737
  30  7.12729e-08
  31  92.9367
  32  1.70549e-07
  33  0.292093
  34  0.207991
Done.

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

Extracting fit parameters...

4FGL J0855.9+7144
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  7.238e-06  1.000e-04  1.000e+04 ( 1.000e-13)
330        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  8.574e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  8.421e-01  2.080e-01  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  8.560e-01  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 133.975 71.742
Photon Flux Upper Limit: 2.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856522/likelihoodResults_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.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) = 2905.20130606
delta logL = -9.08883757802e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2905.20121535
delta logL = -1.81868927029e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4157       1.0000          .0000       10.000    
     3 'Normalizat'    .85595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+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.

 FCN=   2905.201     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    447.71        .18142E-02** at limit **
   2  Index         3.3433        8.2277        .50000        .27885E-05
   3  Normalizat    .85595        .22551E-01    .30301E-03    .11087E-04
   4  Prefactor     .84210        .17105E-01    .22991E-03    .89500E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101496
  Index      = 3.34326
  Normalizat = 0.855952
  Prefactor  = 0.842104
 **********
 **   18 **HESSE 
 **********

 FCN=   2905.201     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10150E-03    2006.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3433        6.2196        .50000       -.33773    
   3  Normalizat    .85595        .51252E-01    .12120E-04   -.98026    
   4  Prefactor     .84210        .38869E-01    .91966E-05   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38026e-08
Minuit parameter uncertainties:
  1  0.113604
  2  2237.06
  3  0.0512547
  4  0.0388701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856522': 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) = 2905.20121531
delta logL = -1.37684764923e-07

Extracting fit parameters...

4FGL J0855.9+7144
   Spectrum: PowerLaw
329    Prefactor:  1.015e-04  1.136e-01  1.000e-04  1.000e+04 ( 1.000e-13)
330        Index:  3.343e+00  2.237e+03  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  8.574e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  8.421e-01  3.887e-02  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  8.560e-01  5.125e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 133.975 71.742

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/856522/cmap_HighResolution_429840001_430099201_4FGL_J0855.9+7144_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-02', job_status='DONE', photon_flux_upper_limit='2.64e-07', time_completed='2021-08-30 16:48:00.663099', job_id='856522', GAL2='0.84', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630367280.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='735' AND source_name='4FGL J0855.9+7144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 16:48:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 856522: <4FGL_J0855.9+7144_daily_bin735> in cluster <slac> Done

Job <4FGL_J0855.9+7144_daily_bin735> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 16:35:54 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 16:35:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 16:35:55 2021
Terminated at Mon Aug 30 16:48:01 2021
Results reported at Mon Aug 30 16:48:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0855.9+7144_daily_bin735 133.975 71.7419 429840001 430099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0855.9+7144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   704.46 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             332.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

