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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin93
RA = 145.91, Dec = 42.1169
tmin = 263433601, tmax = 263692801
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='449328', job_status='RUN', time_executed='2021-08-31 23:17:15.819658', time_epoch_executed='1630477035.82' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449328

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449328/ft1_4FGL_J0943.6+4207_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449328/ft1_4FGL_J0943.6+4207_daily_bin93.fits outfile=/scratch/kocevski/449328/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin93.fits ra=145.91 dec=42.1169 rad=12.0 tmin=263433601.0 tmax=263692801.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 4.20
user 3.22
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.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/449328/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.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 1.00
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/449328/ltcube_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.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/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits
.....................!
real 13.41
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/449328/ltcube_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.fits outfile=/scratch/kocevski/449328/expmap_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.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/449328/ltcube_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.fits
.....................!
real 192.55
user 185.52
sys 5.08

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

Setting source of interest to:
4FGL J0943.6+4207 @ 145.91 42.1169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits scfile=/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits outfile=/scratch/kocevski/449328/cmap_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.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=145.91 yref=42.1169 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.80
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits scfile=/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits outfile=/scratch/kocevski/449328/cmap_HighResolution_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.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=145.91 yref=42.1169 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.70
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/449328/Model_4FGL_J0943.6+4207_daily_bin93.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/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits.....................!
real 46.36
user 44.81
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits', '/scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits', expMap='/scratch/kocevski/449328/expmap_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.fits', expCube='/scratch/kocevski/449328/ltcube_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449328/Model_4FGL_J0943.6+4207_daily_bin93.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0943.6+4207'

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  2.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.604e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/449328/ft1_filtered_4FGL_J0943.6+4207_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/449328/ft2_4FGL_J0943.6+4207_daily_bin93.fits
Exposure map: /scratch/kocevski/449328/expmap_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.fits
Exposure cube: /scratch/kocevski/449328/ltcube_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449328/Model_4FGL_J0943.6+4207_daily_bin93.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) = 4965.06644612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.936       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.5709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7022       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77639E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.0764       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0016       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.816       1.0000         .10000E-03   10000.    
    27 'norm      '    17.786       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.1620       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2403       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .76033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4965.009     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     3855 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.936        7.9406       -.90718E-08   -.70862E-04
   2  Prefactor     .10000E-03    2.5449        .10295E-07** at limit **
   3  Prefactor     .10000E-03    7.5632        .26715E-06** at limit **
   4  Prefactor     .10000E-03    27.995       -.54779E-06** at limit **
   5  Prefactor     .52682        2.9095        .82277E-06    .14435E-03
   6  Prefactor     .10000E-03    17.696        .84766E-06** at limit **
   7  Prefactor     .10000E-03    2.6637       -.10893E-05** at limit **
   8  Prefactor     .10000E-03    25.213        .56362E-06** at limit **
   9  norm          4.5707        1.4702       -.38414E-08   -.58088E-03
  10  Prefactor     9.6989        7.8364        .11859E-06   -.25067E-03
  11  norm          .10000E-03    6.0004       -.48252E-06** at limit **
  12  Prefactor     .10000E-03    1.2604       -.83085E-08** at limit **
  13  Prefactor     .10000E-03    7.1170        .25391E-06** at limit **
  14  Prefactor     .10000E-03    1.4567        .32554E-07** at limit **
  15  Prefactor     .10000E-03    14.820       -.11891E-05** at limit **
  16  norm          .10000E-03    5.3213       -.51147E-07** at limit **
  17  Prefactor     .10000E-03    17.071        .48274E-06** at limit **
  18  Prefactor     .10036E-03    11.658        .67542E-05** at limit **
  19  Prefactor     .10000E-03    26.978       -.10341E-06** at limit **
  20  Prefactor     .10000E-03    4.8604        .24982E-06** at limit **
  21  norm          5.0785        12.917        .21944E-05    .17058E-03
  22  Prefactor     2.9957        7.6733        .75434E-05    .47324E-03
  23  Prefactor     .10000E-03    3.3238        .14220E-07** at limit **
  24  Prefactor     .10000E-03    24.035        .11265E-05** at limit **
  25  norm          .10000E-03    2.7619        .56931E-07** at limit **
  26  Prefactor     10.813        6.6733        .83741E-06    .34342E-03
  27  norm          17.783        14.443        .66357E-07   -.12000E-03
  28  Prefactor     .10000E-03    41.437       -.27417E-05** at limit **
  29  Prefactor     4.1608        4.3001       -.69637E-07   -.29382E-03
  30  Prefactor     .10000E-03    4.5201       -.20988E-06** at limit **
  31  Prefactor     .10000E-03    56.758        .48866E-05** at limit **
  32  Normalizat    1.2404        .20139       -.24607E-05   -.34161E-03
  33  Prefactor     .76006        .22512        .24469E-06   -.27124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.526821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.57065
  Prefactor  = 9.69891
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.07848
  Prefactor  = 2.99567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8127
  norm       = 17.7827
  Prefactor  = 0.000100001
  Prefactor  = 4.16079
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.24036
  Prefactor  = 0.760059
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.009     FROM HESSE     STATUS=OK           685 CALLS     4540 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.936        7.9377        .51818E-03   -1.4935    
   2  Prefactor     .10000E-03    2.6139        .21917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .52682        2.9258        .23228E-03   -1.5563    
   6  Prefactor     .10000E-03    17.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9905        .21769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5707        1.5799        .31582E-04   -1.5280    
  10  Prefactor     9.6989        8.4554        .11313E-03   -1.5085    
  11  norm          .10000E-03    6.0548        .16847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2738        .77172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.1994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4604        .83024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3223        .15875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10036E-03    41.244        .35735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8886        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.0785        12.879        .89228E-03   -1.5257    
  22  Prefactor     2.9957        7.8744        .11714E-02   -1.5362    
  23  Prefactor     .10000E-03    3.3861        .24968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8581        .22863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.813        6.6608        .60912E-03   -1.5050    
  27  norm          17.783        14.427        .94968E-04   -1.4864    
  28  Prefactor     .10000E-03    41.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.1608        4.2996        .14195E-03   -1.5300    
  30  Prefactor     .10000E-03    4.5503        .14618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    57.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2404        .23868        .22616E-03   -.85365    
  33  Prefactor     .76006        .26754        .33193E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88688e-09
