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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin616
RA = 135.175, Dec = -12.7201
tmin = 398995201, tmax = 399254401
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='929928', job_status='RUN', time_executed='2021-08-30 20:38:01.979344', time_epoch_executed='1630381081.98' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929928/ft1_4FGL_J0900.7-1243_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929928/ft1_4FGL_J0900.7-1243_daily_bin616.fits outfile=/scratch/kocevski/929928/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin616.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.42
user 5.11
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.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/929928/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.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.54
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/929928/ltcube_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.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/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits
.....................!
real 12.25
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/929928/ltcube_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.fits outfile=/scratch/kocevski/929928/expmap_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.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/929928/ltcube_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.fits
.....................!
real 190.45
user 185.36
sys 4.72

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/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits scfile=/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits outfile=/scratch/kocevski/929928/cmap_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.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.59
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits scfile=/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits outfile=/scratch/kocevski/929928/cmap_HighResolution_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.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.63
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929928/Model_4FGL_J0900.7-1243_daily_bin616.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/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits.....................!
real 78.61
user 76.17
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits', '/scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits', expMap='/scratch/kocevski/929928/expmap_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.fits', expCube='/scratch/kocevski/929928/ltcube_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929928/Model_4FGL_J0900.7-1243_daily_bin616.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/929928/ft1_filtered_4FGL_J0900.7-1243_daily_bin616.fits
Spacecraft file(s): /scratch/kocevski/929928/ft2_4FGL_J0900.7-1243_daily_bin616.fits
Exposure map: /scratch/kocevski/929928/expmap_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.fits
Exposure cube: /scratch/kocevski/929928/ltcube_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929928/Model_4FGL_J0900.7-1243_daily_bin616.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) = 7201.52169324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.178       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15095       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .36468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.143       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4494       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1582       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64028       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7201.496     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     1897 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1211        .62141E-07** at limit **
   2  Prefactor     .10000E-03    3.8983       -.79622E-06** at limit **
   3  norm          13.180        1.3231       -.55549E-06    .15877E-02
   4  norm          3.9790        1.2004       -.72594E-06   -.54534E-03
   5  Prefactor     .10009E-03    609.85        .42234E-04** at limit **
   6  norm          .10000E-03    2.7261        .72284E-06** at limit **
   7  norm          .36463        1.3893       -.25148E-06   -.10285E-03
   8  Prefactor     4.4504        3.8793       -.59679E-05   -.60697E-02
   9  Prefactor     10.922        4.5667        .42759E-05   -.94408E-02
  10  Prefactor     .10000E-03    3.6317       -.15313E-06** at limit **
  11  norm          10.519        1.6853       -.12467E-05    .11033E-02
  12  Prefactor     2.8724        20.290        .57362E-05   -.17060E-03
  13  Prefactor     .10000E-03    6.5310       -.72247E-06** at limit **
  14  Prefactor     32.224        2.5524        .38097E-06    .15470E-03
  15  Prefactor     45.128        1.4649       -.28030E-07    .18306E-02
  16  Prefactor     .10000E-03    9.4460        .10616E-05** at limit **
  17  Prefactor     .10000E-03    11.156       -.13615E-05** at limit **
  18  norm          4.4498        1.8573        .25389E-05    .20799E-02
  19  norm          5.1582        3.2655       -.49667E-06   -.98805E-03
  20  Normalizat    .64037        .19564       -.22472E-05   -.22253E-03
  21  Prefactor     1.1060        .12006        .21732E-05   -.35137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1802
  norm       = 3.97904
  Prefactor  = 0.000100085
  norm       = 0.0001
  norm       = 0.364634
  Prefactor  = 4.4504
  Prefactor  = 10.9224
  Prefactor  = 0.0001
  norm       = 10.5186
  Prefactor  = 2.87238
  Prefactor  = 0.000100001
  Prefactor  = 32.2242
  Prefactor  = 45.128
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.44979
  norm       = 5.15818
  Normalizat = 0.640365
  Prefactor  = 1.10604
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.496     FROM HESSE     STATUS=OK           373 CALLS     2270 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.180        21.635        .27585E-02   -1.4982    
   4  norm          3.9790        6.3633        .50540E-02   -1.5309    
   5  Prefactor     .10009E-03    24.758        .12120       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .36463        1.2732        .44644E-01   -1.5587    
   8  Prefactor     4.4504        4.6742        .47710E-02   -1.5286    
   9  Prefactor     10.922        10.838        .30303E-02   -1.5047    
  10  Prefactor     .10000E-03    3.6107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.519        7.3696        .30882E-02   -1.5059    
  12  Prefactor     2.8724        23.149        .59627E-02   -1.5369    
  13  Prefactor     .10000E-03    6.5292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.224        37.425        .17641E-02   -1.4572    
  15  Prefactor     45.128        30.749        .14918E-02   -1.4363    
  16  Prefactor     .10000E-03    9.4638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4498        4.9268        .47725E-02   -1.5286    
  19  norm          5.1582        3.2874        .44252E-02   -1.5254    
  20  Normalizat    .64037        .18943        .78656E-01   -1.0630    
  21  Prefactor     1.1060        .10876        .37363E-01   -.89274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8619e-07
