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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1527
RA = 140.895, Dec = 41.4283
tmin = 635126401, tmax = 635385601
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='214348', job_status='RUN', time_executed='2021-08-31 11:09:38.572543', time_epoch_executed='1630433378.57' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214348/ft1_4FGL_J0923.5+4125_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214348/ft1_4FGL_J0923.5+4125_daily_bin1527.fits outfile=/scratch/kocevski/214348/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1527.fits ra=140.895 dec=41.4283 rad=12.0 tmin=635126401.0 tmax=635385601.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.18
user 2.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.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/214348/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1527.fits evtable="EVENTS" outfile="/scratch/kocevski/214348/ft1_filtered_4FGL_J0923.5+4125_daily_bin1527.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.89
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214348/ft1_filtered_4FGL_J0923.5+4125_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/214348/ltcube_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.fits outfile=/scratch/kocevski/214348/expmap_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.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/214348/ltcube_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.fits
.....................!
real 193.98
user 186.84
sys 4.25

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/214348/ft1_filtered_4FGL_J0923.5+4125_daily_bin1527.fits scfile=/scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.fits outfile=/scratch/kocevski/214348/cmap_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.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.87
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214348/ft1_filtered_4FGL_J0923.5+4125_daily_bin1527.fits scfile=/scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.fits outfile=/scratch/kocevski/214348/cmap_HighResolution_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.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.74
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214348/ft1_filtered_4FGL_J0923.5+4125_daily_bin1527.fits', '/scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.fits', expMap='/scratch/kocevski/214348/expmap_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.fits', expCube='/scratch/kocevski/214348/ltcube_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214348/Model_4FGL_J0923.5+4125_daily_bin1527.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/214348/ft1_filtered_4FGL_J0923.5+4125_daily_bin1527.fits
Spacecraft file(s): /scratch/kocevski/214348/ft2_4FGL_J0923.5+4125_daily_bin1527.fits
Exposure map: /scratch/kocevski/214348/expmap_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.fits
Exposure cube: /scratch/kocevski/214348/ltcube_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214348/Model_4FGL_J0923.5+4125_daily_bin1527.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 66.5591543745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 60.0485245686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14543       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    150.35       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43413E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .59491E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .59559E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7728       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13364E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    278.17       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.853       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.059       1.0000         .10000E-03   10000.    
    15 'norm      '    7458.2       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.893       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3684       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1381       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4977       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3629       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9837       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7839       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9149       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1921       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7738       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .49650E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .47947E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.2859       1.0000         .10000E-03   10000.    
    31 'norm      '    2.1131       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .25593E-07   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59.67448     FROM MIGRAD    STATUS=CONVERGED    476 CALLS      890 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15496        46.863        .97257E-02   -.41810    
   2  Prefactor     6.2768        11.778        .41872E-02    .76708    
   3  Prefactor     142.68        139.70        .82175E-03   -.20245    
   4  Prefactor     .22415E-02    27.165        .10613E-01** at limit **
   5  norm          .16954E-02    16.647        .94763E-02** at limit **
   6  norm          .10809E-03    20.564        .93166E-02** at limit **
   7  Prefactor     .11089E-02    48.961        .90712E-02** at limit **
   8  Prefactor     .26472E-02    324.34        .78617E-02   -.76956E-02
   9  Prefactor     .40285        1026.2        .10280E-01    .29839E-01
  10  Prefactor     35.446        8576.6        .60810E-03    .25019E-01
  11  Prefactor     156.64        9456.3        .38175E-02    .33322E-01
  12  Prefactor     .28961E-01    870.94        .29089E-02   -.94647E-02
  13  norm          1.0628        1.2223         .0000         .0000    
  14  Prefactor     9667.9        5.6597        .37426E-03    .27799E-01
  15  norm          7169.6        1.0346       -.17022E-04    .90140E-01
  16  Prefactor     1.9707        .25715        .48676E-04    .81430E-03
  17  norm          9728.7        8.4674        .58973E-03    .44935E-02
  18  Prefactor     8844.4        11.809       -.18639E-03    .55901E-01
  19  Prefactor     36.938        2.6899        .69321E-04    .23868E-01
  20  Prefactor     150.57        10.656        .11081E-03   -.40334E-01
  21  Prefactor     1577.0        17.570        .51329E-04   -.46331E-02
  22  norm          9.4336        2.2583       -.30246E-05   -.30600E-04
  23  Prefactor     4.1438        1.2408       -.12338E-05   -.69243E-05
  24  Prefactor     9699.3        12.824        .78842E-03    .28458E-02
  25  Prefactor     7.1921        1.0024         .0000         .0000    
  26  Prefactor     1.4647        1.0750         .0000         .0000    
  27  norm          11.718        1.4296       -.15120E-03    .17391E-01
  28  Prefactor     .18330E-02    .21476       -.50132E-06** at limit **
  29  Prefactor     66.360        7.5182        .12157E-03   -.59693E-01
  30  Prefactor     2.2945        .84575       -.10924E-04    .21444E-01
  31  norm          .90594E-03    .12583        .31140E-06** at limit **
  32  Normalizat    .10000E-01    .25741        .36150E-06** at limit **
  33  Prefactor     .18784E-04    .25504       -.33298E-05    .41684E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.154962
  Prefactor  = 6.27682
  Prefactor  = 142.684
  Prefactor  = 0.00224153
  norm       = 0.00169543
  norm       = 0.000108086
  Prefactor  = 0.00110895
  Prefactor  = 0.00264722
  Prefactor  = 0.402847
  Prefactor  = 35.4455
  Prefactor  = 156.638
  Prefactor  = 0.0289612
  norm       = 1.06285
  Prefactor  = 9667.88
  norm       = 7169.56
  Prefactor  = 1.97065
  norm       = 9728.68
  Prefactor  = 8844.41
  Prefactor  = 36.9383
  Prefactor  = 150.574
  Prefactor  = 1577.03
  norm       = 9.43358
  Prefactor  = 4.14376
  Prefactor  = 9699.28
  Prefactor  = 7.19212
  Prefactor  = 1.46472
  norm       = 11.7184
  Prefactor  = 0.00183302
  Prefactor  = 66.3605
  Prefactor  = 2.29447
  norm       = 0.000905939
  Normalizat = 0.0100005
  Prefactor  = 1.87844e-05
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59.67448     FROM HESSE     STATUS=FAILED        33 CALLS      923 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15496        46.863        .97257E-02   -1.5787    
   2  Prefactor     6.2768        11.778        .41872E-02   -1.5207    
   3  Prefactor     142.68        139.70        .82175E-03   -1.3313    
   4  Prefactor     .22415E-02    27.165        .10613E-01   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .16954E-02    16.647        .94763E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10809E-03    20.564        .93166E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11089E-02    48.961        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26472E-02    324.34        .78617E-02   -1.5718    
   9  Prefactor     .40285        1026.2        .10280E-01   -1.5581    
  10  Prefactor     35.446        8576.6        .60810E-03   -1.4517    
  11  Prefactor     156.64        9456.3        .38175E-02   -1.3198    
  12  Prefactor     .28961E-01    870.94        .29089E-02   -1.5742    
  13  norm          586.88        585.47         .0000       -1.5502    
  14  Prefactor     9667.9        5.6597        .37426E-03    1.9373    
  15  norm          7169.6        1.0346       -.17022E-04    .44883    
  16  Prefactor     1.9707        .25715        .48676E-04   -1.5427    
  17  norm          9728.7        8.4674        .58973E-03    1.9017    
  18  Prefactor     8844.4        11.809       -.18639E-03   -4.0187    
  19  Prefactor     36.938        2.6899        .69321E-04   -1.4492    
  20  Prefactor     150.57        10.656        .11081E-03   -1.8168    
  21  Prefactor     1577.0        17.570        .51329E-04   -.75405    
  22  norm          9.4336        2.2583       -.30246E-05   -1.5094    
  23  Prefactor     4.1438        1.2408       -.12338E-05   -1.5301    
  24  Prefactor     9699.3        12.824        .78842E-03    1.9194    
  25  Prefactor     7.1921        1.0024         .0000       -1.5172    
  26  Prefactor     1.4647        1.0750         .0000       -1.5466    
  27  norm          11.718        1.4296       -.15120E-03   -1.5023    
  28  Prefactor     .18330E-02    .21476       -.50132E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     66.360        7.5182        .12157E-03   -1.7339    
  30  Prefactor     2.2945        .84575       -.10924E-04   -1.5405    
  31  norm          .90594E-03    .12583        .31140E-06   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25741        .36150E-06   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .18784E-04    .25504       -.33298E-05   -1.5681    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.39325e-09