Minuit parameter uncertainties:
  1  7.93829
  2  2.55926e-06
  3  1.16365e-05
  4  5.05744e-05
  5  2.48301
  6  5.82479e-05
  7  7.167e-05
  8  2.25902e-05
  9  1.57994
  10  8.45645
  11  3.24585e-05
  12  1.43723e-06
  13  6.80488e-06
  14  2.78029e-06
  15  8.97323e-05
  16  2.35552e-06
  17  2.64879e-05
  18  0.00775029
  19  2.34392e-05
  20  1.22772e-05
  21  12.8864
  22  7.87713
  23  5.28866e-06
  24  9.14186e-05
  25  5.20058e-07
  26  6.66124
  27  14.4298
  28  0.000359747
  29  4.29993
  30  2.09994e-05
  31  0.000697715
  32  0.238892
  33  0.267995
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.649e-05  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.604e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.601e-01  2.680e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.240e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 8.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449328/likelihoodResults_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.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) = 4965.00931591
delta logL = -0.000278163289295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4965.00903786
delta logL = -1.16987393994e-07

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 'Index     '    2.5008       1.0000          .0000       10.000    
     3 'Normalizat'    1.2404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76008       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4965.009     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2071.0        .90712E-02** at limit **
   2  Index         2.5087        7.1861        .50000       -.43257E-05
   3  Normalizat    1.2404        .69247E-01    .51154E-01    .46549E-05
   4  Prefactor     .76006        .81837E-01    .74991E-01    .18766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50872
  Normalizat = 1.24036
  Prefactor  = 0.760061
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.009     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5087        6.0545        .50000       -.52159    
   3  Normalizat    1.2404        .21913        .22616E-03   -.85365    
   4  Prefactor     .76006        .25881        .33193E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97029e-11
Minuit parameter uncertainties:
  1  9.19308e-07
  2  6.29377
  3  0.219294
  4  0.259228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449328': 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) = 4965.00903785
delta logL = -9.93813955574e-08

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  9.193e-07  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.509e+00  6.294e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.601e-01  2.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.240e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.910 42.117

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/449328/cmap_HighResolution_263433601_263692801_4FGL_J0943.6+4207_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-08-31 23:31:42.589440', job_id='449328', GAL2='0.76', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630477902.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-9.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='93' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 449328: <4FGL_J0943.6+4207_daily_bin93> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin93> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 23:16:33 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:16:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 23:16:35 2021
Terminated at Tue Aug 31 23:31:42 2021
Results reported at Tue Aug 31 23:31:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin93 145.91 42.1169 263433601 263692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.6+4207 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

