/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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


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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin957
RA = 135.175, Dec = -12.7201
tmin = 487382401, tmax = 487641601
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='931647', job_status='RUN', time_executed='2021-08-30 20:42:47.977153', time_epoch_executed='1630381367.98' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931647/ft1_4FGL_J0900.7-1243_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931647/ft1_4FGL_J0900.7-1243_daily_bin957.fits outfile=/scratch/kocevski/931647/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin957.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=487382401.0 tmax=487641601.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.91
user 3.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.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/931647/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin957.fits evtable="EVENTS" outfile="/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits" evtable="EVENTS" scfile=/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits sctable="SC_DATA" outfile=/scratch/kocevski/931647/ltcube_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.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/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/931647/ltcube_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.fits outfile=/scratch/kocevski/931647/expmap_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.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/931647/ltcube_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.fits
.....................!
real 190.12
user 185.19
sys 4.51

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0900.7-1243 @ 135.175 -12.7201

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits scfile=/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits outfile=/scratch/kocevski/931647/cmap_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.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=135.175 yref=-12.7201 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits scfile=/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits outfile=/scratch/kocevski/931647/cmap_HighResolution_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.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=135.175 yref=-12.7201 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931647/Model_4FGL_J0900.7-1243_daily_bin957.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/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits.....................!
real 80.38
user 78.32
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits', '/scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits', expMap='/scratch/kocevski/931647/expmap_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.fits', expCube='/scratch/kocevski/931647/ltcube_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/931647/Model_4FGL_J0900.7-1243_daily_bin957.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0900.7-1243'

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  2.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.278e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/931647/ft1_filtered_4FGL_J0900.7-1243_daily_bin957.fits
Spacecraft file(s): /scratch/kocevski/931647/ft2_4FGL_J0900.7-1243_daily_bin957.fits
Exposure map: /scratch/kocevski/931647/expmap_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.fits
Exposure cube: /scratch/kocevski/931647/ltcube_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/931647/Model_4FGL_J0900.7-1243_daily_bin957.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) = 7434.44292573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.869       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3225       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.400       1.0000         .10000E-03   10000.    
     7 'norm      '    .40658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.348       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.083       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81414       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95999       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7434.418     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1879 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7102        7.5354        .13546E-06   -.60315E-05
   2  Prefactor     .10000E-03    .93239        .15793E-07** at limit **
   3  norm          26.868        18.231        .52616E-07   -.15917E-04
   4  norm          2.3220        4.3717        .37665E-05   -.72791E-04
   5  Prefactor     .10000E-03    8.4379        .59961E-07** at limit **
   6  norm          12.400        7.4594        .10633E-06   -.10112E-04
   7  norm          .40732        1.7663       -.20136E-06   -.62832E-03
   8  Prefactor     1.5559        4.6600        .28825E-06   -.42232E-04
   9  Prefactor     10.262        12.195        .45576E-06    .27367E-04
  10  Prefactor     .10000E-03    1.8307        .19307E-07** at limit **
  11  norm          .10000E-03    1.7000        .49477E-07** at limit **
  12  Prefactor     19.789        17.674        .89691E-07   -.85342E-04
  13  Prefactor     23.608        30.235        .12282E-05   -.27096E-04
  14  Prefactor     .10000E-03    48.737        .38404E-06** at limit **
  15  Prefactor     29.354        27.508       -.80347E-08   -.39963E-04
  16  Prefactor     .10000E-03    77.804        .10710E-05** at limit **
  17  Prefactor     38.088        17.281        .67890E-08   -.75356E-04
  18  norm          .10000E-03    4.4316        .31599E-06** at limit **
  19  norm          .10000E-03    1.2091        .90072E-07** at limit **
  20  Normalizat    .81398        .17634       -.48309E-06   -.67314E-04
  21  Prefactor     .96010        .10082       -.55502E-06   -.15757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71016
  Prefactor  = 0.0001
  norm       = 26.8681
  norm       = 2.32204
  Prefactor  = 0.0001
  norm       = 12.3995
  norm       = 0.407316
  Prefactor  = 1.5559
  Prefactor  = 10.2615
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7893
  Prefactor  = 23.6081
  Prefactor  = 0.0001
  Prefactor  = 29.3539
  Prefactor  = 0.000100002
  Prefactor  = 38.0885
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.813984
  Prefactor  = 0.9601
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.418     FROM HESSE     STATUS=OK           317 CALLS     2196 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7102        7.5320        .14441E-03   -1.5153    
   2  Prefactor     .10000E-03    .93417        .81305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.868        18.226        .77285E-04   -1.4671    
   4  norm          2.3220        4.3739        .11844E-02   -1.5403    
   5  Prefactor     .10000E-03    8.4488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.400        7.4404        .11376E-03   -1.5004    
   7  norm          .40732        1.6814        .21930E-03   -1.5580    
   8  Prefactor     1.5559        4.6403        .29981E-03   -1.5458    
   9  Prefactor     10.262        12.156        .12507E-03   -1.5067    
  10  Prefactor     .10000E-03    1.8330        .11393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7041        .10979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.789        17.735        .90046E-04   -1.4818    
  13  Prefactor     23.608        30.212        .82392E-04   -1.4736    
  14  Prefactor     .10000E-03    48.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.354        27.599        .73956E-04   -1.4624    
  16  Prefactor     .10000E-03    79.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.088        17.291        .64947E-04   -1.4473    
  18  norm          .10000E-03    4.4785        .17739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2136        .92617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81398        .20382        .31315E-03   -.99552    
  21  Prefactor     .96010        .11672        .17201E-03   -.94072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60313e-10
