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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1143
RA = 141.005, Dec = 28.2755
tmin = 535593601, tmax = 535852801
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='222109', job_status='RUN', time_executed='2021-08-31 11:31:11.067030', time_epoch_executed='1630434671.07' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222109/ft1_4FGL_J0924.0+2816_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222109/ft1_4FGL_J0924.0+2816_daily_bin1143.fits outfile=/scratch/kocevski/222109/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1143.fits ra=141.005 dec=28.2755 rad=12.0 tmin=535593601.0 tmax=535852801.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.63
user 4.79
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.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/222109/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1143.fits evtable="EVENTS" outfile="/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.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 1.84
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits" evtable="EVENTS" scfile=/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits sctable="SC_DATA" outfile=/scratch/kocevski/222109/ltcube_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.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/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits
.....................!
real 12.42
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/222109/ltcube_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.fits outfile=/scratch/kocevski/222109/expmap_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.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/222109/ltcube_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.fits
.....................!
real 194.15
user 187.61
sys 3.85

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0924.0+2816 @ 141.005 28.2755

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits scfile=/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits outfile=/scratch/kocevski/222109/cmap_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.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=141.005 yref=28.2755 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 1.99
user 0.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits scfile=/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits outfile=/scratch/kocevski/222109/cmap_HighResolution_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.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=141.005 yref=28.2755 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 3.36
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222109/Model_4FGL_J0924.0+2816_daily_bin1143.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/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits.....................!
real 62.13
user 53.28
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits', '/scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits', expMap='/scratch/kocevski/222109/expmap_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.fits', expCube='/scratch/kocevski/222109/ltcube_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222109/Model_4FGL_J0924.0+2816_daily_bin1143.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0924.0+2816'

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/222109/ft1_filtered_4FGL_J0924.0+2816_daily_bin1143.fits
Spacecraft file(s): /scratch/kocevski/222109/ft2_4FGL_J0924.0+2816_daily_bin1143.fits
Exposure map: /scratch/kocevski/222109/expmap_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.fits
Exposure cube: /scratch/kocevski/222109/ltcube_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222109/Model_4FGL_J0924.0+2816_daily_bin1143.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) = 6087.75221894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.100       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3467       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.201       1.0000         .10000E-03   10000.    
     7 'norm      '    .52267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15495E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4456       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2235       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6087.749     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2076 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47598        .21633E-07** at limit **
   2  Prefactor     14.099        12.706       -.16920E-06   -.42028E-04
   3  Prefactor     7.3472        14.475       -.56732E-06   -.33033E-04
   4  norm          .10000E-03    15.422        .61247E-05** at limit **
   5  Prefactor     .10000E-03    1.2261       -.28721E-07** at limit **
   6  Prefactor     30.226        44.402        .43509E-04    .19938E-03
   7  norm          .52308        1.3616       -.37878E-06   -.16167E-02
   8  Prefactor     3.8445        17.415       -.39106E-04   -.12948E-03
   9  Prefactor     .10000E-03    18.982       -.22918E-05** at limit **
  10  norm          .10001E-03    10.594       -.50845E-05** at limit **
  11  Prefactor     2.5754        3.4325       -.13184E-06   -.42815E-03
  12  Prefactor     19.932        21.619        .23254E-05    .61099E-05
  13  Prefactor     4.8092        42.444       -.10094E-05   -.17912E-04
  14  Prefactor     .10000E-03    13.756        .11546E-05** at limit **
  15  Prefactor     .10000E-03    1.8101       -.63499E-07** at limit **
  16  Prefactor     .10000E-03    8.3105        .47498E-05** at limit **
  17  Prefactor     1.4456        1.7929       -.11184E-06   -.40827E-03
  18  norm          .10000E-03    7.1184       -.16144E-05** at limit **
  19  Normalizat    1.2234        .16657        .70117E-06    .10918E-03
  20  Prefactor     .91130        .16372       -.84750E-06    .14279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 14.099
  Prefactor  = 7.34719
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.226
  norm       = 0.523084
  Prefactor  = 3.84449
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 2.57539
  Prefactor  = 19.9317
  Prefactor  = 4.8092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.44556
  norm       = 0.0001
  Normalizat = 1.2234
  Prefactor  = 0.9113
 **********
 **   18 **HESSE 
 **********

 FCN=   6087.749     FROM HESSE     STATUS=OK           295 CALLS     2371 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91429        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.099        12.564        .10667E-03   -1.4957    
   3  Prefactor     7.3472        14.487        .14797E-03   -1.5166    
   4  norm          .10000E-03    15.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2347        .84358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.226        44.562        .72906E-04   -1.4608    
   7  norm          .52308        1.1596        .14040E-02   -1.5563    
   8  Prefactor     3.8445        17.510        .20520E-03   -1.5316    
   9  Prefactor     .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    10.825        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5754        3.3989        .15652E-03   -1.5387    
  12  Prefactor     19.932        21.645        .89719E-04   -1.4815    
  13  Prefactor     4.8092        42.437        .18345E-03   -1.5269    
  14  Prefactor     .10000E-03    13.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8176        .10250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.4176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4456        1.7727        .11209E-03   -1.5468    
  18  norm          .10000E-03    7.3121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2234        .19371        .22156E-03   -.85883    
  20  Prefactor     .91130        .18969        .25492E-03   -.95747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61199e-09
