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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin165
RA = 140.895, Dec = 41.4283
tmin = 282096001, tmax = 282355201
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='204299', job_status='RUN', time_executed='2021-08-31 10:36:44.291433', time_epoch_executed='1630431404.29' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204299/ft1_4FGL_J0923.5+4125_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204299/ft1_4FGL_J0923.5+4125_daily_bin165.fits outfile=/scratch/kocevski/204299/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin165.fits ra=140.895 dec=41.4283 rad=12.0 tmin=282096001.0 tmax=282355201.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 4.91
user 3.43
sys 1.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.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/204299/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin165.fits evtable="EVENTS" outfile="/scratch/kocevski/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.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 2.03
user 0.30
sys 1.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/204299/ltcube_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.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/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits
.....................!
real 13.16
user 11.25
sys 1.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/204299/ltcube_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.fits outfile=/scratch/kocevski/204299/expmap_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.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/204299/ltcube_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.fits
.....................!
real 192.94
user 185.70
sys 6.45

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/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.fits scfile=/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits outfile=/scratch/kocevski/204299/cmap_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.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 1.70
user 0.38
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.fits scfile=/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits outfile=/scratch/kocevski/204299/cmap_HighResolution_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.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 1.82
user 0.37
sys 1.27

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.fits', '/scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits', expMap='/scratch/kocevski/204299/expmap_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.fits', expCube='/scratch/kocevski/204299/ltcube_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204299/Model_4FGL_J0923.5+4125_daily_bin165.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/204299/ft1_filtered_4FGL_J0923.5+4125_daily_bin165.fits
Spacecraft file(s): /scratch/kocevski/204299/ft2_4FGL_J0923.5+4125_daily_bin165.fits
Exposure map: /scratch/kocevski/204299/expmap_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.fits
Exposure cube: /scratch/kocevski/204299/ltcube_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204299/Model_4FGL_J0923.5+4125_daily_bin165.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) = 5799.53484497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68840       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2849       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.421       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4746       1.0000         .10000E-03   10000.    
     6 'norm      '    6.0836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5550       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.319       1.0000         .10000E-03   10000.    
    15 'norm      '    .98724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1984       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7237       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36431E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1196       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.543       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5938       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    57.254       1.0000         .10000E-03   10000.    
    31 'norm      '    10.199       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .49363       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4422       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5799.478     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4626 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.507        18.156        .15418E-06    .22692E-04
   2  Prefactor     .68912        2.1196       -.28049E-07   -.16540E-03
   3  Prefactor     3.2727        22.050       -.23147E-05   -.95657E-05
   4  Prefactor     14.422        10.660        .70755E-07    .28798E-04
   5  norm          1.4748        1.8715        .43111E-06   -.23706E-02
   6  norm          6.0839        5.1813       -.77421E-07    .25452E-04
   7  Prefactor     .10000E-03    1.3478       -.36684E-06** at limit **
   8  Prefactor     21.448        24.718        .12028E-04    .14699E-03
   9  Prefactor     .10000E-03    47.596        .17318E-05** at limit **
  10  Prefactor     5.7144        4.4671       -.99592E-06   -.44764E-04
  11  Prefactor     .10000E-03    10.463        .17648E-06** at limit **
  12  Prefactor     1.5548        1.9338        .31384E-07    .79438E-04
  13  norm          .10000E-03    1.9499        .20886E-07** at limit **
  14  Prefactor     12.317        11.003        .40780E-08    .33926E-04
  15  norm          .98717        .68728        .25662E-06   -.33072E-03
  16  Prefactor     1.1991        3.6092       -.18054E-05    .23773E-04
  17  norm          .10000E-03    2.7487        .81172E-07** at limit **
  18  Prefactor     2.7236        1.9965        .86884E-07    .18693E-03
  19  Prefactor     .10000E-03    5.4285        .52727E-07** at limit **
  20  Prefactor     .10000E-03    2.2729       -.93965E-06** at limit **
  21  Prefactor     .10000E-03    7.0839       -.15502E-05** at limit **
  22  norm          3.1198        11.804        .47076E-06   -.30784E-03
  23  Prefactor     .10000E-03    14.470       -.28893E-05** at limit **
  24  Prefactor     .10000E-03    6.7821        .12895E-05** at limit **
  25  Prefactor     38.540        29.794       -.16360E-05    .29666E-04
  26  Prefactor     .10000E-03    2.7471       -.10119E-06** at limit **
  27  norm          .10000E-03    13.332        .26335E-05** at limit **
  28  Prefactor     6.5941        4.8910       -.55963E-06    .34290E-04
  29  Prefactor     .10000E-03    2.9443        .91306E-07** at limit **
  30  Prefactor     57.242        35.592       -.87030E-05   -.33692E-04
  31  norm          10.199        9.0201        .12519E-05    .16791E-04
  32  Normalizat    .49372        .17730        .15336E-05    .18197E-03
  33  Prefactor     1.4424        .19926       -.35595E-06    .24128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.5069
  Prefactor  = 0.689118
  Prefactor  = 3.27269
  Prefactor  = 14.422
  norm       = 1.47481
  norm       = 6.08386
  Prefactor  = 0.0001
  Prefactor  = 21.4482
  Prefactor  = 0.000100001
  Prefactor  = 5.7144
  Prefactor  = 0.0001
  Prefactor  = 1.55476
  norm       = 0.0001
  Prefactor  = 12.3167
  norm       = 0.98717
  Prefactor  = 1.19915
  norm       = 0.0001
  Prefactor  = 2.72364
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.11979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.59409
  Prefactor  = 0.0001
  Prefactor  = 57.2421
  norm       = 10.1993
  Normalizat = 0.493718
  Prefactor  = 1.44236
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.478     FROM HESSE     STATUS=OK           703 CALLS     5329 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.507        17.522        .66328E-04   -1.4499    
   2  Prefactor     .68912        2.0064        .17710E-03   -1.5542    
   3  Prefactor     3.2727        21.930        .22340E-03   -1.5346    
   4  Prefactor     14.422        10.633        .10547E-03   -1.4948    
   5  norm          1.4748        5.2321        .15669E-02   -1.5465    
   6  norm          6.0839        5.2004        .15440E-03   -1.5215    
   7  Prefactor     .10000E-03    2.3631        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.448        24.805        .86526E-04   -1.4781    
   9  Prefactor     .10000E-03    47.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7144        4.4704        .13427E-03   -1.5230    
  11  Prefactor     .10000E-03    10.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5548        1.9125        .11298E-03   -1.5459    
  13  norm          .10000E-03    2.0022        .20761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.317        10.996        .57066E-03   -1.5006    
  15  norm          .98717        .72657        .34554E-04   -1.5509    
  16  Prefactor     1.1991        3.8208        .16005E-03   -1.5489    
  17  norm          .10000E-03    2.7613        .12325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7236        1.9881        .87310E-04   -1.5378    
  19  Prefactor     .10000E-03    5.4985        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.908        .22013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1198        12.082        .11478E-02   -1.5355    
  23  Prefactor     .10000E-03    14.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.0020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.540        29.775        .64560E-04   -1.4466    
  26  Prefactor     .10000E-03    2.7525        .12326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.5941        4.8822        .14022E-03   -1.5194    
  29  Prefactor     .10000E-03    2.9831        .12755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     57.242        35.664        .53018E-04   -1.4193    
  31  norm          10.199        9.0137        .12547E-03   -1.5069    
  32  Normalizat    .49372        .20100        .31009E-03   -1.1271    
  33  Prefactor     1.4424        .23182        .22961E-03   -.79167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1326e-08
