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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin364
RA = 160.805, Dec = 24.146
tmin = 333676801, tmax = 333936001
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='72126', job_status='RUN', time_executed='2021-09-02 08:47:57.065123', time_epoch_executed='1630597677.07' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72126/ft1_4FGL_J1043.2+2408_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72126/ft1_4FGL_J1043.2+2408_daily_bin364.fits outfile=/scratch/kocevski/72126/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin364.fits ra=160.805 dec=24.146 rad=12.0 tmin=333676801.0 tmax=333936001.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.83
user 3.57
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.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/72126/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin364.fits evtable="EVENTS" outfile="/scratch/kocevski/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/72126/ltcube_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.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/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits
.....................!
real 12.92
user 12.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/72126/ltcube_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.fits outfile=/scratch/kocevski/72126/expmap_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.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/72126/ltcube_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.fits
.....................!
real 192.91
user 187.47
sys 4.79

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/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits scfile=/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits outfile=/scratch/kocevski/72126/cmap_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.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.65
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits scfile=/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits outfile=/scratch/kocevski/72126/cmap_HighResolution_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.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.61
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72126/Model_4FGL_J1043.2+2408_daily_bin364.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/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits.....................!
real 50.18
user 48.88
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits', '/scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits', expMap='/scratch/kocevski/72126/expmap_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.fits', expCube='/scratch/kocevski/72126/ltcube_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72126/Model_4FGL_J1043.2+2408_daily_bin364.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/72126/ft1_filtered_4FGL_J1043.2+2408_daily_bin364.fits
Spacecraft file(s): /scratch/kocevski/72126/ft2_4FGL_J1043.2+2408_daily_bin364.fits
Exposure map: /scratch/kocevski/72126/expmap_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.fits
Exposure cube: /scratch/kocevski/72126/ltcube_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72126/Model_4FGL_J1043.2+2408_daily_bin364.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) = 5458.90428949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7912       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13608E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1106       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13398E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39523E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2980       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.230       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78758E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5575       1.0000         .10000E-03   10000.    
    16 'norm      '    17.284       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95673       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.

 FCN=   5458.902     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1882 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7872        6.3089       -.97750E-06   -.37161E-03
   2  Prefactor     .10000E-03    1.2669       -.99830E-08** at limit **
   3  norm          4.1078        6.1747        .91755E-06   -.21618E-03
   4  Prefactor     .10000E-03    14.941       -.23484E-05** at limit **
   5  Prefactor     .10000E-03    43.916       -.13589E-04** at limit **
   6  Prefactor     3.2936        6.5488       -.49972E-06   -.37517E-03
   7  Prefactor     .10000E-03    1.0113        .24784E-07** at limit **
   8  Prefactor     .10000E-03    5.1775        .45312E-07** at limit **
   9  Prefactor     10.508        10.743       -.36434E-05   -.39078E-04
  10  Prefactor     25.084        28.858       -.88056E-06   -.25348E-05
  11  Prefactor     11.469        11.887        .45181E-05    .47539E-05
  12  Prefactor     .10000E-03    14.135        .42452E-05** at limit **
  13  Prefactor     .10000E-03    13.514       -.19609E-05** at limit **
  14  Prefactor     .10000E-03    1.3846       -.30332E-07** at limit **
  15  Prefactor     7.5553        6.0100        .81899E-06    .29288E-04
  16  norm          17.273        12.771       -.77435E-06   -.14454E-04
  17  Prefactor     .10000E-03    2.9498       -.34562E-07** at limit **
  18  Normalizat    1.1547        .18589        .89959E-06   -.24333E-04
  19  Prefactor     .95676        .19219       -.48477E-06    .46449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.78715
  Prefactor  = 0.0001
  norm       = 4.10779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5078
  Prefactor  = 25.0844
  Prefactor  = 11.4694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.55534
  norm       = 17.2733
  Prefactor  = 0.0001
  Normalizat = 1.15471
  Prefactor  = 0.956759
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.902     FROM HESSE     STATUS=OK           272 CALLS     2154 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7872        6.3583        .20732E-03   -1.5319    
   2  Prefactor     .10000E-03    6.2922        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1078        6.1354        .19883E-03   -1.5303    
   4  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.789        .21269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2936        6.5713        .22294E-03   -1.5345    
   7  Prefactor     .10000E-03    1.0286        .72465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2543        .16413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.508        10.724        .12359E-03   -1.5060    
  10  Prefactor     25.084        28.916        .79751E-04   -1.4706    
  11  Prefactor     11.469        11.840        .11810E-03   -1.5031    
  12  Prefactor     .10000E-03    14.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.117        .16571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5553        6.0103        .14588E-03   -1.5158    
  16  norm          17.273        12.799        .96337E-04   -1.4877    
  17  Prefactor     .10000E-03    2.9523        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1547        .21876        .22943E-03   -.88014    
  19  Prefactor     .95676        .22623        .26825E-03   -.94185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4784e-10