Minuit parameter uncertainties:
  1  5.3921
  2  11.7826
  3  140.025
  4  0.482604
  5  0.326029
  6  0.0257992
  7  0.444883
  8  1.82785
  9  41.3902
  10  1273.61
  11  3442.66
  12  10.1788
  13  1.22236
  14  5.65975
  15  1.03463
  16  0.257145
  17  8.46744
  18  11.8091
  19  2.6899
  20  10.6564
  21  17.57
  22  2.25831
  23  1.24082
  24  12.8244
  25  1.00244
  26  1.075
  27  1.42963
  28  0.0385838
  29  7.51834
  30  0.845757
  31  0.0201406
  32  0.000684736
  33  0.00439642
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 59.674477448

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.000e-02  6.847e-04  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0200927821218

TS (Fixed Index): 0.32
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.70e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214348/likelihoodResults_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 50.5618083245
delta logL = 9.11266912347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 50.5590417836
delta logL = 9.11543566441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   50.55904     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       51 TOTAL
                     EDM=   .11E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .31279        .56140E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   50.55904     FROM HESSE     STATUS=OK             5 CALLS       56 TOTAL
                     EDM=   .11E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .31269        .12407E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05142e-17
Minuit parameter uncertainties:
  1  2.04868e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214348': 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) = 50.5590417836
delta logL = 9.11543566441

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 18.55
Ra Dec: 140.895 41.428
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.66e+02 +/- 1.96e-06
Energy Flux (Free Index): 5.21e+04 +/- 2.18e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/214348/cmap_HighResolution_635126401_635385601_4FGL_J0923.5+4125_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.70e+04', comment='SUCCESS', energy_flux2='5.21e+04', dlogl='9.12e+00', photon_flux2='4.66e+02', job_status='DONE', time_completed='2021-08-31 11:15:28.686165', photon_index_error2='0.00', photon_index2='10.00', ts='0.32', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.18e-04', EG='0.01', time_epoch_completed='1630433728.69', return_code='101', job_id='214348', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='1.96e-06', ts2='18.55', photon_index='2.36' WHERE bin_id='1527' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:15:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 214348: <4FGL_J0923.5+4125_daily_bin1527> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1527> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 11:06:06 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:06:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 11:06:09 2021
Terminated at Tue Aug 31 11:15:29 2021
Results reported at Tue Aug 31 11:15:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1527 140.895 41.4283 635126401 635385601 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 :                                   331.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            563 sec.

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

