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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1508
RA = 140.895, Dec = 41.4283
tmin = 630201601, tmax = 630460801
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='214310', job_status='RUN', time_executed='2021-08-31 11:08:36.358838', time_epoch_executed='1630433316.36' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214310

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214310/ft1_4FGL_J0923.5+4125_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214310/ft2_4FGL_J0923.5+4125_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214310/ft1_4FGL_J0923.5+4125_daily_bin1508.fits outfile=/scratch/kocevski/214310/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1508.fits ra=140.895 dec=41.4283 rad=12.0 tmin=630201601.0 tmax=630460801.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 2.95
user 2.56
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214310/ft2_4FGL_J0923.5+4125_daily_bin1508.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/214310/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/214310/ft1_filtered_4FGL_J0923.5+4125_daily_bin1508.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.52
user 0.28
sys 0.10

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214310/ft1_filtered_4FGL_J0923.5+4125_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/214310/ft2_4FGL_J0923.5+4125_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/214310/ltcube_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.fits outfile=/scratch/kocevski/214310/expmap_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.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/214310/ltcube_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.fits
.....................!
real 142.94
user 139.56
sys 2.96

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/214310/ft1_filtered_4FGL_J0923.5+4125_daily_bin1508.fits scfile=/scratch/kocevski/214310/ft2_4FGL_J0923.5+4125_daily_bin1508.fits outfile=/scratch/kocevski/214310/cmap_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.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.49
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214310/ft1_filtered_4FGL_J0923.5+4125_daily_bin1508.fits scfile=/scratch/kocevski/214310/ft2_4FGL_J0923.5+4125_daily_bin1508.fits outfile=/scratch/kocevski/214310/cmap_HighResolution_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.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.45
user 0.32
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.430       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5226       1.0000         .10000E-03   10000.    
    17 'norm      '    .52102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.837       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0580       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.871       1.0000         .10000E-03   10000.    
    27 'norm      '    11.593       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.3958       1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.251       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    12.666       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .76018       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92523       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=   2245.193     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     4558 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.131       -.36200E-07** at limit **
   2  Prefactor     8.8038        6.2036        .11491E-06    .73768E-05
   3  Prefactor     .10000E-03    20.836        .11344E-06** at limit **
   4  Prefactor     .10000E-03    13.772       -.26342E-06** at limit **
   5  norm          16.428        12.370        .16817E-06   -.20792E-05
   6  norm          .10000E-03    5.6886       -.86439E-07** at limit **
   7  Prefactor     2.1077        4.0887        .27092E-06    .11243E-04
   8  Prefactor     .10000E-03    60.825       -.13372E-05** at limit **
   9  Prefactor     .10000E-03    50.422        .68653E-06** at limit **
  10  Prefactor     10.388        7.5787        .23713E-06   -.79215E-04
  11  Prefactor     4.9521        144.88        .39004E-05    .48717E-04
  12  Prefactor     .10000E-03    1.4526        .21609E-06** at limit **
  13  norm          .10000E-03    1.7502       -.31405E-07** at limit **
  14  Prefactor     .10000E-03    21.867        .25976E-05** at limit **
  15  norm          .10000E-03    .71901       -.51171E-07** at limit **
  16  Prefactor     8.5325        5.2568        .18423E-06   -.42860E-04
  17  norm          .10003E-03    12.431        .35279E-05** at limit **
  18  Prefactor     .10000E-03    1.9698        .33437E-06** at limit **
  19  Prefactor     .10000E-03    21.996       -.44335E-06** at limit **
  20  Prefactor     7.6844        10.827        .28040E-05    .22364E-04
  21  Prefactor     .10000E-03    21.914       -.17548E-06** at limit **
  22  norm          17.654        29.694       -.92789E-06   -.51079E-04
  23  Prefactor     15.883        50.832        .41467E-05    .11434E-03
  24  Prefactor     7.0594        16.018       -.39347E-05   -.52987E-04
  25  Prefactor     .10000E-03    27.817        .96601E-06** at limit **
  26  Prefactor     18.874        18.493        .59601E-06   -.21000E-04
  27  norm          11.593        19.326       -.86163E-06   -.27078E-04
  28  Prefactor     5.3992        13.279        .83568E-05    .63653E-04
  29  Prefactor     14.252        9.2996        .35610E-06   -.41982E-04
  30  Prefactor     .10000E-03    31.246        .70006E-07** at limit **
  31  norm          12.666        18.014        .97758E-06   -.10273E-04
  32  Normalizat    .75995        .29030       -.96457E-05   -.87556E-04
  33  Prefactor     .92564        .30690        .60657E-05   -.22160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.8038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4279
  norm       = 0.0001
  Prefactor  = 2.10771
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.3882
  Prefactor  = 4.95205
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.53252
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68443
  Prefactor  = 0.0001
  norm       = 17.6544
  Prefactor  = 15.8832
  Prefactor  = 7.05939
  Prefactor  = 0.0001
  Prefactor  = 18.8739
  norm       = 11.5931
  Prefactor  = 5.39923
  Prefactor  = 14.252
  Prefactor  = 0.0001
  norm       = 12.6656
  Normalizat = 0.759948
  Prefactor  = 0.925639
 **********
 **   18 **HESSE 
 **********

 FCN=   2245.193     FROM HESSE     STATUS=OK           695 CALLS     5253 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.135        .14731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8038        6.2061        .95677E-04   -1.5114    
   3  Prefactor     .10000E-03    20.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.828        .17173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.428        12.359        .98810E-04   -1.4897    
   6  norm          .10000E-03    5.7025        .11037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1077        4.0621        .12637E-03   -1.5418    
   8  Prefactor     .10000E-03    61.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.388        7.5818        .10663E-03   -1.5063    
  11  Prefactor     4.9521        141.90        .18159E-03   -1.5263    
  12  Prefactor     .10000E-03    1.4545        .55775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7523        .61219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .99691        .68308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5325        4.6148        .71283E-04   -1.5124    
  17  norm          .10003E-03    27.153        .30932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0292        .12982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6844        10.841        .72318E-03   -1.5153    
  21  Prefactor     .10000E-03    21.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.654        29.689        .95297E-04   -1.4867    
  23  Prefactor     15.883        50.954        .10064E-03   -1.4911    
  24  Prefactor     7.0594        16.081        .15100E-03   -1.5177    
  25  Prefactor     .10000E-03    27.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.874        18.497        .92199E-04   -1.4839    
  27  norm          11.593        19.322        .11766E-03   -1.5027    
  28  Prefactor     5.3992        13.431        .86499E-03   -1.5243    
  29  Prefactor     14.252        9.3132        .10610E-03   -1.4953    
  30  Prefactor     .10000E-03    31.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          12.666        18.028        .11255E-03   -1.4996    
  32  Normalizat    .75995        .31671        .25208E-03   -1.0157    
  33  Prefactor     .92564        .33736        .26660E-03   -.95251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79701e-09
