/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 192 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 = 7534
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0900.7-1243_daily_bin134
RA = 135.175, Dec = -12.7201
tmin = 274060801, tmax = 274320001
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='925421', job_status='RUN', time_executed='2021-08-30 20:24:02.145054', time_epoch_executed='1630380242.15' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925421/ft1_4FGL_J0900.7-1243_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925421/ft1_4FGL_J0900.7-1243_daily_bin134.fits outfile=/scratch/kocevski/925421/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin134.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=274060801.0 tmax=274320001.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 4.09
user 3.47
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925421/ft1_filtered_4FGL_J0900.7-1243_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/925421/ltcube_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.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/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits
.....................!
real 12.83
user 12.03
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925421/ft1_filtered_4FGL_J0900.7-1243_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/925421/ltcube_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.fits outfile=/scratch/kocevski/925421/expmap_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.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/925421/ltcube_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.fits
.....................!
real 190.30
user 185.32
sys 4.57

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/925421/ft1_filtered_4FGL_J0900.7-1243_daily_bin134.fits scfile=/scratch/kocevski/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits outfile=/scratch/kocevski/925421/cmap_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.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 1.03
user 0.37
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925421/ft1_filtered_4FGL_J0900.7-1243_daily_bin134.fits scfile=/scratch/kocevski/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits outfile=/scratch/kocevski/925421/cmap_HighResolution_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.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.96
user 0.38
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925421/ft1_filtered_4FGL_J0900.7-1243_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/925421/ft2_4FGL_J0900.7-1243_daily_bin134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925421/Model_4FGL_J0900.7-1243_daily_bin134.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/925421/ft1_filtered_4FGL_J0900.7-1243_daily_bin134.fits.....................!
real 76.75
user 74.39
sys 1.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3006       1.0000         .10000E-03   10000.    
     3 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3782       1.0000         .10000E-03   10000.    
     7 'norm      '    5.2536       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.094       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5890       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    99.909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6958       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9013       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98179       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=   6627.375     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2176 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2874        .45514E-08** at limit **
   2  Prefactor     5.3000        4.7484        .12766E-05   -.14867E-02
   3  norm          .10000E-03    34.112       -.21055E-05** at limit **
   4  norm          .10000E-03    9.0319        .64575E-08** at limit **
   5  Prefactor     .10000E-03    36.990        .24011E-05** at limit **
   6  norm          8.3717        14.942       -.87754E-07   -.50144E-04
   7  norm          5.2541        3.7724        .36734E-09   -.26641E-04
   8  Prefactor     .10000E-03    5.5765        .10320E-06** at limit **
   9  Prefactor     22.968        17.172        .20936E-06    .42109E-04
  10  Prefactor     10.093        10.227        .54666E-07   -.38807E-04
  11  norm          3.5899        4.7470        .98294E-07   -.44629E-04
  12  Prefactor     .10000E-03    11.483       -.20606E-07** at limit **
  13  Prefactor     99.916        45.101        .18347E-05    .29956E-03
  14  Prefactor     6.4100        48.225       -.13361E-04   -.21186E-03
  15  Prefactor     .10000E-03    51.506       -.19655E-06** at limit **
  16  Prefactor     11.246        21.153       -.19677E-06   -.22772E-04
  17  Prefactor     .10000E-03    7.8348        .10431E-06** at limit **
  18  norm          6.6956        6.2059        .11717E-07   -.39027E-04
  19  norm          4.9008        4.3543        .11898E-05   -.14326E-02
  20  Normalizat    1.0600        .21308        .17474E-06   -.41196E-04
  21  Prefactor     .98194        .11725       -.34353E-06    .16613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.30004
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.37172
  norm       = 5.25415
  Prefactor  = 0.0001
  Prefactor  = 22.9678
  Prefactor  = 10.0933
  norm       = 3.58992
  Prefactor  = 0.0001
  Prefactor  = 99.9165
  Prefactor  = 6.41
  Prefactor  = 0.0001
  Prefactor  = 11.2462
  Prefactor  = 0.0001
  norm       = 6.69556
  norm       = 4.90082
  Normalizat = 1.06001
  Prefactor  = 0.981936
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.375     FROM HESSE     STATUS=OK           317 CALLS     2493 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2954        .16462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3000        5.1627        .87286E-03   -1.5247    
   3  norm          .10000E-03    35.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.2803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3717        14.938        .13850E-03   -1.5129    
   7  norm          5.2541        3.7619        .12416E-03   -1.5249    
   8  Prefactor     .10000E-03    5.6577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.968        17.161        .83589E-04   -1.4749    
  10  Prefactor     10.093        10.228        .12612E-03   -1.5072    
  11  norm          3.5899        4.7431        .19806E-03   -1.5329    
  12  Prefactor     .10000E-03    11.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     99.916        45.544        .40220E-04   -1.3705    
  14  Prefactor     6.4100        55.500        .15832E-03   -1.5202    
  15  Prefactor     .10000E-03    51.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.246        21.152        .11946E-03   -1.5037    
  17  Prefactor     .10000E-03    7.8677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6956        6.2040        .15507E-03   -1.5190    
  19  norm          4.9008        4.6442        .82563E-03   -1.5265    
  20  Normalizat    1.0600        .24602        .32192E-03   -.91046    
  21  Prefactor     .98194        .13514        .19166E-03   -.93334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23898e-09
