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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin733
RA = 145.91, Dec = 42.1169
tmin = 429321601, tmax = 429580801
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='452815', job_status='RUN', time_executed='2021-08-31 23:26:01.670805', time_epoch_executed='1630477561.67' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452815/ft1_4FGL_J0943.6+4207_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452815/ft1_4FGL_J0943.6+4207_daily_bin733.fits outfile=/scratch/kocevski/452815/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin733.fits ra=145.91 dec=42.1169 rad=12.0 tmin=429321601.0 tmax=429580801.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.54
user 6.17
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452815/ft1_filtered_4FGL_J0943.6+4207_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/452815/ltcube_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.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/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits
.....................!
real 12.06
user 11.60
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452815/ft1_filtered_4FGL_J0943.6+4207_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/452815/ltcube_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.fits outfile=/scratch/kocevski/452815/expmap_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.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/452815/ltcube_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.fits
.....................!
real 191.25
user 186.08
sys 4.66

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/452815/ft1_filtered_4FGL_J0943.6+4207_daily_bin733.fits scfile=/scratch/kocevski/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits outfile=/scratch/kocevski/452815/cmap_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452815/ft1_filtered_4FGL_J0943.6+4207_daily_bin733.fits scfile=/scratch/kocevski/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits outfile=/scratch/kocevski/452815/cmap_HighResolution_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.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/452815/ft1_filtered_4FGL_J0943.6+4207_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/452815/ft2_4FGL_J0943.6+4207_daily_bin733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452815/Model_4FGL_J0943.6+4207_daily_bin733.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/452815/ft1_filtered_4FGL_J0943.6+4207_daily_bin733.fits.....................!
real 34.43
user 33.15
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.730       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0016       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .63823       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1752       1.0000         .10000E-03   10000.    
    11 'norm      '    66.029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.740       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1883       1.0000         .10000E-03   10000.    
    21 'norm      '    8.5043       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7384       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.776       1.0000         .10000E-03   10000.    
    25 'norm      '    13.497       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.232       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91771       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .54188       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=   3302.674     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4531 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.731        9.7749        .17614E-07   -.21495E-04
   2  Prefactor     .10000E-03    2.3753        .38239E-08** at limit **
   3  Prefactor     21.309        28.591       -.97443E-06   -.16138E-04
   4  Prefactor     .10000E-03    29.538        .87069E-05** at limit **
   5  Prefactor     8.8599        5.1943        .15321E-06   -.44309E-05
   6  Prefactor     .10000E-03    40.039        .60980E-06** at limit **
   7  Prefactor     5.0004        3.8619       -.17217E-05   -.95252E-04
   8  Prefactor     .10000E-03    40.992       -.24019E-05** at limit **
   9  norm          .63823        .56491        .24115E-07    .11049E-03
  10  Prefactor     2.1758        3.0790        .14486E-06   -.18783E-03
  11  norm          66.007        17.217       -.15707E-05    .10485E-03
  12  Prefactor     .10000E-03    1.2346        .12535E-06** at limit **
  13  Prefactor     5.0435        7.8279       -.97942E-06   -.12002E-03
  14  Prefactor     .10000E-03    1.6261       -.31603E-07** at limit **
  15  Prefactor     44.749        22.918        .36207E-05   -.11430E-03
  16  norm          .10000E-03    8.2003       -.63182E-05** at limit **
  17  Prefactor     .10000E-03    15.943       -.82550E-05** at limit **
  18  Prefactor     .10000E-03    7.1758        .27969E-05** at limit **
  19  Prefactor     .10000E-03    14.069        .21719E-05** at limit **
  20  Prefactor     6.1883        6.7114        .66269E-06    .89109E-03
  21  norm          8.5067        14.046       -.97974E-06   -.94729E-04
  22  Prefactor     .10000E-03    10.331        .53012E-05** at limit **
  23  Prefactor     2.7365        4.1839       -.16910E-05   -.23487E-03
  24  Prefactor     51.779        45.357        .31197E-05    .12311E-04
  25  norm          13.498        5.6172       -.35275E-08   -.97411E-04
  26  Prefactor     .10000E-03    3.9582       -.68771E-06** at limit **
  27  norm          10.231        16.154       -.10388E-05   -.18989E-04
  28  Prefactor     .10000E-03    41.330       -.48482E-05** at limit **
  29  Prefactor     .10000E-03    9.4404        .65486E-07** at limit **
  30  Prefactor     .10000E-03    3.8628        .82518E-06** at limit **
  31  Prefactor     .10000E-03    26.974        .18171E-05** at limit **
  32  Normalizat    .91764        .21252        .11525E-05   -.81542E-04
  33  Prefactor     .54201        .23720        .26719E-06   -.30143E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.7311
  Prefactor  = 0.0001
  Prefactor  = 21.3089
  Prefactor  = 0.0001
  Prefactor  = 8.85987
  Prefactor  = 0.0001
  Prefactor  = 5.00038
  Prefactor  = 0.000100002
  norm       = 0.638227
  Prefactor  = 2.17579
  norm       = 66.0071
  Prefactor  = 0.0001
  Prefactor  = 5.04354
  Prefactor  = 0.0001
  Prefactor  = 44.7489
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18834
  norm       = 8.50669
  Prefactor  = 0.0001
  Prefactor  = 2.7365
  Prefactor  = 51.7795
  norm       = 13.498
  Prefactor  = 0.0001
  norm       = 10.231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.917636
  Prefactor  = 0.542008
 **********
 **   18 **HESSE 
 **********

 FCN=   3302.674     FROM HESSE     STATUS=OK           691 CALLS     5222 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.731        9.7673        .87971E-04   -1.4797    
   2  Prefactor     .10000E-03    2.4493        .17252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.309        28.589        .86768E-04   -1.4784    
   4  Prefactor     .10000E-03    29.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8599        5.1969        .96833E-04   -1.5113    
   6  Prefactor     .10000E-03    40.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0004        3.8558        .93567E-04   -1.5261    
   8  Prefactor     .10000E-03    41.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .63823        .56350        .34946E-04   -1.5548    
  10  Prefactor     2.1758        3.0756        .10178E-03   -1.5413    
  11  norm          66.007        17.220        .49390E-04   -1.4081    
  12  Prefactor     .10000E-03    1.2474        .62315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0435        7.8266        .17905E-03   -1.5259    
  14  Prefactor     .10000E-03    1.6337        .71561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.749        22.855        .59940E-04   -1.4369    
  16  norm          .10000E-03    8.1887        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2574        .14972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.1883        6.7872        .76314E-03   -1.5210    
  21  norm          8.5067        14.062        .13746E-03   -1.5125    
  22  Prefactor     .10000E-03    10.451        .35820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7365        4.1957        .13947E-03   -1.5377    
  24  Prefactor     51.779        45.520        .55737E-04   -1.4268    
  25  norm          13.498        5.6174        .85242E-04   -1.4973    
  26  Prefactor     .10000E-03    3.9762        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.231        16.106        .12526E-03   -1.5068    
  28  Prefactor     .10000E-03    41.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.6679        .34383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.8808        .11029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    26.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91764        .24836        .21786E-03   -.95843    
  33  Prefactor     .54201        .27353        .32540E-03   -1.1009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7679e-10
