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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1526
RA = 140.895, Dec = 41.4283
tmin = 634867201, tmax = 635126401
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='214347', job_status='RUN', time_executed='2021-08-31 11:09:57.200912', time_epoch_executed='1630433397.2' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214347/ft1_4FGL_J0923.5+4125_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214347/ft2_4FGL_J0923.5+4125_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214347/ft1_4FGL_J0923.5+4125_daily_bin1526.fits outfile=/scratch/kocevski/214347/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1526.fits ra=140.895 dec=41.4283 rad=12.0 tmin=634867201.0 tmax=635126401.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.38
user 2.78
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214347/ft1_filtered_4FGL_J0923.5+4125_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/214347/ft2_4FGL_J0923.5+4125_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/214347/ltcube_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.fits outfile=/scratch/kocevski/214347/expmap_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.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/214347/ltcube_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.fits
.....................!
real 190.41
user 184.96
sys 4.88

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/214347/ft1_filtered_4FGL_J0923.5+4125_daily_bin1526.fits scfile=/scratch/kocevski/214347/ft2_4FGL_J0923.5+4125_daily_bin1526.fits outfile=/scratch/kocevski/214347/cmap_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.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.63
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214347/ft1_filtered_4FGL_J0923.5+4125_daily_bin1526.fits scfile=/scratch/kocevski/214347/ft2_4FGL_J0923.5+4125_daily_bin1526.fits outfile=/scratch/kocevski/214347/cmap_HighResolution_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=140.895 yref=41.4283 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12627E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    189.92       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14421E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20731E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .24732E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.204       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17387E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43101E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48814E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1128       1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11167E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15452E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .40739E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31693E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45811       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0945       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9556       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38703E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2177       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
    27 'norm      '    7.4096       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2381       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1622       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.9033       1.0000         .10000E-03   10000.    
    31 'norm      '    9.6659       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .52316       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=   137.6778     FROM MIGRAD    STATUS=CONVERGED    470 CALLS      837 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.789        .27992E-06** at limit **
   2  Prefactor     .10000E-03    8.0362       -.44121E-07** at limit **
   3  Prefactor     183.66        137.44        .61186E-06   -.99562E-04
   4  Prefactor     .10000E-03    47.561       -.19940E-05** at limit **
   5  norm          .10000E-03    8.1728       -.41656E-07** at limit **
   6  norm          .10000E-03    13.766       -.36525E-06** at limit **
   7  Prefactor     .10000E-03    25.048       -.12004E-05** at limit **
   8  Prefactor     .10016E-03    1520.4       -.40347E-05** at limit **
   9  Prefactor     .10000E-03    153.21       -.14664E-05** at limit **
  10  Prefactor     .10001E-03    285.04       -.49902E-05** at limit **
  11  Prefactor     .10000E-03    1671.2        .19439E-05** at limit **
  12  Prefactor     .10000E-03    49.332        .46902E-06** at limit **
  13  norm          1.0628        5670.7         .0000         .0000    
  14  Prefactor     .10000E-03    620.29       -.33862E-05** at limit **
  15  norm          .10000E-03    6.7810        .19588E-07** at limit **
  16  Prefactor     .10000E-03    40.783        .56867E-06** at limit **
  17  norm          .10013E-03    6652.1       -.92234E-04** at limit **
  18  Prefactor     .10000E-03    124.85        .92812E-06** at limit **
  19  Prefactor     .10000E-03    69.225        .99220E-07** at limit **
  20  Prefactor     .10000E-03    41.577        .73904E-06** at limit **
  21  Prefactor     .10000E-03    436.33       -.12991E-05** at limit **
  22  norm         10000.0        8112.4        .32972E-04** at limit **
  23  Prefactor    10000.0        9815.7       -.83869E-04** at limit **
  24  Prefactor     .10000E-03    139.76        .20897E-05** at limit **
  25  Prefactor    10000.0        9999.6       -.79337E-03** at limit **
  26  Prefactor     1.4647        5664.4         .0000         .0000    
  27  norm         10000.0        8419.4        .46859E-04** at limit **
  28  Prefactor     .10002E-03    7483.9        .88590E-04** at limit **
  29  Prefactor     1.1622        5669.0         .0000         .0000    
  30  Prefactor    10000.0        8090.7        .39964E-03** at limit **
  31  norm          .10032E-03    9599.8        .11766E-03** at limit **
  32  Normalizat    .10000E-01    .22024        .18000E-05** at limit **
  33  Prefactor     .50631        .33422       -.11802E-04   -.73493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 183.661
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100162
  Prefactor  = 0.000100003
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.06285
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 10000
  Prefactor  = 1.46472
  norm       = 10000
  Prefactor  = 0.000100017
  Prefactor  = 1.16222
  Prefactor  = 10000
  norm       = 0.000100324
  Normalizat = 0.01
  Prefactor  = 0.506314
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   137.6778     FROM HESSE     STATUS=FAILED        57 CALLS      894 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.826        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     183.66        128.30        .73262E-03   -1.2989    
   4  Prefactor     .10000E-03    42.479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.4955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10016E-03    1488.5        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    145.93        .10175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    281.06        .10615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1704.0        .51632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.493        .96176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          586.88        585.47         .0000       -1.5502    
  14  Prefactor     .10000E-03    .82528E-01   -.33862E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571        .19588E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571        .56867E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10013E-03    .97576E-01   -.92234E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .26130        .92812E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .23696        .99220E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .24423        .73904E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .30794       -.12991E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        .12710        .32972E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        .87183E-01   -.83869E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .23851        .20897E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        .34831E-01   -.79337E-03   -4.7122    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4647        1.0750         .0000       -1.5466    
  27  norm         10000.0        .33920E-01    .46859E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    .25412        .88590E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.1622        1.1510         .0000       -1.5492    
  30  Prefactor    10000.0        .42683E-01    .39964E-03    39.270    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10032E-03    .25959E-01    .11766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25505        .18000E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .50631        .85369       -.11802E-04   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.01676e-10
