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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin22
RA = 160.805, Dec = 24.146
tmin = 245030401, tmax = 245289601
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='70587', job_status='RUN', time_executed='2021-09-02 08:43:21.889956', time_epoch_executed='1630597401.89' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70587/ft1_4FGL_J1043.2+2408_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70587/ft2_4FGL_J1043.2+2408_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70587/ft1_4FGL_J1043.2+2408_daily_bin22.fits outfile=/scratch/kocevski/70587/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin22.fits ra=160.805 dec=24.146 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.52
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70587/ft2_4FGL_J1043.2+2408_daily_bin22.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/70587/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/70587/ft1_filtered_4FGL_J1043.2+2408_daily_bin22.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/70587/ft1_filtered_4FGL_J1043.2+2408_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/70587/ft2_4FGL_J1043.2+2408_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/70587/ltcube_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.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/70587/ft2_4FGL_J1043.2+2408_daily_bin22.fits
.....................!
real 16.94
user 16.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70587/ft1_filtered_4FGL_J1043.2+2408_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/70587/ft2_4FGL_J1043.2+2408_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/70587/ltcube_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.fits outfile=/scratch/kocevski/70587/expmap_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.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/70587/ltcube_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.fits
.....................!
real 191.92
user 186.91
sys 4.56

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/70587/ft1_filtered_4FGL_J1043.2+2408_daily_bin22.fits scfile=/scratch/kocevski/70587/ft2_4FGL_J1043.2+2408_daily_bin22.fits outfile=/scratch/kocevski/70587/cmap_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70587/ft1_filtered_4FGL_J1043.2+2408_daily_bin22.fits scfile=/scratch/kocevski/70587/ft2_4FGL_J1043.2+2408_daily_bin22.fits outfile=/scratch/kocevski/70587/cmap_HighResolution_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.915       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15583E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9371       1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8967       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91461       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88551       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=   4334.442     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1875 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5685        8.0927        .53480E-02    .29739E-03
   2  Prefactor     .10000E-03    .91550        .90712E-02** at limit **
   3  norm          .10000E-03    11.304        .90712E-02** at limit **
   4  Prefactor     35.040        31.976        .16925E-02    .14748E-03
   5  Prefactor     .10000E-03    41.081        .90712E-02** at limit **
   6  Prefactor     .10000E-03    3.0705        .90712E-02** at limit **
   7  Prefactor     2.4221        2.3445        .65749E-02    .27012E-03
   8  Prefactor     .10000E-03    1.6397        .90712E-02** at limit **
   9  Prefactor     .10000E-03    9.0852        .90712E-02** at limit **
  10  Prefactor     .10000E-03    20.952        .90712E-02** at limit **
  11  Prefactor     27.909        14.390        .18956E-02   -.20912E-03
  12  Prefactor     11.573        17.212        .29449E-02   -.78484E-03
  13  Prefactor     .10022E-03    11.687        .10643    ** at limit **
  14  Prefactor     .10000E-03    2.5753        .34621E-01** at limit **
  15  Prefactor     8.9387        10.025        .33518E-02    .11295E-03
  16  norm          .10000E-03    6.7605        .90712E-02** at limit **
  17  Prefactor     1.8942        10.466        .75513E-02    .36220E-03
  18  Normalizat    .91494        .18128        .45088E-01   -.50377E-06
  19  Prefactor     .88514        .19157        .44820E-01    .72299E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56853
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.0396
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.42214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9095
  Prefactor  = 11.5731
  Prefactor  = 0.000100218
  Prefactor  = 0.0001
  Prefactor  = 8.93874
  norm       = 0.0001
  Prefactor  = 1.89424
  Normalizat = 0.914942
  Prefactor  = 0.885136
 **********
 **   18 **HESSE 
 **********

 FCN=   4334.442     FROM HESSE     STATUS=OK           264 CALLS     2139 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5685        8.0728        .21392E-03   -1.5330    
   2  Prefactor     .10000E-03    .92702        .61493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.040        31.990        .33850E-03   -1.4523    
   5  Prefactor     .10000E-03    41.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0916        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4221        2.3307        .94437E-04   -1.5397    
   8  Prefactor     .10000E-03    1.6469        .82328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.909        13.832        .75826E-04   -1.4651    
  12  Prefactor     11.573        16.438        .11779E-03   -1.5027    
  13  Prefactor     .10022E-03    64.508        .41104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4928        .19260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9387        9.9365        .13407E-03   -1.5110    
  16  norm          .10000E-03    6.8230        .16716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8942        10.270        .30205E-03   -1.5433    
  18  Normalizat    .91494        .21114        .21845E-03   -.95937    
  19  Prefactor     .88514        .22427        .24348E-03   -.96662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07127e-09
Minuit parameter uncertainties:
  1  8.07526
  2  2.96907e-07
  3  2.12638e-05
  4  32.0053
  5  0.00089021
  6  2.21434e-06
  7  2.33079
  8  1.51147e-06
  9  1.65846e-05
  10  7.63654e-05
  11  13.8336
  12  16.4442
  13  0.0075074
  14  4.19964e-06
  15  9.93836
  16  3.12115e-06
  17  8.82329
  18  0.211333
  19  0.224506
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.422e+00  2.331e+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.851e-01  2.245e-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.149e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/70587/likelihoodResults_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.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) = 4334.44046259
delta logL = 0.00149280201185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4334.43976
delta logL = 0.00219539372665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5224       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2747       1.0000          .0000       10.000    
     3 'Normalizat'    .91659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4334.440     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      235 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5225        2.9105        .96582E-04   -.43682E-03
   2  Index         2.2747        .73943        .78625E-02   -.56633E-04
   3  Normalizat    .91661        .20413        .21828E-03    .57500E-04
   4  Prefactor     .88379        .22403        .24364E-03    .75872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52246
  Index      = 2.27473
  Normalizat = 0.916605
  Prefactor  = 0.883789
 **********
 **   18 **HESSE 
 **********

 FCN=   4334.440     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5225        2.8115        .38633E-05   -1.5390    
   2  Index         2.2747        .71418        .31450E-03   -.57645    
   3  Normalizat    .91661        .20420        .87311E-05   -.95879    
   4  Prefactor     .88379        .22412        .97456E-05   -.96710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09745e-10
Minuit parameter uncertainties:
  1  2.81164
  2  0.717682
  3  0.204372
  4  0.224354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70587': 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) = 4334.43975999
delta logL = 0.0021954043923

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.838e-01  2.244e-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.166e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.27 +/- 0.72
Photon Flux (Free Index): 3.47e-08 +/- 3.74e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.60e-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/70587/cmap_HighResolution_245030401_245289601_4FGL_J1043.2+2408_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.37e-05', photon_flux_error='3.44e-08', dlogl='2.20e-03', energy_flux='1.31e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-02 08:53:06.544145', photon_index_error2='0.72', photon_index2='2.27', ts='1.63', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.60e-05', EG='0.91', time_epoch_completed='1630597986.54', return_code='0', job_id='70587', GAL2='0.88', EG2='0.92', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.74e-08', ts2='1.64', photon_index='2.32' WHERE bin_id='22' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:53:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 70587: <4FGL_J1043.2+2408_daily_bin22> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin22> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:41:16 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:42:26 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:42:26 2021
Terminated at Thu Sep  2 08:53:07 2021
Results reported at Thu Sep  2 08:53:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin22 160.805 24.146 245030401 245289601 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 :                                   500.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            711 sec.

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

