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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin755
RA = 145.91, Dec = 42.1169
tmin = 435024001, tmax = 435283201
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='452851', job_status='RUN', time_executed='2021-08-31 23:28:18.604446', time_epoch_executed='1630477698.6' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452851/ft1_4FGL_J0943.6+4207_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452851/ft2_4FGL_J0943.6+4207_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452851/ft1_4FGL_J0943.6+4207_daily_bin755.fits outfile=/scratch/kocevski/452851/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin755.fits ra=145.91 dec=42.1169 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.05
user 4.76
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452851/ft1_filtered_4FGL_J0943.6+4207_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/452851/ft2_4FGL_J0943.6+4207_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/452851/ltcube_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.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/452851/ft2_4FGL_J0943.6+4207_daily_bin755.fits
.....................!
real 12.93
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452851/ft1_filtered_4FGL_J0943.6+4207_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/452851/ft2_4FGL_J0943.6+4207_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/452851/ltcube_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.fits outfile=/scratch/kocevski/452851/expmap_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.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/452851/ltcube_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.fits
.....................!
real 191.55
user 185.19
sys 4.65

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/452851/ft1_filtered_4FGL_J0943.6+4207_daily_bin755.fits scfile=/scratch/kocevski/452851/ft2_4FGL_J0943.6+4207_daily_bin755.fits outfile=/scratch/kocevski/452851/cmap_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452851/ft1_filtered_4FGL_J0943.6+4207_daily_bin755.fits scfile=/scratch/kocevski/452851/ft2_4FGL_J0943.6+4207_daily_bin755.fits outfile=/scratch/kocevski/452851/cmap_HighResolution_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4957       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15179E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20889       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.279       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15133E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99610       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.980       1.0000         .10000E-03   10000.    
    16 'norm      '    20.048       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13205       1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30359E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8607       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.973       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9384       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .70056E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91640       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1547       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=   4387.923     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     3949 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.940        10.135        .16658E-06    .54491E-03
   2  Prefactor     3.4950        2.7443       -.43002E-07    .30364E-03
   3  Prefactor     .10006E-03    169.80       -.10786E-03** at limit **
   4  Prefactor     .10000E-03    21.699       -.27811E-05** at limit **
   5  Prefactor     .10000E-03    1.4276       -.41555E-07** at limit **
   6  Prefactor     .10000E-03    12.063       -.98356E-05** at limit **
   7  Prefactor     .20070        2.0012       -.41519E-06    .68771E-04
   8  Prefactor     .10000E-03    7.9139       -.29757E-05** at limit **
   9  norm          .10000E-03    .22056        .82087E-07** at limit **
  10  Prefactor     .10000E-03    2.0939       -.33393E-06** at limit **
  11  norm          19.279        10.639        .16672E-07    .23888E-03
  12  Prefactor     .10000E-03    .76012       -.27266E-06** at limit **
  13  Prefactor     .10000E-03    14.940        .66303E-05** at limit **
  14  Prefactor     .99389        4.7209       -.16323E-05   -.60955E-03
  15  Prefactor     10.964        17.088        .11617E-05    .45239E-04
  16  norm          20.050        16.609       -.24938E-06    .63913E-04
  17  Prefactor     .10000E-03    9.3248        .77397E-05** at limit **
  18  Prefactor     .10000E-03    1.9838       -.19752E-06** at limit **
  19  Prefactor     .10000E-03    30.522       -.22797E-04** at limit **
  20  Prefactor     .11591        7.9089       -.17340E-05    .24617E-03
  21  norm          .10000E-03    12.929       -.59669E-05** at limit **
  22  Prefactor     .10000E-03    3.3697       -.25250E-06** at limit **
  23  Prefactor     .10000E-03    2.5169       -.20473E-06** at limit **
  24  Prefactor     .10000E-03    14.130        .93338E-06** at limit **
  25  norm          3.8611        3.0582       -.40374E-07    .81594E-04
  26  Prefactor     17.979        7.3266       -.10535E-06    .10991E-03
  27  norm          .10000E-03    5.1739        .21881E-06** at limit **
  28  Prefactor     .10000E-03    45.177        .34074E-04** at limit **
  29  Prefactor     2.9413        4.4387       -.13179E-05   -.40076E-03
  30  Prefactor     .10000E-03    4.4107       -.51210E-06** at limit **
  31  Prefactor     .10000E-03    16.186        .11560E-04** at limit **
  32  Normalizat    .91604        .19865        .23781E-05    .67629E-03
  33  Prefactor     1.1552        .23542       -.11384E-05    .56325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.9402
  Prefactor  = 3.49501
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.2007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.2788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.993888
  Prefactor  = 10.9639
  norm       = 20.0501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.115908
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86107
  Prefactor  = 17.9787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.916043
  Prefactor  = 1.15518
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.923     FROM HESSE     STATUS=OK           697 CALLS     4646 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.940        10.132        .80199E-04   -1.4709    
   2  Prefactor     3.4950        2.7347        .92940E-04   -1.5334    
   3  Prefactor     .10006E-03    171.14        .40923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4466        .77290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20070        13.575        .17300E-02   -1.5618    
   8  Prefactor     .10000E-03    7.9210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .29891        .58227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6339        .17712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.279        10.617        .91219E-04   -1.4830    
  12  Prefactor     .10000E-03    .76349        .56336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .99389        4.7953        .26883E-03   -1.5509    
  15  Prefactor     10.964        16.947        .12090E-03   -1.5046    
  16  norm          20.050        16.607        .89454E-04   -1.4812    
  17  Prefactor     .10000E-03    9.3352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9845        .91072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11591        8.8608        .61135E-01   -1.5640    
  21  norm          .10000E-03    13.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.127        .23244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5361        .10246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8611        3.0476        .99700E-04   -1.5315    
  26  Prefactor     17.979        7.2717        .94474E-04   -1.4860    
  27  norm          .10000E-03    5.1875        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    45.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.9413        4.4300        .16435E-03   -1.5365    
  30  Prefactor     .10000E-03    18.266        .26555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91604        .23231        .23696E-03   -.95899    
  33  Prefactor     1.1552        .27997        .26944E-03   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95339e-09
