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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin22
RA = 145.91, Dec = 42.1169
tmin = 245030401, tmax = 245289601
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='449220', job_status='RUN', time_executed='2021-08-31 23:19:14.314425', time_epoch_executed='1630477154.31' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449220/ft1_4FGL_J0943.6+4207_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449220/ft1_4FGL_J0943.6+4207_daily_bin22.fits outfile=/scratch/kocevski/449220/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin22.fits ra=145.91 dec=42.1169 rad=12.0 tmin=245030401.0 tmax=245289601.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.88
user 1.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.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/449220/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/449220/ft1_filtered_4FGL_J0943.6+4207_daily_bin22.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.54
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449220/ft1_filtered_4FGL_J0943.6+4207_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/449220/ltcube_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.fits outfile=/scratch/kocevski/449220/expmap_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.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/449220/ltcube_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.fits
.....................!
real 191.32
user 185.30
sys 5.61

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/449220/ft1_filtered_4FGL_J0943.6+4207_daily_bin22.fits scfile=/scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.fits outfile=/scratch/kocevski/449220/cmap_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449220/ft1_filtered_4FGL_J0943.6+4207_daily_bin22.fits scfile=/scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.fits outfile=/scratch/kocevski/449220/cmap_HighResolution_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449220/ft1_filtered_4FGL_J0943.6+4207_daily_bin22.fits', '/scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.fits', expMap='/scratch/kocevski/449220/expmap_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.fits', expCube='/scratch/kocevski/449220/ltcube_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449220/Model_4FGL_J0943.6+4207_daily_bin22.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/449220/ft1_filtered_4FGL_J0943.6+4207_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/449220/ft2_4FGL_J0943.6+4207_daily_bin22.fits
Exposure map: /scratch/kocevski/449220/expmap_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.fits
Exposure cube: /scratch/kocevski/449220/ltcube_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449220/Model_4FGL_J0943.6+4207_daily_bin22.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) = 4528.37344816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6005       1.0000         .10000E-03   10000.    
     9 'norm      '    .91971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5933       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7097       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .24686E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    94.825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11385E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.655       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37057E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.361       1.0000         .10000E-03   10000.    
    25 'norm      '    6.9460       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.798       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.842       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0565       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67689       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=   4528.351     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4641 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4891        .77179E-07** at limit **
   2  Prefactor     1.8734        2.2643        .43647E-06   -.12473E-03
   3  Prefactor     .10000E-03    11.056       -.52542E-06** at limit **
   4  Prefactor     17.843        39.725       -.84641E-04   -.25709E-06
   5  Prefactor     3.3364        3.0348       -.14748E-06    .10910E-03
   6  Prefactor     55.660        40.248        .81335E-06    .57956E-05
   7  Prefactor     .10000E-03    .82070       -.25259E-08** at limit **
   8  Prefactor     8.5944        20.291       -.22973E-05   -.27388E-04
   9  norm          .91978        .51500       -.75645E-07   -.19493E-02
  10  Prefactor     .10000E-03    2.6830        .94586E-06** at limit **
  11  norm          5.5955        8.8042       -.63465E-06   -.11771E-03
  12  Prefactor     1.7102        2.0271       -.27178E-06   -.44019E-03
  13  Prefactor     .10000E-03    4.2381       -.11059E-05** at limit **
  14  Prefactor     3.1590        3.5347        .21642E-05    .20427E-03
  15  Prefactor     .10000E-03    7.2377        .36191E-05** at limit **
  16  norm          .10001E-03    65.166        .18227E-04** at limit **
  17  Prefactor     94.823        50.060       -.24654E-05   -.18435E-03
  18  Prefactor     .10000E-03    5.9607       -.12919E-05** at limit **
  19  Prefactor     78.668        67.178        .12380E-04   -.10873E-04
  20  Prefactor     .10380E-03    10.814       -.55568E-05** at limit **
  21  norm          .10000E-03    5.9745       -.28890E-05** at limit **
  22  Prefactor     .10000E-03    2.2536       -.22645E-07** at limit **
  23  Prefactor     .10005E-03    2.7831        .11890E-05** at limit **
  24  Prefactor     33.335        45.555       -.32082E-04    .28268E-04
  25  norm          6.9463        3.4395       -.38648E-06    .10116E-03
  26  Prefactor     .10000E-03    3.8687        .21726E-06** at limit **
  27  norm          13.803        13.215        .39451E-05    .91838E-04
  28  Prefactor     .10000E-03    28.981       -.62728E-05** at limit **
  29  Prefactor     11.843        5.7684        .51654E-06    .13025E-03
  30  Prefactor     .10000E-03    4.4863       -.96808E-06** at limit **
  31  Prefactor     .10000E-03    9.8507       -.28846E-05** at limit **
  32  Normalizat    1.0562        .19641        .24330E-05    .56647E-03
  33  Prefactor     .67740        .21105        .38387E-05    .31472E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.87345
  Prefactor  = 0.0001
  Prefactor  = 17.8434
  Prefactor  = 3.33636
  Prefactor  = 55.6595
  Prefactor  = 0.0001
  Prefactor  = 8.59443
  norm       = 0.919776
  Prefactor  = 0.000100001
  norm       = 5.59552
  Prefactor  = 1.71018
  Prefactor  = 0.0001
  Prefactor  = 3.15904
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 94.8228
  Prefactor  = 0.000100002
  Prefactor  = 78.6679
  Prefactor  = 0.000103803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 33.3345
  norm       = 6.94628
  Prefactor  = 0.0001
  norm       = 13.8026
  Prefactor  = 0.0001
  Prefactor  = 11.8428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05621
  Prefactor  = 0.677398
 **********
 **   18 **HESSE 
 **********

 FCN=   4528.351     FROM HESSE     STATUS=OK           697 CALLS     5338 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4942        .10368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8734        2.2424        .10641E-03   -1.5434    
   3  Prefactor     .10000E-03    11.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.843        39.761        .94651E-04   -1.4863    
   5  Prefactor     3.3364        3.0393        .10856E-03   -1.5343    
   6  Prefactor     55.660        40.201        .53768E-04   -1.4214    
   7  Prefactor     .10000E-03    .82369        .59507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5944        20.161        .13669E-03   -1.5122    
   9  norm          .91978        .48584        .32708E-04   -1.5516    
  10  Prefactor     .10000E-03    4.8327        .19796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5955        8.7463        .16987E-03   -1.5235    
  12  Prefactor     1.7102        2.0027        .98983E-04   -1.5446    
  13  Prefactor     .10000E-03    4.2539        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1590        3.4784        .12795E-03   -1.5352    
  15  Prefactor     .10000E-03    7.2505        .17680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    65.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     94.823        49.841        .41274E-04   -1.3757    
  18  Prefactor     .10000E-03    16.256        .31206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.668        67.232        .45282E-04   -1.3932    
  20  Prefactor     .10380E-03    147.46        .40075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.9956        .16065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.2588        .98630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10005E-03    13.314        .20751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.335        45.604        .69377E-04   -1.4553    
  25  norm          6.9463        3.4378        .85351E-04   -1.5181    
  26  Prefactor     .10000E-03    3.9225        .12880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.803        13.168        .10783E-03   -1.4965    
  28  Prefactor     .10000E-03    29.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.843        5.7653        .10665E-03   -1.5020    
  30  Prefactor     .10000E-03    10.882        .27494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    9.8516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0562        .21722        .21816E-03   -.91171    
  33  Prefactor     .67740        .24080        .31292E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87746e-08