Minuit parameter uncertainties:
  1  8.33599e-05
  2  5.74332e-06
  3  128.494
  4  0.000751046
  5  2.78548e-05
  6  1.58797e-05
  7  0.000327337
  8  0.0319242
  9  0.00125732
  10  0.00315701
  11  0.0045733
  12  2.57723e-05
  13  1.22236
  14  1.04046e-05
  15  2.29367e-07
  16  1.11837e-07
  17  0.000223949
  18  7.33816e-06
  19  9.76339e-06
  20  3.03855e-06
  21  2.88329e-05
  22  0.000847547
  23  0.000404199
  24  4.37008e-05
  25  0.00339728
  26  1.075
  27  0.000120915
  28  0.0001321
  29  1.15107
  30  0.000500055
  31  0.000183389
  32  2.14479e-06
  33  0.876878
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  7.338e-06  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:  5.063e-01  8.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.000e-02  2.145e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 9.68e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214347/likelihoodResults_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.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) = 137.677807865
delta logL = -4.00404443042e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 137.677768213
delta logL = -3.88321467426e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9337       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50640       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=   137.6778     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      261 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10762E-03    180.67        .96389E-02** at limit **
   2  Index         2.7870        5.9951        .50000        .32024E-05
   3  Normalizat    .10000E-01    .91426E-03    .16222E-02** at limit **
   4  Prefactor     .50632        .19799E-01    .15396E-03    .24117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107621
  Index      = 2.78696
  Normalizat = 0.01
  Prefactor  = 0.506318
 **********
 **   18 **HESSE 
 **********

 FCN=   137.6778     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10762E-03    1430.5        .10292E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7870        7.7070        .50000       -.45851    
   3  Normalizat    .10000E-01    .78228E-02    .32445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .50632        .57915E-01    .30792E-04   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.40383e-09
Minuit parameter uncertainties:
  1  0.214148
  2  1789.93
  3  4.01856e-07
  4  0.0579215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214347': 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): 102
logL (Free Index) = 137.677768073
delta logL = -2.48385674695e-07

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.076e-04  2.141e-01  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.787e+00  1.790e+03  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.063e-01  5.792e-02  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  4.019e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.895 41.428

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/214347/cmap_HighResolution_634867201_635126401_4FGL_J0923.5+4125_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-01', job_status='DONE', photon_flux_upper_limit='9.68e-06', time_completed='2021-08-31 11:15:34.105083', job_id='214347', GAL2='0.51', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630433734.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.51', dlogl='-2.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1526' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 214347: <4FGL_J0923.5+4125_daily_bin1526> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1526> 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) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:06:07 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:07 2021
Terminated at Tue Aug 31 11:15:36 2021
Results reported at Tue Aug 31 11:15:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1526 140.895 41.4283 634867201 635126401 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 :                                   329.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             159.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            570 sec.

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