Minuit parameter uncertainties:
  1  9.76805
  2  2.7716e-06
  3  28.6071
  4  9.28416e-06
  5  5.19716
  6  0.000126301
  7  3.85599
  8  0.000501597
  9  0.563505
  10  3.07577
  11  17.2214
  12  1.3494e-05
  13  7.82821
  14  6.12191e-06
  15  22.86
  16  4.64024e-06
  17  1.70947e-05
  18  8.35718e-05
  19  5.68444e-06
  20  6.78806
  21  14.0676
  22  0.00012836
  23  4.19614
  24  45.5501
  25  5.61759
  26  3.34556e-05
  27  16.1131
  28  1.52391e-05
  29  2.66288e-05
  30  2.22331e-06
  31  2.14545e-06
  32  0.248672
  33  0.274204
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.709e-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:  5.420e-01  2.742e-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:  9.176e-01  2.487e-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: 7.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452815/likelihoodResults_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.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) = 3302.67421167
delta logL = -0.000298570944778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3302.67391453
delta logL = -1.428599262e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0484       1.0000          .0000       10.000    
     3 'Normalizat'    .91763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54201       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=   3302.674     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      279 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10322E-03    7.5535        .18142E-01** at limit **
   2  Index         2.9582        5.9302        .50000        .19524E-04
   3  Normalizat    .91764        .39711E-02    .21786E-03   -.31832E-04
   4  Prefactor     .54201        .46684E-02    .32540E-03   -.13049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103223
  Index      = 2.95817
  Normalizat = 0.917636
  Prefactor  = 0.542008
 **********
 **   18 **HESSE 
 **********

 FCN=   3302.674     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10322E-03    95.534        .19345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9582        5.8894        .50000       -.42066    
   3  Normalizat    .91764        .14091E-01    .87142E-05   -.95843    
   4  Prefactor     .54201        .16565E-01    .13016E-04   -1.1009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.53132e-09
Minuit parameter uncertainties:
  1  0.0351507
  2  346.174
  3  0.0140907
  4  0.0165649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452815': 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) = 3302.67391421
delta logL = -1.11395502245e-06

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.032e-04  3.515e-02  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.958e+00  3.462e+02  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:  5.420e-01  1.656e-02  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:  9.176e-01  1.409e-02  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/452815/cmap_HighResolution_429321601_429580801_4FGL_J0943.6+4207_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-08-31 23:38:26.695869', job_id='452815', GAL2='0.54', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630478306.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='-1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='733' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:38:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 452815: <4FGL_J0943.6+4207_daily_bin733> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin733> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 23:25:47 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:25:48 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:25:48 2021
Terminated at Tue Aug 31 23:38:27 2021
Results reported at Tue Aug 31 23:38:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin733 145.91 42.1169 429321601 429580801 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 :                                   732.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

