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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin754
RA = 160.805, Dec = 24.146
tmin = 434764801, tmax = 435024001
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='74675', job_status='RUN', time_executed='2021-09-02 09:00:02.519332', time_epoch_executed='1630598402.52' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74675/ft1_4FGL_J1043.2+2408_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74675/ft2_4FGL_J1043.2+2408_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74675/ft1_4FGL_J1043.2+2408_daily_bin754.fits outfile=/scratch/kocevski/74675/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin754.fits ra=160.805 dec=24.146 rad=12.0 tmin=434764801.0 tmax=435024001.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.87
user 5.57
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74675/ft1_filtered_4FGL_J1043.2+2408_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/74675/ft2_4FGL_J1043.2+2408_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/74675/ltcube_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.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/74675/ft2_4FGL_J1043.2+2408_daily_bin754.fits
.....................!
real 18.48
user 18.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74675/ft1_filtered_4FGL_J1043.2+2408_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/74675/ft2_4FGL_J1043.2+2408_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/74675/ltcube_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.fits outfile=/scratch/kocevski/74675/expmap_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.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/74675/ltcube_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.fits
.....................!
real 196.41
user 190.17
sys 5.51

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/74675/ft1_filtered_4FGL_J1043.2+2408_daily_bin754.fits scfile=/scratch/kocevski/74675/ft2_4FGL_J1043.2+2408_daily_bin754.fits outfile=/scratch/kocevski/74675/cmap_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.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.57
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74675/ft1_filtered_4FGL_J1043.2+2408_daily_bin754.fits scfile=/scratch/kocevski/74675/ft2_4FGL_J1043.2+2408_daily_bin754.fits outfile=/scratch/kocevski/74675/cmap_HighResolution_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9465       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7488       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.0113       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1989       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .49310       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=   3096.074     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1891 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.073        9.6747       -.41011E-06   -.41210E-03
   2  Prefactor     2.9468        2.9192       -.12125E-06    .32128E-04
   3  norm          .10000E-03    10.059       -.89460E-05** at limit **
   4  Prefactor     23.889        51.704       -.87405E-05    .21358E-04
   5  Prefactor     57.593        55.932        .24814E-05    .20526E-04
   6  Prefactor     .10000E-03    5.6749       -.52766E-06** at limit **
   7  Prefactor     .32500        2.6354       -.29787E-05    .62439E-03
   8  Prefactor     14.816        11.991       -.26287E-06   -.79036E-05
   9  Prefactor     .10000E-03    3.8060        .89435E-08** at limit **
  10  Prefactor     .10000E-03    22.498       -.30472E-05** at limit **
  11  Prefactor     .10000E-03    7.9022        .37351E-05** at limit **
  12  Prefactor     .10000E-03    5.7784       -.53568E-08** at limit **
  13  Prefactor     5.7493        15.619        .11453E-05   -.46799E-04
  14  Prefactor     .10000E-03    1.0198       -.20542E-06** at limit **
  15  Prefactor     .10000E-03    4.0113       -.31235E-06** at limit **
  16  norm          9.0084        16.775       -.35129E-05   -.29118E-04
  17  Prefactor     .10000E-03    13.077        .80316E-05** at limit **
  18  Normalizat    1.1986        .21596        .15388E-05    .34530E-03
  19  Prefactor     .49340        .21962        .57584E-06    .18401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0726
  Prefactor  = 2.9468
  norm       = 0.0001
  Prefactor  = 23.8889
  Prefactor  = 57.5935
  Prefactor  = 0.0001
  Prefactor  = 0.325001
  Prefactor  = 14.8155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.74929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.00835
  Prefactor  = 0.0001
  Normalizat = 1.19858
  Prefactor  = 0.493403
 **********
 **   18 **HESSE 
 **********

 FCN=   3096.074     FROM HESSE     STATUS=OK           266 CALLS     2157 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.073        9.7160        .53386E-03   -1.4958    
   2  Prefactor     2.9468        2.9134        .90410E-04   -1.5365    
   3  norm          .10000E-03    10.161        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.889        51.825        .81947E-04   -1.4730    
   5  Prefactor     57.593        55.941        .52863E-04   -1.4189    
   6  Prefactor     .10000E-03    5.7588        .12934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .32500        4.3868        .16504E-02   -1.5594    
   8  Prefactor     14.816        12.002        .10406E-03   -1.4938    
   9  Prefactor     .10000E-03    3.8112        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9189        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7855        .13063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7493        15.594        .16752E-03   -1.5228    
  14  Prefactor     .10000E-03    1.0221        .54867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0252        .10885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.0084        16.902        .13352E-03   -1.5108    
  17  Prefactor     .10000E-03    13.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1986        .24418        .19311E-03   -.86647    
  19  Prefactor     .49340        .24583        .30245E-03   -1.1228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1432e-09
Minuit parameter uncertainties:
  1  9.71705
  2  2.91355
  3  3.04343e-05
  4  51.9231
  5  55.9923
  6  2.51695e-05
  7  2.38792
  8  12.0038
  9  3.24282e-06
  10  1.87035e-05
  11  1.48615e-05
  12  2.41951e-07
  13  15.6051
  14  4.90407e-07
  15  6.97604e-06
  16  16.9113
  17  4.38726e-05
  18  0.24441
  19  0.246364
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.250e-01  2.388e+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:  4.934e-01  2.464e-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.199e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
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/74675/likelihoodResults_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.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) = 3096.07375919
delta logL = 4.42200212092e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3096.07373959
delta logL = 6.38204078314e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32499       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3051       1.0000          .0000       10.000    
     3 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49344       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=   3096.074     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      227 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33380        14.423        .30810E-01    .66138E-03
   2  Index         2.2885        1.7829        .50000       -.37319E-06
   3  Normalizat    1.1988        .12766E-01    .34925E-01   -.74808E-05
   4  Prefactor     .49325        .13387E-01    .68336E-01    .14147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.333802
  Index      = 2.28851
  Normalizat = 1.19877
  Prefactor  = 0.493249
 **********
 **   18 **HESSE 
 **********

 FCN=   3096.074     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33380        5.2303        .16719E-02   -1.5592    
   2  Index         2.2885        2.5415        .96448E-02   -.57317    
   3  Normalizat    1.1988        .23387        .19309E-03   -.86641    
   4  Prefactor     .49325        .24469        .30250E-03   -1.1229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75996e-11
Minuit parameter uncertainties:
  1  2.64253
  2  2.72955
  3  0.234071
  4  0.24521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74675': 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) = 3096.07371701
delta logL = 8.63926743477e-05

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.338e-01  2.643e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.289e+00  2.730e+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:  4.932e-01  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:  1.199e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/74675/cmap_HighResolution_434764801_435024001_4FGL_J1043.2+2408_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-02 09:08:00.312890', job_id='74675', GAL2='0.49', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630598880.31', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='8.64e-05', ts2='0.02', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='754' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:08:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 74675: <4FGL_J1043.2+2408_daily_bin754> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin754> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:40 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:58:00 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:58:00 2021
Terminated at Thu Sep  2 09:08:01 2021
Results reported at Thu Sep  2 09:08:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin754 160.805 24.146 434764801 435024001 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 :                                   474.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            681 sec.

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

