/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 188 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin322
RA = 160.805, Dec = 24.146
tmin = 322790401, tmax = 323049601
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='72070', job_status='RUN', time_executed='2021-09-02 08:50:45.930501', time_epoch_executed='1630597845.93' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72070/ft1_4FGL_J1043.2+2408_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72070/ft1_4FGL_J1043.2+2408_daily_bin322.fits outfile=/scratch/kocevski/72070/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin322.fits ra=160.805 dec=24.146 rad=12.0 tmin=322790401.0 tmax=323049601.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 11.93
user 11.50
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.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/72070/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/72070/ltcube_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.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/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits
.....................!
real 11.99
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/72070/ltcube_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.fits outfile=/scratch/kocevski/72070/expmap_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.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/72070/ltcube_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.fits
.....................!
real 192.48
user 187.13
sys 4.98

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

Setting source of interest to:
4FGL J1043.2+2408 @ 160.805 24.146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits scfile=/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits outfile=/scratch/kocevski/72070/cmap_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.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=160.805 yref=24.146 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits scfile=/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits outfile=/scratch/kocevski/72070/cmap_HighResolution_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.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=160.805 yref=24.146 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/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72070/Model_4FGL_J1043.2+2408_daily_bin322.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/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits......................!
real 38.63
user 37.37
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits', '/scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits', expMap='/scratch/kocevski/72070/expmap_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.fits', expCube='/scratch/kocevski/72070/ltcube_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72070/Model_4FGL_J1043.2+2408_daily_bin322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1043.2+2408'

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.079e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/72070/ft1_filtered_4FGL_J1043.2+2408_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/72070/ft2_4FGL_J1043.2+2408_daily_bin322.fits
Exposure map: /scratch/kocevski/72070/expmap_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.fits
Exposure cube: /scratch/kocevski/72070/ltcube_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72070/Model_4FGL_J1043.2+2408_daily_bin322.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) = 3837.31439327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13993E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.651       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22247E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79712       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13464       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .52328       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   3837.267     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     1933 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9791        5.6343        .16925E-03   -.50110E-04
   2  Prefactor     .10000E-03    .81589        .54376E-03** at limit **
   3  norm          11.923        8.6114        .58009E-03   -.22630E-03
   4  Prefactor     .10000E-03    191.97        .18142E-02** at limit **
   5  Prefactor     .10000E-03    15.643        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.3326        .11024E-02** at limit **
   7  Prefactor     .10000E-03    1.8830        .16345E-03** at limit **
   8  Prefactor     2.8394        8.7986        .24148E-03   -.64169E-04
   9  Prefactor     21.660        12.439        .86080E-04    .46951E-04
  10  Prefactor     .10044E-03    216.12        .60408E-02** at limit **
  11  Prefactor     .10000E-03    13.711        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.5063        .12814E-02** at limit **
  13  Prefactor     .10000E-03    19.047        .18142E-02** at limit **
  14  Prefactor     .79741        1.3014        .10429E-02    .75128E-03
  15  Prefactor     .14345        103.69        .35828E-02    .19530E-03
  16  norm          9.6039        10.428        .12933E-03   -.32085E-05
  17  Prefactor     .10000E-03    8.2758        .17364E-02** at limit **
  18  Normalizat    .52311        .21965        .27610E-03   -.41527E-04
  19  Prefactor     1.2964        .24482        .21054E-03   -.13205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97906
  Prefactor  = 0.0001
  norm       = 11.9235
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83939
  Prefactor  = 21.6603
  Prefactor  = 0.000100442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.797414
  Prefactor  = 0.143449
  norm       = 9.60387
  Prefactor  = 0.0001
  Normalizat = 0.523111
  Prefactor  = 1.29636
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.267     FROM HESSE     STATUS=OK           254 CALLS     2187 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9791        5.6336        .67699E-05   -1.5309    
   2  Prefactor     .10000E-03    .81592        .10875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.923        8.6103        .23204E-04   -1.5017    
   4  Prefactor     .10000E-03    192.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3328        .22047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8830        .32691E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8394        8.7953        .96591E-05   -1.5371    
   9  Prefactor     21.660        12.437        .34432E-05   -1.4777    
  10  Prefactor     .10044E-03    222.69        .24163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5067        .25627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .79741        1.3008        .41717E-04   -1.5529    
  15  Prefactor     .14345        106.91        .14331E-02   -1.5632    
  16  norm          9.6039        10.428        .51732E-05   -1.5088    
  17  Prefactor     .10000E-03    8.2768        .34729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .52311        .21952        .11044E-04   -1.1136    
  19  Prefactor     1.2964        .24501        .42107E-04   -.83415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41295e-09
