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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin1484
RA = 135.175, Dec = -12.7201
tmin = 623980801, tmax = 624240001
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='935202', job_status='RUN', time_executed='2021-08-30 20:53:02.794441', time_epoch_executed='1630381982.79' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935202/ft1_4FGL_J0900.7-1243_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935202/ft1_4FGL_J0900.7-1243_daily_bin1484.fits outfile=/scratch/kocevski/935202/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1484.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=623980801.0 tmax=624240001.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.13
user 3.78
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935202/ft1_filtered_4FGL_J0900.7-1243_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/935202/ltcube_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.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/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits
.....................!
real 11.59
user 11.24
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935202/ft1_filtered_4FGL_J0900.7-1243_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/935202/ltcube_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.fits outfile=/scratch/kocevski/935202/expmap_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.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/935202/ltcube_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.fits
.....................!
real 189.73
user 185.25
sys 4.09

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/935202/ft1_filtered_4FGL_J0900.7-1243_daily_bin1484.fits scfile=/scratch/kocevski/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits outfile=/scratch/kocevski/935202/cmap_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.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/935202/ft1_filtered_4FGL_J0900.7-1243_daily_bin1484.fits scfile=/scratch/kocevski/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits outfile=/scratch/kocevski/935202/cmap_HighResolution_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.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.58
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935202/ft1_filtered_4FGL_J0900.7-1243_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/935202/ft2_4FGL_J0900.7-1243_daily_bin1484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935202/Model_4FGL_J0900.7-1243_daily_bin1484.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/935202/ft1_filtered_4FGL_J0900.7-1243_daily_bin1484.fits.....................!
real 98.20
user 96.21
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0001       1.0000         .10000E-03   10000.    
     3 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2865       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63715       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.086       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1334       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9816       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    127.72       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7700       1.0000         .10000E-03   10000.    
    18 'norm      '    .12407E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .27537E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .45635       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2039       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=   9475.604     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2267 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5490        7.1133       -.11975E-07    .18939E-03
   2  Prefactor     1.0001        2.3173       -.30151E-08   -.31650E-03
   3  norm          .10000E-03    17.577        .24264E-06** at limit **
   4  norm          .10000E-03    2.0814       -.20536E-07** at limit **
   5  Prefactor     .10000E-03    4.1194        .30708E-08** at limit **
   6  norm          3.2869        5.2723        .37257E-05    .23996E-03
   7  norm          .10000E-03    .78710        .58500E-08** at limit **
   8  Prefactor     .62312        2.1055        .30823E-06   -.15742E-03
   9  Prefactor     18.089        10.507       -.39855E-06    .17079E-04
  10  Prefactor     3.1336        4.2651       -.99888E-07    .18109E-03
  11  norm          5.9797        4.2650        .36490E-07    .12555E-03
  12  Prefactor     .82660        7.6831       -.28697E-05    .22222E-03
  13  Prefactor     127.73        40.291       -.35031E-06    .32687E-03
  14  Prefactor     .10000E-03    18.249       -.99599E-07** at limit **
  15  Prefactor     25.462        27.259        .10150E-05   -.77181E-04
  16  Prefactor     .10000E-03    32.374       -.88511E-07** at limit **
  17  Prefactor     5.7687        13.003        .35356E-06    .96411E-04
  18  norm          .10000E-03    3.1507       -.90807E-06** at limit **
  19  norm          .10000E-03    1.6269       -.28532E-06** at limit **
  20  Normalizat    .45592        .17347        .13032E-05    .35825E-03
  21  Prefactor     1.2041        .10205       -.57837E-06    .57703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.54901
  Prefactor  = 1.00006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28691
  norm       = 0.0001
  Prefactor  = 0.623117
  Prefactor  = 18.0893
  Prefactor  = 3.13358
  norm       = 5.97972
  Prefactor  = 0.8266
  Prefactor  = 127.733
  Prefactor  = 0.0001
  Prefactor  = 25.4623
  Prefactor  = 0.0001
  Prefactor  = 5.76874
  norm       = 0.000100004
  norm       = 0.0001
  Normalizat = 0.455916
  Prefactor  = 1.20409
 **********
 **   18 **HESSE 
 **********

 FCN=   9475.604     FROM HESSE     STATUS=OK           329 CALLS     2596 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5490        7.0917        .13711E-03   -1.5123    
   2  Prefactor     1.0001        1.8801        .21869E-02   -1.5508    
   3  norm          .10000E-03    17.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1170        .13709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2869        5.3580        .11167E-02   -1.5345    
   7  norm          .10000E-03    .80208        .84283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .62312        5.6002        .24087E-02   -1.5550    
   9  Prefactor     18.089        10.492        .94177E-04   -1.4857    
  10  Prefactor     3.1336        4.2548        .22646E-03   -1.5354    
  11  norm          5.9797        4.2626        .16418E-03   -1.5219    
  12  Prefactor     .82660        46.593        .46545E-02   -1.5526    
  13  Prefactor     127.73        40.390        .35622E-04   -1.3443    
  14  Prefactor     .10000E-03    18.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.462        27.301        .79364E-04   -1.4698    
  16  Prefactor     .10000E-03    32.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7687        12.946        .16721E-03   -1.5228    
  18  norm          .10000E-03    19.702        .32680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.8415        .23960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .45592        .18440        .40476E-03   -1.1450    
  21  Prefactor     1.2041        .10966        .16140E-03   -.86206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08179e-08