Minuit parameter uncertainties:
  1  1.23562e-06
  2  12.5667
  3  14.4937
  4  1.15034e-06
  5  8.6586e-07
  6  44.6107
  7  1.15964
  8  16.4171
  9  3.72734e-08
  10  0.000805114
  11  3.39915
  12  21.6536
  13  28.5989
  14  4.05321e-07
  15  1.11236e-06
  16  1.73152e-05
  17  1.77281
  18  1.21682e-05
  19  0.193828
  20  0.189829
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  2.575e+00  3.399e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.113e-01  1.898e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.223e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 141.005 28.276
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222109/likelihoodResults_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.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) = 6086.89682457
delta logL = 0.852205451712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6086.86095981
delta logL = 0.888070207427

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6086.861     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74620        6.7553        .99598E-02    .96104E-03
   2  Index         4.0966        2.7471        .14537        .12108E-03
   3  Normalizat    1.1489        .41694E-01    .36288E-01    .63210E-05
   4  Prefactor     .95848        .41952E-01    .45746E-01    .15162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.746196
  Index      = 4.09662
  Normalizat = 1.14888
  Prefactor  = 0.958478
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.861     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74620        16.911        .45026E-04   -1.5535    
   2  Index         4.0966        7.0117        .51307E-02   -.18167    
   3  Normalizat    1.1489        .20812        .22734E-03   -.88198    
   4  Prefactor     .95848        .20333        .24930E-03   -.94127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60216e-07
Minuit parameter uncertainties:
  1  7.10641
  2  5.98826
  3  0.208265
  4  0.203492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222109': 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): 102
logL (Free Index) = 6086.86095754
delta logL = 0.888072476894

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  7.462e-01  7.106e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  4.097e+00  5.988e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.585e-01  2.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.149e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 141.005 28.276
Photon Index (Free Index): 4.10 +/- 5.99
Photon Flux (Free Index): 8.28e-08 +/- 7.02e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.03e-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/222109/cmap_HighResolution_535593601_535852801_4FGL_J0924.0+2816_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='8.88e-01', photon_flux2='8.28e-08', job_status='DONE', time_completed='2021-08-31 11:42:07.263023', photon_index_error2='5.99', photon_index2='4.10', ts='0.78', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.03e-05', EG='1.22', time_epoch_completed='1630435327.26', return_code='0', job_id='222109', GAL2='0.96', EG2='1.15', return_code2='102', photon_flux_error2='7.02e-08', ts2='2.74', photon_index='2.51' WHERE bin_id='1143' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 222109: <4FGL_J0924.0+2816_daily_bin1143> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1143> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 11:26:29 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:26:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 11:26:43 2021
Terminated at Tue Aug 31 11:42:08 2021
Results reported at Tue Aug 31 11:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1143 141.005 28.2755 535593601 535852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0924.0+2816 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            939 sec.

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