Minuit parameter uncertainties:
  1  6.78136e-07
  2  5.16313
  3  0.00037956
  4  7.89115e-06
  5  0.000482817
  6  14.9449
  7  3.76206
  8  1.50544e-06
  9  17.165
  10  10.2299
  11  4.74364
  12  7.76203e-05
  13  45.5603
  14  37.7697
  15  2.02419e-05
  16  21.1658
  17  8.61426e-08
  18  6.20457
  19  4.64451
  20  0.246287
  21  0.13519
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  2.297e+01  1.717e+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.819e-01  1.352e-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:  1.060e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.99
Ra Dec: 135.175 -12.720
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.91e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 2.03e-05

TS (Fixed Index): 2.99
Ra Dec: 135.175 -12.720
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925421/likelihoodResults_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.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) = 6624.92174913
delta logL = 2.45324848568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6624.88769559
delta logL = 2.48730202685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0862       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6324       1.0000          .0000       10.000    
     3 'Normalizat'    .92254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0265       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=   6624.888     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      255 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0921        25.363        .49861E-02   -.51056E-04
   2  Index         3.6321        2.0845        .72147E-01    .13619E-03
   3  Normalizat    .92245        .94685E-01    .77137E-01   -.85374E-04
   4  Prefactor     1.0265        .50789E-01    .41542E-01   -.22449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09205
  Index      = 3.6321
  Normalizat = 0.922449
  Prefactor  = 1.02653
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.888     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0921        13.162        .66677E-04   -1.5303    
   2  Index         3.6321        1.4967        .29549E-02   -.27711    
   3  Normalizat    .92245        .24842        .34140E-03   -.95676    
   4  Prefactor     1.0265        .13922        .18767E-03   -.91850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33587e-10
Minuit parameter uncertainties:
  1  13.1717
  2  1.522
  3  0.248727
  4  0.139264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925421': 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) = 6624.88769375
delta logL = 2.48730386283

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  4.092e+00  1.317e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.632e+00  1.522e+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:  1.027e+00  1.393e-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:  9.224e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.48
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 3.63 +/- 1.52
Photon Flux (Free Index): 2.06e-07 +/- 1.00e-07
Energy Flux (Free Index): 3.32e-05 +/- 1.54e-05

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/925421/cmap_HighResolution_274060801_274320001_4FGL_J0900.7-1243_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.91e-08', energy_flux2='3.32e-05', photon_flux_error='5.16e-08', dlogl='2.49e+00', energy_flux='2.71e-05', photon_flux2='2.06e-07', job_status='DONE', time_completed='2021-08-30 20:34:29.533153', photon_index_error2='1.52', photon_index2='3.63', ts='2.99', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.54e-05', EG='1.06', time_epoch_completed='1630380869.53', return_code='0', job_id='925421', GAL2='1.03', EG2='0.92', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='1.00e-07', ts2='8.48', photon_index='2.28' WHERE bin_id='134' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 925421: <4FGL_J0900.7-1243_daily_bin134> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin134> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 20:20:27 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:20:29 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:20:29 2021
Terminated at Mon Aug 30 20:34:30 2021
Results reported at Mon Aug 30 20:34:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin134 135.175 -12.7201 274060801 274320001 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 :                                   631.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