Minuit parameter uncertainties:
  1  7.09237
  2  1.88022
  3  0.000113356
  4  2.66759e-06
  5  1.34358e-06
  6  5.35874
  7  7.1432e-07
  8  3.73624
  9  10.4934
  10  4.25518
  11  4.26278
  12  12.4213
  13  40.3987
  14  4.80646e-05
  15  27.3147
  16  7.70295e-05
  17  12.9518
  18  0.000543068
  19  8.5223e-05
  20  0.184649
  21  0.10968
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.809e+01  1.049e+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.204e+00  1.097e-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:  4.559e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 135.175 -12.720
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.24e-05

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) = 9475.26577387
delta logL = 0.337951122321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9475.26431615
delta logL = 0.339408839043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6441       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7727       1.0000          .0000       10.000    
     3 'Normalizat'    .42221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2174       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9475.264     FROM MIGRAD    STATUS=FAILED       100 CALLS      320 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6268        20.356        .64520E-03   -.55997E-04
   2  Index         2.7741        1.1598        .45247E-02    .81054E-03
   3  Normalizat    .42203        .18292        .42004E-03   -.27553E-04
   4  Prefactor     1.2175        .11111        .16062E-03   -.65544E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9475.264     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      403 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6268        20.356        .12344E-03   -1.5087    
   2  Index         2.7741        1.1598        .43043E-03   -.46137    
   3  Normalizat    .42203        .18292        .29480E-03   -1.1618    
   4  Prefactor     1.2175        .11111        .13357E-03   -.85794    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9475.264     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      437 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6269        12.322        .25808E-04    .17620E-05
   2  Index         2.7741        .70613        .90495E-03    .31975E-04
   3  Normalizat    .42203        .17668        .16802E-04    .10826E-06
   4  Prefactor     1.2175        .10853        .64247E-05    .70782E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.62685
  Index      = 2.77414
  Normalizat = 0.422031
  Prefactor  = 1.2175
 **********
 **   18 **HESSE 
 **********

 FCN=   9475.264     FROM HESSE     STATUS=OK            25 CALLS      462 TOTAL
                     EDM=   .58E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6269        11.781        .10323E-05   -1.5087    
   2  Index         2.7741        .67527        .18099E-03   -.46137    
   3  Normalizat    .42203        .17617        .16802E-04   -1.1618    
   4  Prefactor     1.2175        .10824        .12849E-05   -.85794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82626e-14
Minuit parameter uncertainties:
  1  11.7834
  2  0.677857
  3  0.176398
  4  0.108258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935202': 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) = 9475.26431321
delta logL = 0.339411783743

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  9.627e+00  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.774e+00  6.779e-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.218e+00  1.083e-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:  4.220e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 2.77 +/- 0.68
Photon Flux (Free Index): 7.63e-08 +/- 4.50e-08
Energy Flux (Free Index): 1.74e-05 +/- 9.63e-06

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/935202/cmap_HighResolution_623980801_624240001_4FGL_J0900.7-1243_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.74e-05', photon_flux_error='3.16e-08', dlogl='3.39e-01', energy_flux='2.13e-05', photon_flux2='7.63e-08', job_status='DONE', time_completed='2021-08-30 21:05:12.607142', photon_index_error2='0.68', photon_index2='2.77', ts='5.18', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='9.63e-06', EG='0.46', time_epoch_completed='1630382712.61', return_code='0', job_id='935202', GAL2='1.22', EG2='0.42', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.50e-08', ts2='5.97', photon_index='2.28' WHERE bin_id='1484' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 935202: <4FGL_J0900.7-1243_daily_bin1484> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin1484> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 30 20:50:48 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:50:49 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:50:49 2021
Terminated at Mon Aug 30 21:05:13 2021
Results reported at Mon Aug 30 21:05:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin1484 135.175 -12.7201 623980801 624240001 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

