/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7641
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1288
RA = 140.895, Dec = 41.4283
tmin = 573177601, tmax = 573436801
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='212645', job_status='RUN', time_executed='2021-08-31 11:02:09.998099', time_epoch_executed='1630432930.0' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212645/ft1_4FGL_J0923.5+4125_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212645/ft1_4FGL_J0923.5+4125_daily_bin1288.fits outfile=/scratch/kocevski/212645/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1288.fits ra=140.895 dec=41.4283 rad=12.0 tmin=573177601.0 tmax=573436801.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 6.16
user 5.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.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/212645/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/212645/ft1_filtered_4FGL_J0923.5+4125_daily_bin1288.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.79
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212645/ft1_filtered_4FGL_J0923.5+4125_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/212645/ltcube_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.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/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.fits
.....................!
real 11.75
user 11.06
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212645/ft1_filtered_4FGL_J0923.5+4125_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/212645/ltcube_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.fits outfile=/scratch/kocevski/212645/expmap_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.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/212645/ltcube_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.fits
.....................!
real 192.27
user 185.21
sys 4.01

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/212645/ft1_filtered_4FGL_J0923.5+4125_daily_bin1288.fits scfile=/scratch/kocevski/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.fits outfile=/scratch/kocevski/212645/cmap_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212645/ft1_filtered_4FGL_J0923.5+4125_daily_bin1288.fits scfile=/scratch/kocevski/212645/ft2_4FGL_J0923.5+4125_daily_bin1288.fits outfile=/scratch/kocevski/212645/cmap_HighResolution_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.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.53
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.5271       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3412       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.346       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65083       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .94519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51193       1.0000         .10000E-03   10000.    
    17 'norm      '    20.897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.6832       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3173       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.9926       1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.061       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1165       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .55817       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=   4755.436     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4573 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7471       -.10370E-05** at limit **
   2  Prefactor     3.5380        3.3849        .10624E-06    .11490E-04
   3  Prefactor     41.485        29.995        .58276E-06    .56196E-04
   4  Prefactor     .10000E-03    5.9350        .58499E-06** at limit **
   5  norm          7.5273        5.3130        .21603E-07   -.73464E-04
   6  norm          3.3420        3.5714       -.46324E-08   -.10768E-04
   7  Prefactor     4.0876        2.8732       -.21892E-06   -.45204E-03
   8  Prefactor     33.345        25.615       -.20066E-07   -.12315E-03
   9  Prefactor     .10001E-03    27.979        .86521E-05** at limit **
  10  Prefactor     .65004        3.3922        .40567E-07   -.39274E-03
  11  Prefactor     .10000E-03    18.085       -.35954E-05** at limit **
  12  Prefactor     .10000E-03    2.3272        .99470E-07** at limit **
  13  norm          .94423        2.6546        .27095E-06   -.18527E-03
  14  Prefactor     .10000E-03    22.158       -.38644E-05** at limit **
  15  norm          .10000E-03    .19725        .16059E-07** at limit **
  16  Prefactor     .51290        2.6291        .97206E-06   -.27321E-03
  17  norm          20.897        11.554        .67912E-07    .12420E-03
  18  Prefactor     .10000E-03    1.3274       -.93971E-07** at limit **
  19  Prefactor     .10000E-03    2.4143        .10804E-06** at limit **
  20  Prefactor     .10010E-03    2.4577        .13261E-05** at limit **
  21  Prefactor     .10000E-03    4.4263        .79703E-06** at limit **
  22  norm          .10000E-03    10.306       -.24310E-05** at limit **
  23  Prefactor     .10000E-03    16.603       -.59796E-06** at limit **
  24  Prefactor     .10000E-03    2.3091        .11833E-06** at limit **
  25  Prefactor     .10000E-03    49.086       -.45431E-05** at limit **
  26  Prefactor     .10000E-03    3.7247       -.43418E-06** at limit **
  27  norm          7.6926        16.347       -.18353E-06   -.12145E-04
  28  Prefactor     6.3216        5.6386        .11632E-05   -.16704E-02
  29  Prefactor     7.9946        6.6004        .74197E-07    .27080E-04
  30  Prefactor     19.065        21.462        .10584E-05    .11294E-03
  31  norm          .10000E-03    4.6162       -.52817E-06** at limit **
  32  Normalizat    1.1159        .19175       -.66064E-06   -.84183E-04
  33  Prefactor     .55874        .18764        .23744E-06   -.62007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.53804
  Prefactor  = 41.4847
  Prefactor  = 0.0001
  norm       = 7.52734
  norm       = 3.34198
  Prefactor  = 4.08763
  Prefactor  = 33.345
  Prefactor  = 0.000100013
  Prefactor  = 0.650039
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.944233
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.512895
  norm       = 20.8974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100098
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.69256
  Prefactor  = 6.32155
  Prefactor  = 7.99464
  Prefactor  = 19.0648
  norm       = 0.0001
  Normalizat = 1.1159
  Prefactor  = 0.558738
 **********
 **   18 **HESSE 
 **********

 FCN=   4755.436     FROM HESSE     STATUS=OK           687 CALLS     5260 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7674        .14698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5380        3.3779        .11895E-03   -1.5332    
   3  Prefactor     41.485        29.959        .62238E-04   -1.4419    
   4  Prefactor     .10000E-03    5.9696        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5273        5.3095        .12827E-03   -1.5159    
   6  norm          3.3420        3.5724        .13072E-03   -1.5342    
   7  Prefactor     4.0876        2.8663        .92196E-04   -1.5304    
   8  Prefactor     33.345        25.627        .69393E-04   -1.4552    
   9  Prefactor     .10001E-03    29.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65004        3.5360        .24891E-03   -1.5547    
  11  Prefactor     .10000E-03    18.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3825        .20504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .94423        2.6029        .18290E-03   -1.5514    
  14  Prefactor     .10000E-03    22.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .19721        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .51290        2.7481        .20575E-03   -1.5565    
  17  norm          20.897        11.589        .87619E-04   -1.4793    
  18  Prefactor     .10000E-03    1.3546        .77440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4165        .10464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10010E-03    12.853        .19648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4359        .14181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3145        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    49.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.7311        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.6926        16.619        .14467E-03   -1.5153    
  28  Prefactor     6.3216        7.7804        .79850E-03   -1.5205    
  29  Prefactor     7.9946        6.6214        .14182E-03   -1.5142    
  30  Prefactor     19.065        21.507        .91739E-04   -1.4834    
  31  norm          .10000E-03    4.6304        .14478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1159        .22367        .21075E-03   -.89243    
  33  Prefactor     .55874        .21519        .30413E-03   -1.0935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13656e-08
