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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin180
RA = 160.805, Dec = 24.146
tmin = 285984001, tmax = 286243201
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='71872', job_status='RUN', time_executed='2021-09-02 08:46:44.282370', time_epoch_executed='1630597604.28' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71872/ft1_4FGL_J1043.2+2408_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71872/ft2_4FGL_J1043.2+2408_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71872/ft1_4FGL_J1043.2+2408_daily_bin180.fits outfile=/scratch/kocevski/71872/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin180.fits ra=160.805 dec=24.146 rad=12.0 tmin=285984001.0 tmax=286243201.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.38
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71872/ft1_filtered_4FGL_J1043.2+2408_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/71872/ft2_4FGL_J1043.2+2408_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/71872/ltcube_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.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/71872/ft2_4FGL_J1043.2+2408_daily_bin180.fits
.....................!
real 12.79
user 12.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71872/ft1_filtered_4FGL_J1043.2+2408_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/71872/ft2_4FGL_J1043.2+2408_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/71872/ltcube_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.fits outfile=/scratch/kocevski/71872/expmap_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.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/71872/ltcube_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.fits
.....................!
real 189.86
user 185.64
sys 3.87

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/71872/ft1_filtered_4FGL_J1043.2+2408_daily_bin180.fits scfile=/scratch/kocevski/71872/ft2_4FGL_J1043.2+2408_daily_bin180.fits outfile=/scratch/kocevski/71872/cmap_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71872/ft1_filtered_4FGL_J1043.2+2408_daily_bin180.fits scfile=/scratch/kocevski/71872/ft2_4FGL_J1043.2+2408_daily_bin180.fits outfile=/scratch/kocevski/71872/cmap_HighResolution_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77310       1.0000         .10000E-03   10000.    
     3 'norm      '    21.571       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18281E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4710       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7839       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0886       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .59252       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=   5106.536     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1872 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.129        6.7727        .16180E-06    .14688E-04
   2  Prefactor     .77310        .84299       -.70397E-08    .10957E-04
   3  norm          21.574        9.6878       -.64287E-07   -.88168E-04
   4  Prefactor     .10000E-03    105.67       -.20121E-06** at limit **
   5  Prefactor     34.599        48.681        .31815E-05    .97560E-04
   6  Prefactor     1.4701        7.0462        .21263E-05   -.70617E-04
   7  Prefactor     2.0564        2.3491       -.66545E-07   -.20072E-03
   8  Prefactor     .10000E-03    2.5273       -.23431E-07** at limit **
   9  Prefactor     16.729        9.2862       -.10284E-06   -.78388E-04
  10  Prefactor     .10000E-03    5.6311       -.47650E-07** at limit **
  11  Prefactor     .10000E-03    5.2116       -.78008E-07** at limit **
  12  Prefactor     .94516        7.6520        .26554E-05   -.89789E-04
  13  Prefactor     4.1714        9.1721        .46246E-06    .55056E-05
  14  Prefactor     .10000E-03    .91118       -.11923E-06** at limit **
  15  Prefactor     3.7843        4.0849        .13772E-08   -.17488E-04
  16  norm          .10000E-03    5.3990        .94995E-07** at limit **
  17  Prefactor     .10000E-03    2.9610       -.10606E-07** at limit **
  18  Normalizat    1.0886        .16158       -.81964E-06   -.46607E-04
  19  Prefactor     .59234        .17027        .10433E-07   -.75384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1289
  Prefactor  = 0.773099
  norm       = 21.5735
  Prefactor  = 0.0001
  Prefactor  = 34.5986
  Prefactor  = 1.47007
  Prefactor  = 2.0564
  Prefactor  = 0.0001
  Prefactor  = 16.7294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.945164
  Prefactor  = 4.17144
  Prefactor  = 0.0001
  Prefactor  = 3.78429
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0886
  Prefactor  = 0.592342
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.536     FROM HESSE     STATUS=OK           270 CALLS     2142 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.129        6.7730        .12591E-03   -1.5071    
   2  Prefactor     .77310        .84766        .66824E-04   -1.5532    
   3  norm          21.574        9.6940        .86241E-04   -1.4779    
   4  Prefactor     .10000E-03    110.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.599        50.671        .68158E-04   -1.4531    
   6  Prefactor     1.4701        7.0209        .34710E-03   -1.5465    
   7  Prefactor     2.0564        2.3118        .10689E-03   -1.5421    
   8  Prefactor     .10000E-03    2.5406        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.729        9.2709        .97929E-04   -1.4890    
  10  Prefactor     .10000E-03    5.6343        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2254        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94516        7.8435        .38643E-03   -1.5514    
  13  Prefactor     4.1714        9.1432        .19738E-03   -1.5299    
  14  Prefactor     .10000E-03    .92552        .66637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7843        4.0864        .14604E-03   -1.5319    
  16  norm          .10000E-03    5.4324        .16223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9640        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0886        .18524        .19882E-03   -.90119    
  19  Prefactor     .59234        .19511        .28208E-03   -1.0791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32051e-10