Minuit parameter uncertainties:
  1  8.06364e-05
  2  8.71965e-06
  3  21.6475
  4  6.36442
  5  0.00290901
  6  1.09149e-05
  7  1.27329
  8  4.67456
  9  10.8404
  10  3.88763e-06
  11  7.37023
  12  16.3171
  13  0.000133287
  14  37.4523
  15  30.76
  16  0.00014939
  17  0.000140443
  18  4.92727
  19  3.2875
  20  0.189623
  21  0.108783
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.092e+01  1.084e+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:  1.106e+00  1.088e-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:  6.404e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 135.175 -12.720
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/929928/likelihoodResults_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.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) = 7201.42184469
delta logL = 0.0741707677289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7201.41898553
delta logL = 0.0770299237402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5949       1.0000          .0000       10.000    
     3 'Normalizat'    .62803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1105       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7201.419     FROM MIGRAD    STATUS=FAILED        87 CALLS      299 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5774        15.180        .14568E-03   -.10324E-03
   2  Index         2.5953        1.0947        .73412E-02    .59358E-03
   3  Normalizat    .62797        .19618        .35152E-03   -.91528E-04
   4  Prefactor     1.1106        .11961        .16655E-03   -.23110E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7201.419     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      375 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5774        15.180        .14988E-03   -1.5157    
   2  Index         2.5953        1.0947        .90385E-03   -.50173    
   3  Normalizat    .62797        .19618        .31837E-03   -1.0681    
   4  Prefactor     1.1106        .11961        .17071E-03   -.89130    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7201.419     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      411 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5773        12.281        .58272E-05   -.19900E-04
   2  Index         2.5953        .88800        .14682E-02    .34224E-05
   3  Normalizat    .62797        .19533        .14061E-04   -.97026E-06
   4  Prefactor     1.1106        .11925        .33311E-04   -.14334E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.57733
  Index      = 2.59528
  Normalizat = 0.627966
  Prefactor  = 1.11056
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.419     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5773        11.858        .11654E-05   -1.5157    
   2  Index         2.5953        .85767        .58729E-04   -.50173    
   3  Normalizat    .62797        .19521        .28121E-05   -1.0681    
   4  Prefactor     1.1106        .11921        .66621E-05   -.89130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53377e-12
Minuit parameter uncertainties:
  1  11.8617
  2  0.863236
  3  0.195423
  4  0.119242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929928': 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) = 7201.41898528
delta logL = 0.077030170828

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  7.577e+00  1.186e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.595e+00  8.632e-01  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:  1.111e+00  1.192e-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:  6.280e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 2.60 +/- 0.86
Photon Flux (Free Index): 4.19e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.08e-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/929928/cmap_HighResolution_398995201_399254401_4FGL_J0900.7-1243_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.10e-05', photon_flux_error='3.26e-08', dlogl='7.70e-02', energy_flux='1.29e-05', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-08-30 20:48:54.160044', photon_index_error2='0.86', photon_index2='2.60', ts='1.52', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.08e-05', EG='0.64', time_epoch_completed='1630381734.16', return_code='0', job_id='929928', GAL2='1.11', EG2='0.63', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.21e-08', ts2='1.68', photon_index='2.28' WHERE bin_id='616' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 929928: <4FGL_J0900.7-1243_daily_bin616> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin616> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 20:35:23 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:35:24 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:35:24 2021
Terminated at Mon Aug 30 20:48:54 2021
Results reported at Mon Aug 30 20:48:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin616 135.175 -12.7201 398995201 399254401 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

