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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin775
RA = 160.805, Dec = 24.146
tmin = 440208001, tmax = 440467201
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='75587', job_status='RUN', time_executed='2021-09-02 09:04:34.606400', time_epoch_executed='1630598674.61' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75587/ft1_4FGL_J1043.2+2408_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75587/ft2_4FGL_J1043.2+2408_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75587/ft1_4FGL_J1043.2+2408_daily_bin775.fits outfile=/scratch/kocevski/75587/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin775.fits ra=160.805 dec=24.146 rad=12.0 tmin=440208001.0 tmax=440467201.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75587/ft1_filtered_4FGL_J1043.2+2408_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/75587/ft2_4FGL_J1043.2+2408_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/75587/ltcube_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.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/75587/ft2_4FGL_J1043.2+2408_daily_bin775.fits
.....................!
real 15.64
user 15.23
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75587/ft1_filtered_4FGL_J1043.2+2408_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/75587/ft2_4FGL_J1043.2+2408_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/75587/ltcube_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.fits outfile=/scratch/kocevski/75587/expmap_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.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/75587/ltcube_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.fits
.....................!
real 192.87
user 187.33
sys 4.69

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/75587/ft1_filtered_4FGL_J1043.2+2408_daily_bin775.fits scfile=/scratch/kocevski/75587/ft2_4FGL_J1043.2+2408_daily_bin775.fits outfile=/scratch/kocevski/75587/cmap_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.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.59
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0766       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8860       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5883       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11271E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85990       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=   6132.091     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1852 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4013       -.14213E-05** at limit **
   2  Prefactor     2.0765        1.8836       -.46859E-08   -.43312E-04
   3  norm          5.8860        5.7188        .18330E-06   -.65978E-03
   4  Prefactor     27.186        45.278       -.10326E-04   -.21381E-03
   5  Prefactor     .10000E-03    16.823       -.46903E-05** at limit **
   6  Prefactor     7.5878        8.8821        .51324E-06   -.10843E-02
   7  Prefactor     3.7022        2.8014       -.23128E-06   -.34224E-03
   8  Prefactor     .10000E-03    2.8965       -.18331E-07** at limit **
   9  Prefactor     4.2242        6.2963        .13708E-05   -.17668E-02
  10  Prefactor     22.601        19.447       -.86759E-06   -.94250E-04
  11  Prefactor     .10000E-03    14.653        .43695E-05** at limit **
  12  Prefactor     5.5553        11.980        .59443E-06   -.18198E-03
  13  Prefactor     .10000E-03    8.2999       -.22635E-05** at limit **
  14  Prefactor     .10000E-03    2.1136        .83665E-06** at limit **
  15  Prefactor     .10000E-03    6.2437        .90706E-06** at limit **
  16  norm          .10000E-03    5.9642       -.83411E-06** at limit **
  17  Prefactor     .10000E-03    6.9895        .10281E-05** at limit **
  18  Normalizat    1.0485        .16112        .19423E-06   -.25292E-03
  19  Prefactor     .85977        .16487        .24612E-06   -.16161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.0765
  norm       = 5.88599
  Prefactor  = 27.1858
  Prefactor  = 0.000100001
  Prefactor  = 7.5878
  Prefactor  = 3.70224
  Prefactor  = 0.0001
  Prefactor  = 4.22416
  Prefactor  = 22.6009
  Prefactor  = 0.000100001
  Prefactor  = 5.55529
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04849
  Prefactor  = 0.859769
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.091     FROM HESSE     STATUS=OK           264 CALLS     2116 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4479        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0765        1.8776        .99097E-04   -1.5420    
   3  norm          5.8860        5.8224        .82762E-03   -1.5223    
   4  Prefactor     27.186        46.106        .76821E-04   -1.4665    
   5  Prefactor     .10000E-03    16.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5878        9.0767        .72791E-03   -1.5157    
   7  Prefactor     3.7022        2.8178        .10350E-03   -1.5323    
   8  Prefactor     .10000E-03    2.9202        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2242        9.0636        .97904E-03   -1.5297    
  10  Prefactor     22.601        19.489        .84253E-04   -1.4757    
  11  Prefactor     .10000E-03    15.184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5553        11.451        .17048E-03   -1.5237    
  13  Prefactor     .10000E-03    8.3989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4253        .20545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.0254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0485        .18862        .22279E-03   -.91423    
  19  Prefactor     .85977        .18875        .25778E-03   -.97561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61725e-09
Minuit parameter uncertainties:
  1  4.02971e-05
  2  1.87761
  3  5.82299
  4  46.1664
  5  0.000312574
  6  9.07837
  7  2.81789
  8  2.68424e-06
  9  9.06655
  10  19.4948
  11  0.000190601
  12  11.4557
  13  0.000113159
  14  0.000172749
  15  2.19781e-05
  16  4.03708e-05
  17  3.33471e-05
  18  0.188738
  19  0.188888
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.702e+00  2.818e+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:  8.598e-01  1.889e-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.048e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.52e-05

TS (Fixed Index): 2.69
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75587/likelihoodResults_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.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) = 6131.18654291
delta logL = 0.90410401387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6131.18300846
delta logL = 0.907638465665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6175       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2383       1.0000          .0000       10.000    
     3 'Normalizat'    .98126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90558       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=   6131.183     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6175        11.939        .83214E-02    .60395E-03
   2  Index         3.2384        2.5755        .11289        .14615E-03
   3  Normalizat    .98126        .52627E-01    .45932E-01    .94044E-05
   4  Prefactor     .90560        .52286E-01    .45076E-01    .11752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61748
  Index      = 3.23837
  Normalizat = 0.981257
  Prefactor  = 0.905605
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.183     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6175        3.1417        .50721E-04   -1.5454    
   2  Index         3.2384        1.1629        .42678E-02   -.36006    
   3  Normalizat    .98126        .19101        .22906E-03   -.93661    
   4  Prefactor     .90560        .19627        .25180E-03   -.95946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14201e-08
Minuit parameter uncertainties:
  1  3.14197
  2  1.1752
  3  0.19114
  4  0.196426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75587': 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) = 6131.18300838
delta logL = 0.907638547901

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.617e+00  3.142e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.238e+00  1.175e+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.056e-01  1.964e-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:  9.813e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.24 +/- 1.18
Photon Flux (Free Index): 1.13e-07 +/- 6.98e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.16e-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/75587/cmap_HighResolution_440208001_440467201_4FGL_J1043.2+2408_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='2.04e-05', photon_flux_error='4.16e-08', dlogl='9.08e-01', energy_flux='2.00e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-02 09:14:25.533675', photon_index_error2='1.18', photon_index2='3.24', ts='2.69', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.16e-05', EG='1.05', time_epoch_completed='1630599265.53', return_code='0', job_id='75587', GAL2='0.91', EG2='0.98', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.98e-08', ts2='4.68', photon_index='2.32' WHERE bin_id='775' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 75587: <4FGL_J1043.2+2408_daily_bin775> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin775> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:13 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:01:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:01:23 2021
Terminated at Thu Sep  2 09:14:26 2021
Results reported at Thu Sep  2 09:14:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin775 160.805 24.146 440208001 440467201 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            793 sec.

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