Minuit parameter uncertainties:
  1  6.77352
  2  0.847675
  3  9.69471
  4  0.000135377
  5  50.7341
  6  6.42636
  7  2.31185
  8  2.59834e-06
  9  9.27165
  10  3.55303e-06
  11  3.15107e-06
  12  5.44621
  13  9.14629
  14  2.11483e-06
  15  4.0867
  16  1.29204e-05
  17  1.37181e-06
  18  0.185351
  19  0.195331
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.056e+00  2.312e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  5.923e-01  1.953e-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.089e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.04e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.25e-05

TS (Fixed Index): 1.07
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71872/likelihoodResults_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.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) = 5106.5186164
delta logL = 0.0171369802329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5106.50881628
delta logL = 0.0269370936066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4176       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0557       1.0000          .0000       10.000    
     3 'Normalizat'    1.0991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58353       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.

 FCN=   5106.509     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4188        70.314        .65813E-02    .41147E-03
   2  Index         2.0557        5.8786        .25478        .82166E-05
   3  Normalizat    1.0991        .51408E-01    .38037E-01    .83061E-04
   4  Prefactor     .58358        .49081E-01    .64178E-01    .38077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41879
  Index      = 2.05572
  Normalizat = 1.09907
  Prefactor  = 0.583579
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.509     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4188        2.7919        .11804E-03   -1.5397    
   2  Index         2.0557        1.0321        .90428E-02   -.62964    
   3  Normalizat    1.0991        .18441        .19802E-03   -.89782    
   4  Prefactor     .58358        .19610        .28398E-03   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29921e-11
Minuit parameter uncertainties:
  1  2.79201
  2  1.04363
  3  0.184517
  4  0.196331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71872': 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) = 5106.50881616
delta logL = 0.0269372213588

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.419e+00  2.792e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.056e+00  1.044e+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:  5.836e-01  1.963e-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.099e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.06 +/- 1.04
Photon Flux (Free Index): 2.44e-08 +/- 3.71e-08
Energy Flux (Free Index): 1.48e-05 +/- 2.57e-05

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/71872/cmap_HighResolution_285984001_286243201_4FGL_J1043.2+2408_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', comment='SUCCESS', photon_flux='3.04e-08', energy_flux2='1.48e-05', photon_flux_error='3.41e-08', dlogl='2.69e-02', energy_flux='1.11e-05', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-02 08:55:44.748417', photon_index_error2='1.04', photon_index2='2.06', ts='1.07', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.57e-05', EG='1.09', time_epoch_completed='1630598144.75', return_code='0', job_id='71872', GAL2='0.58', EG2='1.10', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.71e-08', ts2='1.13', photon_index='2.32' WHERE bin_id='180' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 71872: <4FGL_J1043.2+2408_daily_bin180> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin180> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:21 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:46:33 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:46:33 2021
Terminated at Thu Sep  2 08:55:45 2021
Results reported at Thu Sep  2 08:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin180 160.805 24.146 285984001 286243201 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 :                                   535.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            564 sec.

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

