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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin857
RA = 145.91, Dec = 42.1169
tmin = 461462401, tmax = 461721601
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='452988', job_status='RUN', time_executed='2021-08-31 23:26:13.296042', time_epoch_executed='1630477573.3' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='857'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452988/ft1_4FGL_J0943.6+4207_daily_bin857.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452988/ft2_4FGL_J0943.6+4207_daily_bin857.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452988/ft1_4FGL_J0943.6+4207_daily_bin857.fits outfile=/scratch/kocevski/452988/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin857.fits ra=145.91 dec=42.1169 rad=12.0 tmin=461462401.0 tmax=461721601.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 3.97
user 3.71
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452988/ft2_4FGL_J0943.6+4207_daily_bin857.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/452988/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin857.fits evtable="EVENTS" outfile="/scratch/kocevski/452988/ft1_filtered_4FGL_J0943.6+4207_daily_bin857.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.51
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452988/ft1_filtered_4FGL_J0943.6+4207_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/452988/ft2_4FGL_J0943.6+4207_daily_bin857.fits sctable="SC_DATA" expcube=/scratch/kocevski/452988/ltcube_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.fits outfile=/scratch/kocevski/452988/expmap_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.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/452988/ltcube_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.fits
.....................!
real 190.58
user 185.09
sys 4.91

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/452988/ft1_filtered_4FGL_J0943.6+4207_daily_bin857.fits scfile=/scratch/kocevski/452988/ft2_4FGL_J0943.6+4207_daily_bin857.fits outfile=/scratch/kocevski/452988/cmap_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452988/ft1_filtered_4FGL_J0943.6+4207_daily_bin857.fits scfile=/scratch/kocevski/452988/ft2_4FGL_J0943.6+4207_daily_bin857.fits outfile=/scratch/kocevski/452988/cmap_HighResolution_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27450E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4962       1.0000         .10000E-03   10000.    
     9 'norm      '    .55535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.746       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.135       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11805E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70467E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1846       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.473       1.0000         .10000E-03   10000.    
    25 'norm      '    9.4271       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5079       1.0000         .10000E-03   10000.    
    27 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3642       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.1964       1.0000         .10000E-03   10000.    
    31 'Prefactor '    38.363       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .57529       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3017       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=   5216.813     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4715 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6406       -.11806E-06** at limit **
   2  Prefactor     .89328        2.1877       -.27117E-06   -.11965E-03
   3  Prefactor     .10000E-03    8.7822       -.91387E-06** at limit **
   4  Prefactor     .10000E-03    26.473       -.19419E-05** at limit **
   5  Prefactor     3.2653        3.2542       -.19026E-06   -.10063E-04
   6  Prefactor     .10000E-03    16.926       -.27701E-05** at limit **
   7  Prefactor     3.7519        3.4725       -.20106E-06    .20504E-04
   8  Prefactor     4.4953        14.871       -.27560E-06   -.84583E-04
   9  norm          .55531        .36957       -.81084E-08    .14867E-03
  10  Prefactor     .10000E-03    .79752       -.70158E-07** at limit **
  11  norm          14.746        10.484       -.17817E-06   -.12626E-04
  12  Prefactor     1.7478        3.1079        .48926E-07    .25367E-04
  13  Prefactor     1.5879        4.7714        .12486E-06   -.74507E-03
  14  Prefactor     13.399        5.6609        .13504E-06    .54201E-04
  15  Prefactor     .10000E-03    8.4182        .11372E-05** at limit **
  16  norm          .10000E-03    15.450        .43046E-05** at limit **
  17  Prefactor     15.124        20.877       -.20319E-05    .40188E-04
  18  Prefactor     .10010E-03    5.9585       -.10559E-06** at limit **
  19  Prefactor     .10000E-03    58.862       -.14416E-04** at limit **
  20  Prefactor     .10000E-03    3.8575       -.50123E-07** at limit **
  21  norm          .10000E-03    5.6063       -.58193E-06** at limit **
  22  Prefactor     3.1778        6.3699       -.20853E-07   -.65906E-03
  23  Prefactor     .10000E-03    1.8778       -.30145E-06** at limit **
  24  Prefactor     11.464        33.096       -.12482E-04    .92997E-05
  25  norm          9.4269        3.3025       -.61270E-07    .36582E-04
  26  Prefactor     3.5045        4.3382        .30537E-06   -.29689E-03
  27  norm          .10000E-03    9.9920        .47033E-06** at limit **
  28  Prefactor     .10000E-03    52.189        .16683E-04** at limit **
  29  Prefactor     4.3639        5.2060       -.22263E-07    .19445E-04
  30  Prefactor     5.1879        6.3777        .10585E-06   -.25846E-03
  31  Prefactor     38.357        45.575       -.60595E-05   -.45491E-04
  32  Normalizat    .57550        .17953        .33613E-05    .48774E-04
  33  Prefactor     1.3015        .20611       -.26069E-06    .16443E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.893276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26527
  Prefactor  = 0.0001
  Prefactor  = 3.75189
  Prefactor  = 4.49529
  norm       = 0.555315
  Prefactor  = 0.0001
  norm       = 14.7457
  Prefactor  = 1.74781
  Prefactor  = 1.58785
  Prefactor  = 13.3986
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1244
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.17784
  Prefactor  = 0.0001
  Prefactor  = 11.464
  norm       = 9.42688
  Prefactor  = 3.50452
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36388
  Prefactor  = 5.18791
  Prefactor  = 38.3568
  Normalizat = 0.575497
  Prefactor  = 1.30153
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.813     FROM HESSE     STATUS=OK           703 CALLS     5418 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.230        .30135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .89328        2.1322        .15833E-03   -1.5519    
   3  Prefactor     .10000E-03    8.7907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2653        3.2484        .12599E-03   -1.5347    
   6  Prefactor     .10000E-03    16.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7519        3.4261        .11581E-03   -1.5321    
   8  Prefactor     4.4953        14.918        .94939E-03   -1.5284    
   9  norm          .55531        .36547        .34269E-04   -1.5559    
  10  Prefactor     .10000E-03    .80585        .62824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.746        10.392        .52151E-03   -1.4940    
  12  Prefactor     1.7478        3.0232        .14180E-03   -1.5444    
  13  Prefactor     1.5879        8.9650        .16832E-02   -1.5456    
  14  Prefactor     13.399        5.4071        .10101E-03   -1.4976    
  15  Prefactor     .10000E-03    8.4247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.124        20.819        .10295E-03   -1.4930    
  18  Prefactor     .10010E-03    40.359        .29443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.162        .27581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.6365        .16701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1778        6.8380        .11354E-02   -1.5351    
  23  Prefactor     .10000E-03    6.0021        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.464        33.251        .11827E-03   -1.5031    
  25  norm          9.4269        3.3028        .75069E-04   -1.5094    
  26  Prefactor     3.5045        4.1569        .74541E-03   -1.5334    
  27  norm          .10000E-03    10.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    52.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.3639        5.1812        .15681E-03   -1.5290    
  30  Prefactor     5.1879        6.3468        .17634E-03   -1.5252    
  31  Prefactor     38.357        45.528        .64711E-04   -1.4469    
  32  Normalizat    .57550        .21418        .27106E-03   -1.0903    
  33  Prefactor     1.3015        .24425        .24054E-03   -.83262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1089e-09
