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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin91
RA = 160.805, Dec = 24.146
tmin = 262915201, tmax = 263174401
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='70682', job_status='RUN', time_executed='2021-09-02 08:43:41.218348', time_epoch_executed='1630597421.22' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70682

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70682/ft1_4FGL_J1043.2+2408_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70682/ft2_4FGL_J1043.2+2408_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70682/ft1_4FGL_J1043.2+2408_daily_bin91.fits outfile=/scratch/kocevski/70682/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin91.fits ra=160.805 dec=24.146 rad=12.0 tmin=262915201.0 tmax=263174401.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.34
user 1.14
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70682/ft1_filtered_4FGL_J1043.2+2408_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/70682/ft2_4FGL_J1043.2+2408_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/70682/ltcube_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.fits outfile=/scratch/kocevski/70682/expmap_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.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/70682/ltcube_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.fits
.....................!
real 192.10
user 186.09
sys 5.55

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/70682/ft1_filtered_4FGL_J1043.2+2408_daily_bin91.fits scfile=/scratch/kocevski/70682/ft2_4FGL_J1043.2+2408_daily_bin91.fits outfile=/scratch/kocevski/70682/cmap_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70682/ft1_filtered_4FGL_J1043.2+2408_daily_bin91.fits scfile=/scratch/kocevski/70682/ft2_4FGL_J1043.2+2408_daily_bin91.fits outfile=/scratch/kocevski/70682/cmap_HighResolution_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.481       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15764E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17331E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37752E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9164       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3709       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1187       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90535       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1197       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=   4606.136     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1679 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.265        7.7444       -.18332E-07    .50961E-04
   2  Prefactor     .10000E-03    1.3245       -.92503E-07** at limit **
   3  norm          15.429        10.292       -.78700E-07    .85527E-04
   4  Prefactor     42.483        38.623       -.30383E-06    .24880E-04
   5  Prefactor     .10000E-03    18.326        .89885E-06** at limit **
   6  Prefactor     .10000E-03    18.778       -.10838E-04** at limit **
   7  Prefactor     1.7738        2.6630        .37949E-06    .19051E-02
   8  Prefactor     8.1027        7.7751        .52409E-06    .49969E-03
   9  Prefactor     .10000E-03    22.452       -.48055E-06** at limit **
  10  Prefactor     .10000E-03    69.761       -.56941E-06** at limit **
  11  Prefactor     .10000E-03    5.7453        .17349E-06** at limit **
  12  Prefactor     .10000E-03    8.3900       -.21478E-05** at limit **
  13  Prefactor     .10000E-03    17.260       -.13403E-05** at limit **
  14  Prefactor     2.9197        3.4118        .60797E-06    .11146E-02
  15  Prefactor     8.3710        8.2100        .39478E-06    .33665E-03
  16  norm          5.0787        14.887       -.16763E-05   -.41853E-04
  17  Prefactor     .10000E-03    7.4198        .10713E-06** at limit **
  18  Normalizat    .90517        .19554       -.91817E-06    .66951E-03
  19  Prefactor     1.1202        .20689        .95759E-06    .60517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2649
  Prefactor  = 0.0001
  norm       = 15.4285
  Prefactor  = 42.4834
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.77379
  Prefactor  = 8.1027
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91968
  Prefactor  = 8.371
  norm       = 5.07871
  Prefactor  = 0.0001
  Normalizat = 0.905174
  Prefactor  = 1.12017
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.136     FROM HESSE     STATUS=OK           268 CALLS     1947 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.265        7.7426        .99305E-04   -1.4901    
   2  Prefactor     .10000E-03    1.3685        .15251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.429        10.293        .10196E-03   -1.4922    
   4  Prefactor     42.483        38.643        .61506E-04   -1.4403    
   5  Prefactor     .10000E-03    18.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.269        .32188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7738        2.6257        .12685E-03   -1.5442    
   8  Prefactor     8.1027        7.8047        .14084E-03   -1.5139    
   9  Prefactor     .10000E-03    23.071        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    72.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7650        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.512        .36820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9197        3.4042        .12805E-03   -1.5366    
  15  Prefactor     8.3710        8.2191        .13856E-03   -1.5129    
  16  norm          5.0787        14.873        .17770E-03   -1.5257    
  17  Prefactor     .10000E-03    7.4477        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .90517        .22451        .24475E-03   -.96279    
  19  Prefactor     1.1202        .24152        .24811E-03   -.88824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39376e-09
Minuit parameter uncertainties:
  1  7.74303
  2  6.21e-06
  3  10.2944
  4  38.6661
  5  0.000116597
  6  0.000577508
  7  2.62584
  8  7.80568
  9  0.00031946
  10  0.000787774
  11  3.55402e-05
  12  0.000139952
  13  7.43609e-05
  14  3.40444
  15  8.22025
  16  14.8841
  17  1.69037e-05
  18  0.224739
  19  0.241755
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.774e+00  2.626e+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:  1.120e+00  2.418e-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.052e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70682/likelihoodResults_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.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) = 4606.09603104
delta logL = 0.0398097622938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4606.08610315
delta logL = 0.0497376578387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4121       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6380       1.0000          .0000       10.000    
     3 'Normalizat'    .89409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1276       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=   4606.086     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4116        55.863        .91124E-02    .64451E-03
   2  Index         2.6383        6.2656        .15583        .73204E-04
   3  Normalizat    .89409        .53669E-01    .44826E-01    .90367E-05
   4  Prefactor     1.1276        .58346E-01    .55952E-01    .39758E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41163
  Index      = 2.63825
  Normalizat = 0.894094
  Prefactor  = 1.12757
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.086     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4116        2.8670        .10278E-03   -1.5470    
   2  Index         2.6383        1.1671        .88271E-02   -.49195    
   3  Normalizat    .89409        .21924        .24613E-03   -.96668    
   4  Prefactor     1.1276        .24154        .24740E-03   -.88590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19743e-09
Minuit parameter uncertainties:
  1  2.86732
  2  1.18124
  3  0.219461
  4  0.241771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70682': 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) = 4606.08610306
delta logL = 0.0497377494266

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.412e+00  2.867e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.638e+00  1.181e+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:  1.128e+00  2.418e-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:  8.941e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/70682/cmap_HighResolution_262915201_263174401_4FGL_J1043.2+2408_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-02 08:53:15.128696', job_id='70682', GAL2='1.13', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1630597995.13', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.97e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='91' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:53:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 70682: <4FGL_J1043.2+2408_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin91 160.805 24.146 262915201 263174401 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 :                                   498.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             346.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            712 sec.

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

