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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin7
RA = 140.895, Dec = 41.4283
tmin = 241142401, tmax = 241401601
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='204036', job_status='RUN', time_executed='2021-08-31 10:37:51.164428', time_epoch_executed='1630431471.16' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204036/ft1_4FGL_J0923.5+4125_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204036/ft2_4FGL_J0923.5+4125_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204036/ft1_4FGL_J0923.5+4125_daily_bin7.fits outfile=/scratch/kocevski/204036/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin7.fits ra=140.895 dec=41.4283 rad=12.0 tmin=241142401.0 tmax=241401601.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.87
user 1.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204036/ft1_filtered_4FGL_J0923.5+4125_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/204036/ft2_4FGL_J0923.5+4125_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/204036/ltcube_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.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/204036/ft2_4FGL_J0923.5+4125_daily_bin7.fits
.....................!
real 14.11
user 13.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204036/ft1_filtered_4FGL_J0923.5+4125_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/204036/ft2_4FGL_J0923.5+4125_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/204036/ltcube_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.fits outfile=/scratch/kocevski/204036/expmap_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.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/204036/ltcube_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.fits
.....................!
real 191.59
user 185.68
sys 4.22

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/204036/ft1_filtered_4FGL_J0923.5+4125_daily_bin7.fits scfile=/scratch/kocevski/204036/ft2_4FGL_J0923.5+4125_daily_bin7.fits outfile=/scratch/kocevski/204036/cmap_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.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.85
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204036/ft1_filtered_4FGL_J0923.5+4125_daily_bin7.fits scfile=/scratch/kocevski/204036/ft2_4FGL_J0923.5+4125_daily_bin7.fits outfile=/scratch/kocevski/204036/cmap_HighResolution_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.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.75
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65367       1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5935       1.0000         .10000E-03   10000.    
     6 'norm      '    18.150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2109       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.433       1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9634       1.0000         .10000E-03   10000.    
    17 'norm      '    .14915E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7986       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.222       1.0000         .10000E-03   10000.    
    22 'norm      '    16.751       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4995       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .26044       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .68494       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .40937E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    68.413       1.0000         .10000E-03   10000.    
    31 'norm      '    4.1128       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .76338       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3316       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=   6076.090     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     3963 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.369       -.40660E-05** at limit **
   2  Prefactor     .65164        3.5768       -.31066E-05   -.18488E-04
   3  Prefactor     61.909        1.9816       -.12886E-06    .20029E-02
   4  Prefactor     .10000E-03    5.5480       -.43941E-06** at limit **
   5  norm          2.5933        3.3498        .45377E-06    .66326E-04
   6  norm          18.149        1.5738       -.20417E-06   -.36999E-02
   7  Prefactor     2.2100        3.0865        .15864E-05    .15669E-03
   8  Prefactor     .10000E-03    7.8103       -.86918E-07** at limit **
   9  Prefactor     .10000E-03    19.455       -.55463E-07** at limit **
  10  Prefactor     .10000E-03    2.0636       -.45235E-06** at limit **
  11  Prefactor     .10074E-03    41.107        .97465E-07** at limit **
  12  Prefactor     .10000E-03    1.0171        .10558E-05** at limit **
  13  norm          1.3541        2.0398       -.18659E-06    .29899E-06
  14  Prefactor     31.463        17.081       -.20133E-05    .65499E-02
  15  norm          .10000E-03    .61107        .94489E-07** at limit **
  16  Prefactor     6.9617        3.4177       -.18732E-06   -.43985E-04
  17  norm          .10005E-03    10.926       -.19365E-05** at limit **
  18  Prefactor     5.2562        3.0779       -.56911E-06   -.46228E-04
  19  Prefactor     .10000E-03    6.3273       -.11507E-05** at limit **
  20  Prefactor     1.7978        4.2062        .44515E-05    .31722E-05
  21  Prefactor     29.230        4.1046       -.35433E-06    .14228E-02
  22  norm          16.762        4.0282       -.81989E-06   -.23392E-03
  23  Prefactor     .10000E-03    26.502        .81936E-05** at limit **
  24  Prefactor     2.5070        6.1679        .71158E-06    .30419E-02
  25  Prefactor     .10020E-03    854.03        .63334E-04** at limit **
  26  Prefactor     .10000E-03    3.4262       -.10233E-06** at limit **
  27  norm          .68238        6.1977        .24960E-05    .27221E-02
  28  Prefactor     .10168E-03    23.415       -.16665E-05** at limit **
  29  Prefactor     .10000E-03    1.6635       -.21223E-06** at limit **
  30  Prefactor     68.413        3.5810        .23411E-06   -.40169E-02
  31  norm          4.1137        2.1172       -.78423E-06   -.19519E-02
  32  Normalizat    .76326        .20538       -.78980E-05   -.93785E-04
  33  Prefactor     1.3320        .23550        .33713E-05   -.71781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.651636
  Prefactor  = 61.9088
  Prefactor  = 0.0001
  norm       = 2.59335
  norm       = 18.1493
  Prefactor  = 2.21004
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100739
  Prefactor  = 0.0001
  norm       = 1.35412
  Prefactor  = 31.4632
  norm       = 0.0001
  Prefactor  = 6.96166
  norm       = 0.000100049
  Prefactor  = 5.25624
  Prefactor  = 0.0001
  Prefactor  = 1.79777
  Prefactor  = 29.2297
  norm       = 16.7617
  Prefactor  = 0.000100005
  Prefactor  = 2.50701
  Prefactor  = 0.000100205
  Prefactor  = 0.0001
  norm       = 0.682378
  Prefactor  = 0.000101676
  Prefactor  = 0.0001
  Prefactor  = 68.413
  norm       = 4.11367
  Normalizat = 0.763265
  Prefactor  = 1.33199
 **********
 **   18 **HESSE 
 **********

 FCN=   6076.090     FROM HESSE     STATUS=OK           791 CALLS     4754 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .65164        3.5456        .11883E-01   -1.5547    
   3  Prefactor     61.909        31.770        .12749E-02   -1.4133    
   4  Prefactor     .10000E-03    5.5216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5933        3.3684        .63341E-02   -1.5386    
   6  norm          18.149        8.4913        .23503E-02   -1.4856    
   7  Prefactor     2.2100        3.1310        .69159E-02   -1.5411    
   8  Prefactor     .10000E-03    7.8038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10074E-03    48.915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3541        2.0759        .93918E-02   -1.5475    
  14  Prefactor     31.463        25.761        .17867E-02   -1.4586    
  15  norm          .10000E-03    .38568        .16063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9617        3.8890        .38008E-02   -1.5180    
  17  norm          .10005E-03    5.7096        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2562        3.1471        .43832E-02   -1.5249    
  19  Prefactor     .10000E-03    6.2954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7978        4.2997        .77934E-02   -1.5440    
  21  Prefactor     29.230        19.621        .18529E-02   -1.4626    
  22  norm          16.762        18.229        .24465E-02   -1.4889    
  23  Prefactor     .10000E-03    28.506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.5070        7.3578        .64625E-02   -1.5391    
  25  Prefactor     .10020E-03    38.217        .12947       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.4007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .68238        6.7340        .68482E-01   -1.5543    
  28  Prefactor     .10168E-03    4.6582        .50784E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.6568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     68.413        35.331        .12132E-02   -1.4052    
  31  norm          4.1137        9.2088        .49694E-02   -1.5302    
  32  Normalizat    .76326        .18804        .63692E-01   -1.0145    
  33  Prefactor     1.3320        .20197        .58142E-01   -.82361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05768e-07