Minuit parameter uncertainties:
  1  5.63436
  2  8.80936e-07
  3  8.61115
  4  0.000835244
  5  9.45439e-06
  6  3.78177e-06
  7  4.13459e-06
  8  8.79929
  9  12.4387
  10  0.0199216
  11  7.23639e-05
  12  6.45301e-06
  13  0.000107883
  14  1.30084
  15  7.8435
  16  10.4296
  17  4.18179e-06
  18  0.219887
  19  0.245227
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  4.135e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.296e+00  2.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  5.231e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72070/likelihoodResults_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.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) = 3837.26916141
delta logL = -0.00252245404727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3837.26663878
delta logL = 1.71086412593e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3459       1.0000          .0000       10.000    
     3 'Normalizat'    .52304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3837.267     FROM MIGRAD    STATUS=FAILED        92 CALLS      250 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.0055        .16680E-03** at limit **
   2  Index         2.3706        6.1852        .50000       -.11306E-03
   3  Normalizat    .52311        .20730        .27609E-03   -.55425E-04
   4  Prefactor     1.2964        .24145        .21054E-03   -.95453E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3837.267     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      364 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    2.0055        .21493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3706        6.1852        .18130E-02   -.55374    
   3  Normalizat    .52311        .20730        .14250E-03   -1.1136    
   4  Prefactor     1.2964        .24145        .82337E-04   -.83415    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3837.221     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      484 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53124E-01    7.8535        .33360E-03    .49738E-03
   2  Index         4.0320        6.9913        .20000        .47202E-04
   3  Normalizat    .50217        .36749E-01    .11044E-04   -.27486E-04
   4  Prefactor     1.3096        .42582E-01    .42107E-04   -.55402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0531235
  Index      = 4.03202
  Normalizat = 0.502167
  Prefactor  = 1.30963
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.221     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      513 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53124E-01    27.949        .13344E-04   -1.5662    
   2  Index         4.0320        7.8794        .98395E-02   -.19483    
   3  Normalizat    .50217        .21013        .22087E-05   -1.1231    
   4  Prefactor     1.3096        .22912        .84215E-05   -.83021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04265e-07
Minuit parameter uncertainties:
  1  2.43585
  2  20.7366
  3  0.210463
  4  0.229301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72070': 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) = 3837.22112366
delta logL = 0.0455152928316

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.312e-02  2.436e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.032e+00  2.074e+01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.310e+00  2.293e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  5.022e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 160.805 24.146

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/72070/cmap_HighResolution_322790401_323049601_4FGL_J1043.2+2408_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-09-02 08:59:42.490426', job_id='72070', GAL2='1.31', fit_tolerance='1e-08', EG2='0.50', EG='0.52', time_epoch_completed='1630598382.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='4.55e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='322' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 72070: <4FGL_J1043.2+2408_daily_bin322> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin322> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:41 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:47:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 08:47:30 2021
Terminated at Thu Sep  2 08:59:43 2021
Results reported at Thu Sep  2 08:59:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin322 160.805 24.146 322790401 323049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1043.2+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   532.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            782 sec.

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