Minuit parameter uncertainties:
  1  6.35941
  2  8.5656e-06
  3  6.1363
  4  9.8277e-08
  5  1.36369e-05
  6  6.57279
  7  1.39401e-06
  8  1.27012e-06
  9  10.7257
  10  28.9322
  11  11.8419
  12  3.82197e-05
  13  3.06708e-05
  14  0.000272382
  15  6.01079
  16  12.8012
  17  1.1257e-06
  18  0.218936
  19  0.226456
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.394e-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:  9.568e-01  2.265e-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:  1.155e+00  2.189e-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: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72126/likelihoodResults_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.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) = 5458.90698441
delta logL = -0.00458651676581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5458.90239813
delta logL = -2.34485014516e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3179       1.0000          .0000       10.000    
     3 'Normalizat'    1.1547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95679       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=   5458.902     FROM MIGRAD    STATUS=FAILED        85 CALLS      235 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    200.66        .72554E-03** at limit **
   2  Index         2.2374        5.8600        .50000        .22871E-04
   3  Normalizat    1.1547        .98281E-01    .22942E-03    .31417E-04
   4  Prefactor     .95676        .10408        .26825E-03    .47933E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5458.902     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      386 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    200.66        .16438E-03** at limit **
   2  Index         2.2374        5.8600        .46829E-04    .22871E-04
   3  Normalizat    1.1547        .98281E-01    .36075E-05    .31417E-04
   4  Prefactor     .95676        .10408        .30599E-05    .47933E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5458.859     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      492 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10355E-01    .42698E-03** at limit **
   2  Index         6.9583        7.6377        .21257        .82104E-04
   3  Normalizat    1.1391        .28918E-01    .91770E-05    .40633E-04
   4  Prefactor     .96814        .31146E-01    .10730E-04    .17376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.95832
  Normalizat = 1.1391
  Prefactor  = 0.968141
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.859     FROM HESSE     STATUS=OK            31 CALLS      523 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .32869E-02    .24023E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9583        1.5561        .13311E-01    .40244    
   3  Normalizat    1.1391        .21414        .18354E-05   -.88506    
   4  Prefactor     .96814        .22823        .21460E-05   -.93799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89995e-11
Minuit parameter uncertainties:
  1  1.25572e-08
  2  1.58744
  3  0.214307
  4  0.228457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72126': 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) = 5458.85945875
delta logL = 0.0429391398147

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.256e-08  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  6.958e+00  1.587e+00  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:  9.681e-01  2.285e-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:  1.139e+00  2.143e-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/72126/cmap_HighResolution_333676801_333936001_4FGL_J1043.2+2408_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-02 08:57:39.702338', job_id='72126', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1630598259.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.29e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='364' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:57:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 72126: <4FGL_J1043.2+2408_daily_bin364> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin364> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:49 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:47:40 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:40 2021
Terminated at Thu Sep  2 08:57:41 2021
Results reported at Thu Sep  2 08:57:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin364 160.805 24.146 333676801 333936001 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 :                                   566.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             360.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            652 sec.

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