Minuit parameter uncertainties:
  1  10.1328
  2  2.73483
  3  0.00657946
  4  4.1583e-05
  5  1.12816e-06
  6  1.3168e-07
  7  3.30119
  8  5.2047e-07
  9  1.04688e-06
  10  2.50737e-05
  11  10.6181
  12  5.75148e-08
  13  3.69861e-05
  14  4.36655
  15  16.9544
  16  16.6104
  17  4.32439e-07
  18  3.0027e-06
  19  2.29784e-05
  20  2.0263
  21  6.06828e-06
  22  0.000234104
  23  5.32414e-07
  24  3.48569e-07
  25  3.04771
  26  7.27207
  27  2.36561e-06
  28  5.34473e-05
  29  4.43053
  30  3.10019e-05
  31  4.18474e-06
  32  0.232567
  33  0.280331
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.324e-07  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.155e+00  2.803e-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.160e-01  2.326e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452851/likelihoodResults_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.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) = 4387.92314419
delta logL = -0.000509800937834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4387.92263439
delta logL = -2.47655407293e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5876       1.0000          .0000       10.000    
     3 'Normalizat'    .91605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1552       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=   4387.923     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.326        .18142E-01** at limit **
   2  Index         1.9859        7.3082        .50000        .24547E-06
   3  Normalizat    .91603        .85976E-02    .23696E-03   -.39025E-02
   4  Prefactor     1.1552        .10889E-01    .26944E-03   -.34504E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98587
  Normalizat = 0.916033
  Prefactor  = 1.15517
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.923     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    348.49        .22229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9859        6.4949        .50000       -.64704    
   3  Normalizat    .91603        .26471E-01    .47392E-04   -.95899    
   4  Prefactor     1.1552        .33526E-01    .53887E-04   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88646e-09
Minuit parameter uncertainties:
  1  0.0008375
  2  1188.03
  3  0.0264715
  4  0.033527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452851': 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) = 4387.92263328
delta logL = 1.11233021016e-06

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  8.375e-04  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  1.986e+00  1.188e+03  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.155e+00  3.353e-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.160e-01  2.647e-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/452851/cmap_HighResolution_435024001_435283201_4FGL_J0943.6+4207_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-08-31 23:42:04.147888', job_id='452851', GAL2='1.16', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630478524.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='755' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 452851: <4FGL_J0943.6+4207_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin755 145.91 42.1169 435024001 435283201 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 :                                   822.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