Minuit parameter uncertainties:
  1  5.9382e-06
  2  6.20653
  3  0.000109604
  4  8.08119e-06
  5  12.3611
  6  2.9805e-06
  7  4.06262
  8  0.000327748
  9  0.000573153
  10  7.58249
  11  53.1564
  12  2.26345e-06
  13  1.21083e-06
  14  4.78751e-05
  15  2.82528e-06
  16  4.61497
  17  0.00169424
  18  6.40954e-08
  19  4.33302e-05
  20  10.844
  21  1.81343e-05
  22  29.714
  23  51.0945
  24  16.0911
  25  0.000149196
  26  18.5028
  27  19.3324
  28  13.439
  29  9.3141
  30  1.38271e-05
  31  18.0356
  32  0.317482
  33  0.33813
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
667   Normalization:  7.599e-01  3.175e-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: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214310/likelihoodResults_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.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) = 2245.19538327
delta logL = -0.00230149344316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2245.19308306
delta logL = -1.27520706883e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10869E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3260       1.0000          .0000       10.000    
     3 'Normalizat'    .75988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92577       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=   2245.193     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.376        .13464E-02** at limit **
   2  Index         1.8583        5.5162        .50000        .81779E-06
   3  Normalizat    .75994        .31171E-01    .25209E-03   -.29381E-03
   4  Prefactor     .92564        .36298E-01    .26659E-03   -.27325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85828
  Normalizat = 0.759944
  Prefactor  = 0.925643
 **********
 **   18 **HESSE 
 **********

 FCN=   2245.193     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    275.27        .26928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8583        7.0102        .50000       -.67942    
   3  Normalizat    .75994        .71149E-01    .50419E-04   -1.0157    
   4  Prefactor     .92564        .82847E-01    .53319E-04   -.95251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63042e-08
Minuit parameter uncertainties:
  1  6.28543e-05
  2  656.539
  3  0.0711577
  4  0.0828586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214310': 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) = 2245.19307438
delta logL = 7.40398809285e-06

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.285e-05  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.858e+00  6.565e+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:  9.256e-01  8.286e-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:  7.599e-01  7.116e-02  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/214310/cmap_HighResolution_630201601_630460801_4FGL_J0923.5+4125_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-08-31 11:16:10.554570', job_id='214310', GAL2='0.93', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630433770.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1508' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:16:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 214310: <4FGL_J0923.5+4125_daily_bin1508> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1508> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 11:06:01 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:06:02 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:02 2021
Terminated at Tue Aug 31 11:16:11 2021
Results reported at Tue Aug 31 11:16:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1508 140.895 41.4283 630201601 630460801 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 :                                   441.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            610 sec.

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