Minuit parameter uncertainties:
  1  1.54714e-05
  2  2.24249
  3  0.000109661
  4  39.8205
  5  3.03942
  6  40.2205
  7  1.78568e-06
  8  20.1767
  9  0.485844
  10  0.000160362
  11  8.74826
  12  2.00283
  13  1.21749e-06
  14  3.47866
  15  3.23738e-06
  16  0.0012854
  17  49.8633
  18  0.000328804
  19  67.2966
  20  0.0474776
  21  1.02793e-05
  22  3.98351e-06
  23  0.00155094
  24  45.6513
  25  3.4379
  26  1.87353e-05
  27  13.1709
  28  1.81631e-05
  29  5.76553
  30  7.67439e-05
  31  2.03128e-07
  32  0.217408
  33  0.241167
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  9.482e+01  4.986e+01  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:  6.774e-01  2.412e-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.056e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.16
Ra Dec: 145.910 42.117
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 7.03e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.84e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4528.3449726
delta logL = 0.00638596998306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4528.33325487
delta logL = 0.0181036942822

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4528.333     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      262 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.942        72.736        .43588E-04    .14335E-03
   2  Index         2.7151        .65730        .43151E-02    .68093E-04
   3  Normalizat    1.0460        .21491        .21903E-03    .87149E-04
   4  Prefactor     .68706        .24601        .31100E-03    .46754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.9416
  Index      = 2.71511
  Normalizat = 1.04599
  Prefactor  = 0.687058
 **********
 **   18 **HESSE 
 **********

 FCN=   4528.333     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.942        66.694        .87176E-05   -1.3862    
   2  Index         2.7151        .60222        .17260E-03   -.47460    
   3  Normalizat    1.0460        .21414        .87611E-05   -.91505    
   4  Prefactor     .68706        .24522        .12440E-04   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89587e-11
Minuit parameter uncertainties:
  1  66.7529
  2  0.60408
  3  0.21432
  4  0.245605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449220': 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) = 4528.33325487
delta logL = 0.0181036949543

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  8.494e+01  6.675e+01  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.715e+00  6.041e-01  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:  6.871e-01  2.456e-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.046e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.38
Ra Dec: 145.910 42.117
Photon Index (Free Index): 2.72 +/- 0.60
Photon Flux (Free Index): 1.41e-07 +/- 7.38e-08
Energy Flux (Free Index): 3.36e-05 +/- 1.66e-05

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/449220/cmap_HighResolution_245030401_245289601_4FGL_J0943.6+4207_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='3.36e-05', photon_flux_error='7.03e-08', dlogl='1.81e-02', energy_flux='3.49e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-08-31 23:32:12.581845', photon_index_error2='0.60', photon_index2='2.72', ts='8.16', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.06', time_epoch_completed='1630477932.58', return_code='0', job_id='449220', GAL2='0.69', EG2='1.05', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.38e-08', ts2='8.38', photon_index='2.60' WHERE bin_id='22' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:32:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 449220: <4FGL_J0943.6+4207_daily_bin22> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin22> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 23:16:23 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:16:24 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:24 2021
Terminated at Tue Aug 31 23:32:13 2021
Results reported at Tue Aug 31 23:32:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin22 145.91 42.1169 245030401 245289601 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 :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