Minuit parameter uncertainties:
  1  0.000119115
  2  2.13235
  3  6.0465e-06
  4  1.94445e-05
  5  3.24853
  6  1.10928e-05
  7  3.42624
  8  14.9301
  9  0.365468
  10  1.41353e-06
  11  10.3935
  12  3.02347
  13  7.54736
  14  5.40731
  15  1.50101e-05
  16  7.09216e-05
  17  20.8287
  18  0.0039647
  19  0.000338679
  20  0.00013627
  21  7.88932e-06
  22  6.83972
  23  3.55612e-06
  24  33.3049
  25  3.3029
  26  4.15729
  27  0.00013691
  28  0.000164867
  29  5.18173
  30  6.34758
  31  45.5697
  32  0.214489
  33  0.244467
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.512e+01  2.083e+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:  1.302e+00  2.445e-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:  5.755e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/452988/likelihoodResults_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.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): 0
logL (Free Index) = 5216.57282351
delta logL = 0.240248446831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5216.56026796
delta logL = 0.252804003859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0028       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4906       1.0000          .0000       10.000    
     3 'Normalizat'    .55692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3171       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=   5216.560     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      305 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0019        32.236        .16388E-03   -.44716E-03
   2  Index         3.4914        2.5879        .73317E-02   -.99098E-04
   3  Normalizat    .55690        .18605        .27524E-03   -.27616E-03
   4  Prefactor     1.3170        .23750        .23931E-03   -.27008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00186
  Index      = 3.49139
  Normalizat = 0.556904
  Prefactor  = 1.31704
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.560     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0019        14.567        .65554E-05   -1.5218    
   2  Index         3.4914        1.4095        .29327E-03   -.30650    
   3  Normalizat    .55690        .18590        .11010E-04   -1.0985    
   4  Prefactor     1.3170        .23695        .47862E-04   -.82802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04741e-10
Minuit parameter uncertainties:
  1  14.5756
  2  1.43089
  3  0.186107
  4  0.237142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452988': 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) = 5216.56026695
delta logL = 0.252805010611

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  6.002e+00  1.458e+01  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  3.491e+00  1.431e+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:  1.317e+00  2.371e-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:  5.569e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 145.910 42.117
Photon Index (Free Index): 3.49 +/- 1.43
Photon Flux (Free Index): 3.46e-08 +/- 3.72e-08
Energy Flux (Free Index): 5.77e-06 +/- 6.17e-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/452988/cmap_HighResolution_461462401_461721601_4FGL_J0943.6+4207_daily_bin857.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', comment='SUCCESS', energy_flux2='5.77e-06', dlogl='2.53e-01', photon_flux2='3.46e-08', job_status='DONE', time_completed='2021-08-31 23:42:36.949488', photon_index_error2='1.43', photon_index2='3.49', ts='0.70', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='6.17e-06', EG='0.58', time_epoch_completed='1630478556.95', return_code='0', job_id='452988', GAL2='1.32', EG2='0.56', return_code2='0', photon_flux_error2='3.72e-08', ts2='1.23', photon_index='2.60' WHERE bin_id='857' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:42:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 452988: <4FGL_J0943.6+4207_daily_bin857> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin857> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 23:26:00 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:26:02 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:26:02 2021
Terminated at Tue Aug 31 23:42:37 2021
Results reported at Tue Aug 31 23:42:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin857 145.91 42.1169 461462401 461721601 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 :                                   970.39 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