Minuit parameter uncertainties:
  1  17.5243
  2  2.00664
  3  16.9522
  4  10.6344
  5  5.23374
  6  5.20082
  7  4.18966e-05
  8  24.817
  9  0.000343677
  10  4.47061
  11  2.62338e-07
  12  1.91262
  13  1.21029e-06
  14  10.9976
  15  0.726574
  16  3.82153
  17  7.11746e-07
  18  1.98813
  19  2.32042e-05
  20  0.000460409
  21  1.31651e-05
  22  12.091
  23  3.89897e-05
  24  7.35206e-06
  25  29.7868
  26  4.35636e-07
  27  9.45949e-06
  28  4.88249
  29  7.3342e-06
  30  35.677
  31  9.01493
  32  0.201291
  33  0.231992
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  2.724e+00  1.988e+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

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.442e+00  2.320e-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:  4.937e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.33
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 9.65e-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) = 5797.90762871
delta logL = 1.57038850441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5797.88376867
delta logL = 1.59424854054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7023       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4634       1.0000          .0000       10.000    
     3 'Normalizat'    .51686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4292       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=   5797.884     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7018        2.2101        .61951E-02    .36721E-03
   2  Index         1.4629        .35741        .18499       -.11904E-03
   3  Normalizat    .51701        .16098        .68572E-01    .13182E-03
   4  Prefactor     1.4290        .19520        .52163E-01   -.23248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70176
  Index      = 1.46292
  Normalizat = 0.517014
  Prefactor  = 1.42902
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.884     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7018        2.7973        .99228E-04   -1.5379    
   2  Index         1.4629        .49327        .74810E-02   -.78584    
   3  Normalizat    .51701        .18501        .30353E-03   -1.1163    
   4  Prefactor     1.4290        .22501        .23061E-03   -.79547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66307e-10
Minuit parameter uncertainties:
  1  2.79739
  2  0.494884
  3  0.185232
  4  0.225169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204299': 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) = 5797.88376758
delta logL = 1.59424963377

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  2.702e+00  2.797e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.463e+00  4.949e-01  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:  1.429e+00  2.252e-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:  5.170e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.52
Ra Dec: 140.895 41.428
Photon Index (Free Index): 1.46 +/- 0.49
Photon Flux (Free Index): 1.45e-08 +/- 1.67e-08
Energy Flux (Free Index): 5.20e-05 +/- 6.09e-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/204299/cmap_HighResolution_282096001_282355201_4FGL_J0923.5+4125_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='5.20e-05', photon_flux_error='2.77e-08', dlogl='1.59e+00', energy_flux='1.32e-05', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-08-31 10:51:40.125391', photon_index_error2='0.49', photon_index2='1.46', ts='9.33', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='6.09e-05', EG='0.49', time_epoch_completed='1630432300.13', return_code='0', job_id='204299', GAL2='1.43', EG2='0.52', return_code2='0', energy_flux_error='9.65e-06', photon_flux_error2='1.67e-08', ts2='12.52', photon_index='2.36' WHERE bin_id='165' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 204299: <4FGL_J0923.5+4125_daily_bin165> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:46 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 10:35:48 2021
Terminated at Tue Aug 31 10:51:43 2021
Results reported at Tue Aug 31 10:51:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin165 140.895 41.4283 282096001 282355201 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 :                                   904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            957 sec.

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

