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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1578
RA = 140.895, Dec = 41.4283
tmin = 648345601, tmax = 648604801
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='214423', job_status='RUN', time_executed='2021-08-31 11:06:31.841712', time_epoch_executed='1630433191.84' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214423/ft1_4FGL_J0923.5+4125_daily_bin1578.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214423/ft1_4FGL_J0923.5+4125_daily_bin1578.fits outfile=/scratch/kocevski/214423/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1578.fits ra=140.895 dec=41.4283 rad=12.0 tmin=648345601.0 tmax=648604801.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 2.90
user 2.70
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.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/214423/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1578.fits evtable="EVENTS" outfile="/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits" evtable="EVENTS" scfile=/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits sctable="SC_DATA" outfile=/scratch/kocevski/214423/ltcube_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.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/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits
.....................!
real 12.35
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits sctable="SC_DATA" expcube=/scratch/kocevski/214423/ltcube_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.fits outfile=/scratch/kocevski/214423/expmap_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.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/214423/ltcube_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.fits
.....................!
real 190.41
user 185.62
sys 4.36

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

Setting source of interest to:
4FGL J0923.5+4125 @ 140.895 41.4283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits scfile=/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits outfile=/scratch/kocevski/214423/cmap_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.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=140.895 yref=41.4283 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.69
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits scfile=/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits outfile=/scratch/kocevski/214423/cmap_HighResolution_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.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=140.895 yref=41.4283 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214423/Model_4FGL_J0923.5+4125_daily_bin1578.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/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits....................!
real 15.71
user 13.70
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits', '/scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits', expMap='/scratch/kocevski/214423/expmap_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.fits', expCube='/scratch/kocevski/214423/ltcube_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214423/Model_4FGL_J0923.5+4125_daily_bin1578.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+4125'

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/214423/ft1_filtered_4FGL_J0923.5+4125_daily_bin1578.fits
Spacecraft file(s): /scratch/kocevski/214423/ft2_4FGL_J0923.5+4125_daily_bin1578.fits
Exposure map: /scratch/kocevski/214423/expmap_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.fits
Exposure cube: /scratch/kocevski/214423/ltcube_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214423/Model_4FGL_J0923.5+4125_daily_bin1578.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) = 195.901953648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11692E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    .22165E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    .53092E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30895E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23087E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .12000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.880       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .24234E-04   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   184.2331     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     4690 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    43.211       -.96084E-05** at limit **
   2  Prefactor     .10000E-03    15.186        .98889E-05** at limit **
   3  Prefactor     .10001E-03    75.190        .27951E-04** at limit **
   4  Prefactor     .10000E-03    26.844       -.26444E-05** at limit **
   5  norm          .10000E-03    11.705       -.10193E-04** at limit **
   6  norm          .10000E-03    9.4295       -.10595E-04** at limit **
   7  Prefactor     .10000E-03    22.104        .11203E-05** at limit **
   8  Prefactor     .10040E-03    23.462        .47692E-05** at limit **
   9  Prefactor     .10002E-03    75.544        .28094E-04** at limit **
  10  Prefactor     .10004E-03    51.465        .10713E-04** at limit **
  11  Prefactor     9999.9        47.555       -.50927E-05   -.33956E-03
  12  Prefactor    10000.0        54.361       -.89085E-05** at limit **
  13  norm          .10000E-03    69.602       -.12480E-04** at limit **
  14  Prefactor    10000.0        15.231       -.32776E-05** at limit **
  15  norm         10000.0        203.89       -.13884E-04** at limit **
  16  Prefactor    10000.0        392.42       -.27190E-04** at limit **
  17  norm          .12781E-03    981.69        .46224E-04** at limit **
  18  Prefactor    10000.0        52.526       -.14637E-04** at limit **
  19  Prefactor     .10000E-03    99.551       -.45083E-04** at limit **
  20  Prefactor     .10001E-03    36.087       -.25688E-04** at limit **
  21  Prefactor    10000.0        8.7276       -.24083E-05** at limit **
  22  norm          .11024E-03    11.963       -.10627E-04** at limit **
  23  Prefactor     .10202E-03    6.5166       -.14104E-05** at limit **
  24  Prefactor     .28099E-03    520.60        .41000E-04** at limit **
  25  Prefactor     .10023E-03    95.224       -.42605E-04** at limit **
  26  Prefactor     .10021E-03    34.501        .17252E-04** at limit **
  27  norm          .10100E-03    260.73        .21232E-04** at limit **
  28  Prefactor    10000.0        51.853       -.92697E-05** at limit **
  29  Prefactor     10.884        11.322        .28010E-05    .31347E-03
  30  Prefactor     .10003E-03    37.692        .33936E-04** at limit **
  31  norm          .10000E-03    10.423       -.32393E-05** at limit **
  32  Normalizat    .10000E-01    .10768        .57084E-05** at limit **
  33  Prefactor     .12105E-09    7.9313       -.13677E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100397
  Prefactor  = 0.000100017
  Prefactor  = 0.000100035
  Prefactor  = 9999.91
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.000127814
  Prefactor  = 10000
  Prefactor  = 0.000100005
  Prefactor  = 0.000100011
  Prefactor  = 10000
  norm       = 0.000110243
  Prefactor  = 0.000102018
  Prefactor  = 0.00028099
  Prefactor  = 0.000100231
  Prefactor  = 0.000100214
  norm       = 0.000101004
  Prefactor  = 10000
  Prefactor  = 10.8844
  Prefactor  = 0.000100026
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.21049e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   184.2331     FROM HESSE     STATUS=OK           737 CALLS     5427 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    45.711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    150.61        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.694        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.4273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10040E-03    51.860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    150.54        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    6279.8        .10328E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9999.9        8726.8        .95395E-02    1.5648    
  12  Prefactor    10000.0        6787.8        .10163E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    69.912        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        9122.7        .99030E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        477.35        .93020E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6175.6        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .12781E-03    2147.3        .91333E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        1692.2        .10374E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    196.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    36.236        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        9472.0        .10061E-01    1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .11024E-03    412.27        .10564E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10202E-03    536.27        .10689E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .28099E-03    1558.0        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10023E-03    194.36        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10021E-03    54.264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10100E-03    472.00        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor    10000.0        6611.5        .10239E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.884        11.444        .30366E-02   -1.5048    
  30  Prefactor     .10003E-03    38.152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    10.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .10754        .62433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .12105E-09    1.1488        .12595       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48638e-06
