/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 7207
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1592
RA = 140.895, Dec = 41.4283
tmin = 651974401, tmax = 652233601
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='926625', job_status='RUN', time_executed='2021-09-02 00:37:30.072114', time_epoch_executed='1630568250.07' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926625

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926625/ft1_4FGL_J0923.5+4125_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926625/ft2_4FGL_J0923.5+4125_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926625/ft1_4FGL_J0923.5+4125_daily_bin1592.fits outfile=/scratch/kocevski/926625/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1592.fits ra=140.895 dec=41.4283 rad=12.0 tmin=651974401.0 tmax=652233601.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 3.20
user 2.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926625/ft1_filtered_4FGL_J0923.5+4125_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/926625/ft2_4FGL_J0923.5+4125_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/926625/ltcube_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.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/926625/ft2_4FGL_J0923.5+4125_daily_bin1592.fits
.....................!
real 13.65
user 11.42
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926625/ft1_filtered_4FGL_J0923.5+4125_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/926625/ft2_4FGL_J0923.5+4125_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/926625/ltcube_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.fits outfile=/scratch/kocevski/926625/expmap_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.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/926625/ltcube_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.fits
.....................!
real 163.19
user 151.35
sys 3.12

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/926625/ft1_filtered_4FGL_J0923.5+4125_daily_bin1592.fits scfile=/scratch/kocevski/926625/ft2_4FGL_J0923.5+4125_daily_bin1592.fits outfile=/scratch/kocevski/926625/cmap_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.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.54
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926625/ft1_filtered_4FGL_J0923.5+4125_daily_bin1592.fits scfile=/scratch/kocevski/926625/ft2_4FGL_J0923.5+4125_daily_bin1592.fits outfile=/scratch/kocevski/926625/cmap_HighResolution_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.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.61
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6279       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17139E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .41951       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9713       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0912       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26480       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.838       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .86203E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    22.774       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .27657E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.8752       1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.548       1.0000         .10000E-03   10000.    
    31 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3427       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79102       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=   6262.467     FROM MIGRAD    STATUS=CONVERGED    973 CALLS     4126 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.202       -.59143E-06** at limit **
   2  Prefactor     .21020        1.4611       -.45234E-07   -.32739E-04
   3  Prefactor     .10000E-03    8.2425       -.79307E-06** at limit **
   4  Prefactor     1.6299        2.5006        .70831E-06   -.16222E-02
   5  norm          .10000E-03    3.6320       -.23551E-07** at limit **
   6  norm          .10000E-03    4.0830       -.52256E-07** at limit **
   7  Prefactor     .43369        1.9085       -.21953E-06   -.26544E-03
   8  Prefactor     .10000E-03    39.529        .23051E-05** at limit **
   9  Prefactor     .10000E-03    41.894        .10634E-05** at limit **
  10  Prefactor     8.1537        4.4912        .64700E-06    .10423E-03
  11  Prefactor     .10000E-03    95.699        .16616E-05** at limit **
  12  Prefactor     .10000E-03    1.7512       -.23429E-08** at limit **
  13  norm          .10000E-03    2.0405        .94697E-08** at limit **
  14  Prefactor     .10024E-03    8.4123       -.17480E-05** at limit **
  15  norm          .41950        .39613        .65668E-08   -.16025E-03
  16  Prefactor     1.9708        2.9268       -.18989E-06   -.47150E-04
  17  norm          1.0904        3.6687        .64809E-07   -.24522E-04
  18  Prefactor     .10000E-03    1.1918        .43790E-07** at limit **
  19  Prefactor     .10000E-03    5.3850        .79265E-07** at limit **
  20  Prefactor     .25919        2.7593        .97406E-06   -.13363E-02
  21  Prefactor     19.852        18.321        .34200E-05    .15939E-05
  22  norm          .10000E-03    7.2170        .12841E-05** at limit **
  23  Prefactor     .10000E-03    10.013        .49072E-06** at limit **
  24  Prefactor     .10000E-03    6.8448       -.12303E-05** at limit **
  25  Prefactor     .10325E-03    38.807        .54309E-06** at limit **
  26  Prefactor     .10000E-03    28.049       -.80110E-06** at limit **
  27  norm          22.771        14.863       -.46975E-06    .82199E-04
  28  Prefactor     .10000E-03    3.7026       -.53320E-06** at limit **
  29  Prefactor     1.8772        5.1296       -.65473E-06   -.39691E-04
  30  Prefactor     15.571        34.180       -.20213E-04   -.35729E-04
  31  norm          .10000E-03    5.3009       -.73508E-08** at limit **
  32  Normalizat    1.3426        .18080        .16386E-05   -.54375E-04
  33  Prefactor     .79087        .18121       -.14869E-05    .15456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.210203
  Prefactor  = 0.0001
  Prefactor  = 1.62994
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.433686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.15367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100242
  norm       = 0.419503
  Prefactor  = 1.97084
  norm       = 1.09039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.259192
  Prefactor  = 19.8516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103254
  Prefactor  = 0.0001
  norm       = 22.771
  Prefactor  = 0.000100002
  Prefactor  = 1.87723
  Prefactor  = 15.5712
  norm       = 0.0001
  Normalizat = 1.34265
  Prefactor  = 0.790866
 **********
 **   18 **HESSE 
 **********

 FCN=   6262.467     FROM HESSE     STATUS=OK           709 CALLS     4835 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .21020        7.3084        .18322E-02   -1.5616    
   3  Prefactor     .10000E-03    8.2502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6299        7.4487        .16575E-02   -1.5453    
   5  norm          .10000E-03    3.7482        .29440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.2097        .31224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .43369        1.9514        .20712E-03   -1.5576    
   8  Prefactor     .10000E-03    40.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1537        4.4943        .11957E-03   -1.5137    
  11  Prefactor     .10000E-03    97.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9731        .19902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0996        .22069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10024E-03    58.670        .43660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .41950        .41109        .39542E-04   -1.5578    
  16  Prefactor     1.9708        3.0364        .13099E-03   -1.5427    
  17  norm          1.0904        3.5702        .26840E-03   -1.5499    
  18  Prefactor     .10000E-03    1.8271        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4110        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25919        21.474        .24303E-02   -1.5606    
  21  Prefactor     19.852        18.433        .89926E-04   -1.4817    
  22  norm          .10000E-03    7.2255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10325E-03    39.136        .12633       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.242        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          22.771        14.725        .83934E-04   -1.4753    
  28  Prefactor     .10000E-03    45.374        .28500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.8772        5.1159        .28397E-03   -1.5434    
  30  Prefactor     15.571        34.467        .10157E-03   -1.4919    
  31  norm          .10000E-03    5.3153        .17792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3426        .21256        .21615E-03   -.82302    
  33  Prefactor     .79087        .21452        .29966E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25248e-08