Minuit parameter uncertainties:
  1  7.53294
  2  1.93668e-06
  3  18.2297
  4  4.37447
  5  1.10462e-05
  6  7.44093
  7  1.65502
  8  4.64132
  9  12.1585
  10  1.29883e-06
  11  4.6949e-06
  12  17.7393
  13  30.2319
  14  0.000110993
  15  27.611
  16  0.000746937
  17  17.2929
  18  4.97032e-05
  19  7.73325e-06
  20  0.204016
  21  0.116747
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.026e+01  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.278e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.601e-01  1.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  8.140e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 135.175 -12.720
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931647/likelihoodResults_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7433.40115397
delta logL = 1.01665201158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7433.38768779
delta logL = 1.03011819425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37842       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2500       1.0000          .0000       10.000    
     3 'Normalizat'    .74513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7433.388     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      315 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37805        3.4661        .76518E-02    .13515E-02
   2  Index         4.2510        2.0056        .10673        .20144E-03
   3  Normalizat    .74504        .45065E-01    .73626E-01    .36371E-04
   4  Prefactor     .98799        .26773E-01    .46116E-01   -.64538E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.378049
  Index      = 4.25103
  Normalizat = 0.74504
  Prefactor  = 0.98799
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.388     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      350 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37805        8.3512        .34981E-03   -1.5585    
   2  Index         4.2510        3.5883        .39234E-02   -.15036    
   3  Normalizat    .74504        .15842        .32587E-03   -1.0214    
   4  Prefactor     .98799        .93391E-01    .16981E-03   -.93131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19091e-07
Minuit parameter uncertainties:
  1  3.55378
  2  4.01554
  3  0.158521
  4  0.0934067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931647': 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) = 7433.38768548
delta logL = 1.0301205068

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  3.780e-01  3.554e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  4.251e+00  4.016e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.880e-01  9.341e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  7.450e-01  1.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 4.25 +/- 4.02
Photon Flux (Free Index): 7.78e-08 +/- 5.10e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/931647/cmap_HighResolution_487382401_487641601_4FGL_J0900.7-1243_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.03e+00', photon_flux2='7.78e-08', job_status='DONE', time_completed='2021-08-30 20:53:23.464940', photon_index_error2='4.02', photon_index2='4.25', ts='0.94', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.04e-05', EG='0.81', time_epoch_completed='1630382003.47', return_code='0', job_id='931647', GAL2='0.99', EG2='0.75', return_code2='102', photon_flux_error2='5.10e-08', ts2='3.18', photon_index='2.28' WHERE bin_id='957' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 931647: <4FGL_J0900.7-1243_daily_bin957> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin957> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 30 20:40:51 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:40:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 20:40:52 2021
Terminated at Mon Aug 30 20:53:24 2021
Results reported at Mon Aug 30 20:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin957 135.175 -12.7201 487382401 487641601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0900.7-1243 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