Minuit parameter uncertainties:
  1  0.000564875
  2  3.04009
  3  31.7785
  4  2.42814e-06
  5  3.36868
  6  8.49183
  7  3.13125
  8  3.34563e-05
  9  0.000501408
  10  1.10148e-06
  11  0.0120318
  12  2.08443e-06
  13  2.07599
  14  25.7697
  15  1.06784e-07
  16  3.88913
  17  0.00105532
  18  3.14724
  19  1.61835e-05
  20  4.30048
  21  19.6252
  22  18.2354
  23  0.000753069
  24  7.36042
  25  0.0056
  26  2.12855e-07
  27  4.28757
  28  0.00558909
  29  2.57371e-07
  30  35.3423
  31  9.21192
  32  0.188201
  33  0.202087
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  5.256e+00  3.147e+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.332e+00  2.021e-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:  7.633e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.53e-05

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) = 6075.5452832
delta logL = 0.544790344764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6075.54423333
delta logL = 0.545840215457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1422       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9185       1.0000          .0000       10.000    
     3 'Normalizat'    .72282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3616       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6075.544     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      280 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1424        3.1719        .65047E-04   -.27545E-03
   2  Index         2.9183        .64580        .44454E-02   -.25646E-04
   3  Normalizat    .72274        .20410        .28852E-03    .18054E-03
   4  Prefactor     1.3617        .23480        .25459E-03    .24236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14241
  Index      = 2.91833
  Normalizat = 0.722738
  Prefactor  = 1.36174
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.544     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1424        2.8189        .26019E-05   -1.5353    
   2  Index         2.9183        .57368        .17782E-03   -.42941    
   3  Normalizat    .72274        .20386        .11541E-04   -1.0300    
   4  Prefactor     1.3617        .23462        .50919E-04   -.81489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78094e-11
Minuit parameter uncertainties:
  1  2.81906
  2  0.575213
  3  0.204076
  4  0.234799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204036': 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) = 6075.54423301
delta logL = 0.545840530095

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  3.142e+00  2.819e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.918e+00  5.752e-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.362e+00  2.348e-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:  7.227e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.90
Ra Dec: 140.895 41.428
Photon Index (Free Index): 2.92 +/- 0.58
Photon Flux (Free Index): 1.08e-07 +/- 5.98e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.14e-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/204036/cmap_HighResolution_241142401_241401601_4FGL_J0923.5+4125_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='2.26e-05', photon_flux_error='4.38e-08', dlogl='5.46e-01', energy_flux='2.55e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-31 10:52:04.596115', photon_index_error2='0.58', photon_index2='2.92', ts='5.67', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.76', time_epoch_completed='1630432324.6', return_code='0', job_id='204036', GAL2='1.36', EG2='0.72', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.98e-08', ts2='6.90', photon_index='2.36' WHERE bin_id='7' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:52:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 204036: <4FGL_J0923.5+4125_daily_bin7> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin7> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:29 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:30 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:30 2021
Terminated at Tue Aug 31 10:52:05 2021
Results reported at Tue Aug 31 10:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin7 140.895 41.4283 241142401 241401601 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 :                                   841.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