Minuit parameter uncertainties:
  1  4.76429e-06
  2  2.47864
  3  5.60938e-06
  4  6.96997
  5  3.57744e-06
  6  4.25445e-06
  7  1.83979
  8  0.000177096
  9  3.90933e-05
  10  4.49444
  11  0.000271936
  12  1.9893e-06
  13  4.55813e-06
  14  0.00754371
  15  0.411091
  16  3.03659
  17  3.57094
  18  3.3749e-07
  19  4.39355e-05
  20  4.71925
  21  18.4382
  22  6.14518e-06
  23  1.27951e-05
  24  8.29302e-05
  25  0.0225844
  26  6.9152e-05
  27  14.727
  28  0.000552303
  29  5.11706
  30  34.5114
  31  8.56442e-05
  32  0.212702
  33  0.21475
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.375e-07  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:  7.909e-01  2.147e-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.343e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926625/likelihoodResults_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6262.46930226
delta logL = -0.00260574161348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6262.46669592
delta logL = 5.97146936343e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3836       1.0000          .0000       10.000    
     3 'Normalizat'    1.3426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79094       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6262.467     FROM MIGRAD    STATUS=FAILED        94 CALLS      265 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    189.95        .16412E-02** at limit **
   2  Index         2.4144        8.3782        .50000       -.14429E-03
   3  Normalizat    1.3426        .47754E-01    .21615E-03   -.16180E-03
   4  Prefactor     .79086        .52449E-01    .29966E-03    .12596E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6262.467     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      430 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    189.95        .23637E-03** at limit **
   2  Index         2.4144        8.3782        .96183E-05   -.14429E-03
   3  Normalizat    1.3426        .47754E-01    .29765E-06   -.16180E-03
   4  Prefactor     .79086        .52449E-01    .26716E-06    .12596E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6261.902     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      533 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .40480E-02    .32824E-03** at limit **
   2  Index         7.6648        2.8423        .20000        .15236E-03
   3  Normalizat    1.2940        .37353E-01    .43230E-04    .25336E-03
   4  Prefactor     .82698        .40790E-01    .11986E-04    .31735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.66476
  Normalizat = 1.29398
  Prefactor  = 0.826978
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.902     FROM HESSE     STATUS=OK            31 CALLS      564 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12301E-02    .12203E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6648        .52068        .70631E-02    .56208    
   3  Normalizat    1.2940        .19415        .86460E-05   -.83746    
   4  Prefactor     .82698        .21112        .23973E-05   -.98741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67036e-10
Minuit parameter uncertainties:
  1  3.06014e-08
  2  0.522004
  3  0.194262
  4  0.211329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926625': 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) = 6261.90160884
delta logL = 0.565087681286

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.060e-08  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  7.665e+00  5.220e-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:  8.270e-01  2.113e-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.294e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 140.895 41.428
Photon Index (Free Index): 7.66 +/- 0.52
Photon Flux (Free Index): 3.89e-08 +/- 4.14e-08
Energy Flux (Free Index): 4.55e-06 +/- 4.80e-06

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/926625/cmap_HighResolution_651974401_652233601_4FGL_J0923.5+4125_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', comment='SUCCESS', energy_flux2='4.55e-06', dlogl='5.65e-01', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-09-02 00:52:34.730308', photon_index_error2='0.52', photon_index2='7.66', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.47e-08', energy_flux_error2='4.80e-06', EG='1.34', time_epoch_completed='1630569154.73', return_code='0', job_id='926625', GAL2='0.83', EG2='1.29', return_code2='0', photon_flux_error2='4.14e-08', ts2='1.18', photon_index='2.36' WHERE bin_id='1592' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 926625: <4FGL_J0923.5+4125_daily_bin1592> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1592> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 00:35:56 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:36:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:36:23 2021
Terminated at Thu Sep  2 00:52:35 2021
Results reported at Thu Sep  2 00:52:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1592 140.895 41.4283 651974401 652233601 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 :                                   871.00 sec.
    Max Memory :                                 1014 MB
    Average Memory :                             311.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            999 sec.

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