Minuit parameter uncertainties:
  1  0.00293765
  2  0.000170233
  3  0.00258828
  4  6.1814e-05
  5  0.000152719
  6  0.000142774
  7  2.85591e-05
  8  0.00908198
  9  0.00319759
  10  0.0199423
  11  125.2
  12  1.23711
  13  0.000181976
  14  8.89174
  15  0.0497187
  16  0.976816
  17  0.50821
  18  0.548846
  19  0.00195217
  20  0.00123733
  21  8.62798
  22  0.13088
  23  0.066397
  24  1.09175
  25  0.0134354
  26  0.00682026
  27  0.0438823
  28  0.721094
  29  11.4466
  30  0.00199776
  31  4.60006e-05
  32  2.60119e-07
  33  2.4061e-05
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e+04  5.488e-01  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.210e-10  2.406e-05  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.000e-02  2.601e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.48
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.39e-04 +/- 7.64e-09
Energy Flux (Fixed Index): 4.85e-02 +/- 2.66e-06

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) = 71.0507490715
delta logL = 113.182332554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 71.0507116517
delta logL = 113.182369974

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   71.03828     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      207 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        376.17        .90731E-02** at limit **
   2  Index         10.000        .26425E-01    .19224E-01** at limit **
   3  Normalizat    .10000E-01    .10418        .32094E-01** at limit **
   4  Prefactor     .32971E-01    .35156        .71086E-01    .32170E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 10
  Normalizat = 0.01
  Prefactor  = 0.0329713
 **********
 **   18 **HESSE 
 **********

 FCN=   71.03828     FROM HESSE     STATUS=OK            25 CALLS      232 TOTAL
                     EDM=   .90E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        376.17        .16122E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         10.000        .26424E-01    .42478E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .10415        .84419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32971E-01    .35589        .31234E-03   -1.4559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03474e-14
Minuit parameter uncertainties:
  1  1.51722e-06
  2  1.44302e-09
  3  5.36978e-09
  4  0.218324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214423': 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) = 71.0382751762
delta logL = 113.19480645

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e+04  1.517e-06  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.000e+01  1.443e-09  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  3.297e-02  2.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.000e-02  5.370e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 232.81
Ra Dec: 140.895 41.428
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.27e+02 +/- 1.56e-06
Energy Flux (Free Index): 5.89e+04 +/- 1.74e-04

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/214423/cmap_HighResolution_648345601_648604801_4FGL_J0923.5+4125_daily_bin1578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-04', energy_flux2='5.89e+04', photon_flux_error='7.64e-09', dlogl='1.13e+02', energy_flux='4.85e-02', photon_flux2='5.27e+02', job_status='DONE', time_completed='2021-08-31 11:12:34.584662', photon_index_error2='0.00', photon_index2='10.00', ts='6.48', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.74e-04', EG='0.01', time_epoch_completed='1630433554.58', return_code='0', job_id='214423', GAL2='0.03', EG2='0.01', return_code2='0', energy_flux_error='2.66e-06', photon_flux_error2='1.56e-06', ts2='232.81', photon_index='2.36' WHERE bin_id='1578' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:12:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 214423: <4FGL_J0923.5+4125_daily_bin1578> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1578> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 11:06:10 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:06:12 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:06:12 2021
Terminated at Tue Aug 31 11:12:35 2021
Results reported at Tue Aug 31 11:12:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1578 140.895 41.4283 648345601 648604801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   351.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   382 sec.
    Turnaround time :                            385 sec.

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