Minuit parameter uncertainties:
  1  6.03932e-05
  2  3.37809
  3  29.9702
  4  3.14729e-05
  5  5.30979
  6  3.57262
  7  2.86638
  8  25.6357
  9  0.00120533
  10  3.03224
  11  0.000397467
  12  2.29055e-06
  13  2.60318
  14  0.000467004
  15  3.83823e-08
  16  2.37436
  17  11.5907
  18  4.29958e-06
  19  2.33279e-06
  20  0.00223938
  21  4.05012e-05
  22  0.000203065
  23  6.83271e-05
  24  1.00085e-06
  25  0.000833573
  26  2.19282e-05
  27  16.6287
  28  7.78166
  29  6.62204
  30  21.5157
  31  3.13989e-05
  32  0.223865
  33  0.215503
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.300e-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.587e-01  2.155e-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.116e+00  2.239e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212645/likelihoodResults_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.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) = 4755.43961914
delta logL = -0.00349463061411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4755.43612474
delta logL = -2.24629729928e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3543       1.0000          .0000       10.000    
     3 'Normalizat'    1.1160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55875       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=   4755.436     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    287.12        .77447E-03** at limit **
   2  Index         2.3377        8.4336        .50000        .34205E-05
   3  Normalizat    1.1159        .11803        .21075E-03    .18179E-04
   4  Prefactor     .55874        .11725        .30413E-03    .32820E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4755.436     FROM SIMPLEX   STATUS=UNCHANGED    170 CALLS      408 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    287.12        .21859E-03** at limit **
   2  Index         2.3377        8.4336        .38263E-05    .34205E-05
   3  Normalizat    1.1159        .11803        .88595E-06    .18179E-04
   4  Prefactor     .55874        .11725        .34719E-06    .32820E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4755.436     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      456 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5303        .15489E-03** at limit **
   2  Index         2.3179        6.0735        .50000       -.59026E-07
   3  Normalizat    1.1159        .19591        .84301E-05   -.25353E-04
   4  Prefactor     .55874        .20654        .12165E-04   -.17943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31785
  Normalizat = 1.1159
  Prefactor  = 0.558738
 **********
 **   18 **HESSE 
 **********

 FCN=   4755.436     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3623        .30979E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3179        7.5571        .50000       -.56620    
   3  Normalizat    1.1159        .19601        .16860E-05   -.89243    
   4  Prefactor     .55874        .20667        .24331E-05   -1.0935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87613e-12
Minuit parameter uncertainties:
  1  6.14524e-07
  2  128.034
  3  0.19614
  4  0.206954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212645': 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) = 4755.43612448
delta logL = 2.90492607746e-08

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.145e-07  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.318e+00  1.280e+02  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.587e-01  2.070e-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.116e+00  1.961e-01  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/212645/cmap_HighResolution_573177601_573436801_4FGL_J0923.5+4125_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-08-31 11:16:54.934211', job_id='212645', GAL2='0.56', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630433814.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1288' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:16:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 212645: <4FGL_J0923.5+4125_daily_bin1288> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1288> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 11:00:40 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:00:41 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:00:41 2021
Terminated at Tue Aug 31 11:16:55 2021
Results reported at Tue Aug 31 11:16:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1288 140.895 41.4283 573177601 573436801 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 :                                   864.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

