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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1181
RA = 144.475, Dec = -14.5706
tmin = 545443201, tmax = 545702401
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='376874', job_status='RUN', time_executed='2021-08-31 19:36:49.363336', time_epoch_executed='1630463809.36' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376874/ft1_4FGL_J0937.9-1434_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376874/ft1_4FGL_J0937.9-1434_daily_bin1181.fits outfile=/scratch/kocevski/376874/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1181.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=545443201.0 tmax=545702401.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.23
user 3.95
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.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/376874/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1181.fits evtable="EVENTS" outfile="/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/376874/ltcube_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.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/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits
.....................!
real 12.11
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/376874/ltcube_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.fits outfile=/scratch/kocevski/376874/expmap_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.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/376874/ltcube_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.fits
.....................!
real 191.17
user 185.25
sys 5.32

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

Setting source of interest to:
4FGL J0937.9-1434 @ 144.475 -14.5706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits scfile=/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits outfile=/scratch/kocevski/376874/cmap_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.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=144.475 yref=-14.5706 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.62
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits scfile=/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits outfile=/scratch/kocevski/376874/cmap_HighResolution_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.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=144.475 yref=-14.5706 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.70
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376874/Model_4FGL_J0937.9-1434_daily_bin1181.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/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits.....................!
real 148.10
user 145.62
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits', '/scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits', expMap='/scratch/kocevski/376874/expmap_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.fits', expCube='/scratch/kocevski/376874/ltcube_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/376874/Model_4FGL_J0937.9-1434_daily_bin1181.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.9-1434'

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/376874/ft1_filtered_4FGL_J0937.9-1434_daily_bin1181.fits
Spacecraft file(s): /scratch/kocevski/376874/ft2_4FGL_J0937.9-1434_daily_bin1181.fits
Exposure map: /scratch/kocevski/376874/expmap_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.fits
Exposure cube: /scratch/kocevski/376874/ltcube_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/376874/Model_4FGL_J0937.9-1434_daily_bin1181.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) = 15742.7079327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.302       1.0000         .10000E-03   10000.    
     2 'norm      '    .63652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4131       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11823E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8127       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7423       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.372       1.0000         .10000E-03   10000.    
    15 'norm      '    .94548       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5542       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1696       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98425       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15741.86     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1369 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.300        6.8852        .30541E-05   -.22107E-02
   2  norm          .63695        .86484        .17238E-06    .34714E-03
   3  Prefactor     .10000E-03    2.6199        .20504E-06** at limit **
   4  Prefactor     2.4129        4.8987       -.97087E-05   -.55753E-03
   5  Prefactor     .10000E-03    1.4264        .97071E-07** at limit **
   6  Prefactor     .10015E-03    157.45       -.85193E-04** at limit **
   7  Prefactor     .10002E-03    64.638       -.52218E-04** at limit **
   8  Prefactor     .10003E-03    76.369        .98631E-04** at limit **
   9  Prefactor     5.7981        1.1507        .14906E-05    .19782E-04
  10  Prefactor     13.661        1.0197        .92948E-07    .34488E-03
  11  Prefactor     2.8136        2.6666        .44002E-05    .42556E-02
  12  norm          5.7426        3.7408        .43932E-06    .12447E-02
  13  norm          .10000E-03    .96314       -.42794E-06** at limit **
  14  norm          11.372        3.1679       -.27227E-05   -.26128E-02
  15  norm          .94546        .90656        .13083E-08    .27584E-03
  16  norm          2.5526        5.4860        .60051E-06   -.90331E-04
  17  norm          2.1695        .75890        .56078E-07   -.23704E-03
  18  Normalizat    .98423        .13715       -.40192E-05    .13539E-03
  19  Prefactor     .97172        .84947E-01    .15061E-05    .57716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3002
  norm       = 0.636951
  Prefactor  = 0.0001
  Prefactor  = 2.41287
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 0.000100019
  Prefactor  = 0.000100025
  Prefactor  = 5.79812
  Prefactor  = 13.6609
  Prefactor  = 2.81357
  norm       = 5.74257
  norm       = 0.0001
  norm       = 11.3716
  norm       = 0.945464
  norm       = 2.5526
  norm       = 2.16954
  Normalizat = 0.984229
  Prefactor  = 0.971719
 **********
 **   18 **HESSE 
 **********

 FCN=   15741.86     FROM HESSE     STATUS=OK           326 CALLS     1695 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.300        7.1756        .28553E-02   -1.5006    
   2  norm          .63695        1.2393        .31724E-01   -1.5548    
   3  Prefactor     .10000E-03    2.5057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4129        5.9085        .65881E-02   -1.5397    
   5  Prefactor     .10000E-03    1.4209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10015E-03    6.0859        .10980       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    62.561        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    75.892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7981        17.423        .41703E-02   -1.5226    
  10  Prefactor     13.661        14.338        .27092E-02   -1.4969    
  11  Prefactor     2.8136        6.1645        .60634E-02   -1.5372    
  12  norm          5.7426        3.8330        .41904E-02   -1.5229    
  13  norm          .10000E-03    .93409        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.372        5.5756        .29700E-02   -1.5033    
  15  norm          .94546        .91424        .12972E-01   -1.5514    
  16  norm          2.5526        5.5469        .63868E-02   -1.5388    
  17  norm          2.1695        .76194        .69895E-02   -1.5413    
  18  Normalizat    .98423        .12244        .45969E-01   -.93561    
  19  Prefactor     .97172        .73542E-01    .45912E-01   -.93678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41213e-07
Minuit parameter uncertainties:
  1  7.17607
  2  1.23933
  3  4.48195e-05
  4  5.90993
  5  1.02831e-05
  6  0.00193494
  7  0.00218185
  8  0.00277975
  9  17.438
  10  14.3415
  11  6.16584
  12  3.83313
  13  3.46553e-05
  14  5.57589
  15  0.914252
  16  5.54799
  17  0.761944
  18  0.122472
  19  0.0735497
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.366e+01  1.434e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.717e-01  7.355e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.842e-01  1.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 8.86e-06 +/- 9.31e-06

TS (Fixed Index): 1.82
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 4.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376874/likelihoodResults_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.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) = 15741.8367485
delta logL = 0.0221940974243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15741.8248044
delta logL = 0.0341382020852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.152       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1912       1.0000          .0000       10.000    
     3 'Normalizat'    .97923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+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=   15741.82     FROM MIGRAD    STATUS=FAILED        93 CALLS      263 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.152        20.057        .11997E-03    .33187E-03
   2  Index         2.1911        1.0502        .12861E-01    .13164E-02
   3  Normalizat    .97922        .13867        .28808E-03    .39464E-06
   4  Prefactor     .97302        .85176E-01    .18005E-03    .25256E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15741.82     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      337 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.152        20.057        .27489E-03   -1.5040    
   2  Index         2.1911        1.0502        .13610E-02   -.59654    
   3  Normalizat    .97922        .13867        .18343E-03   -.93730    
   4  Prefactor     .97302        .85176E-01    .16844E-03   -.93634    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15741.82     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      366 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.152        16.198        .47987E-05    .67283E-04
   2  Index         2.1911        .85106        .25722E-02    .20499E-04
   3  Normalizat    .97922        .13744        .11523E-04   -.14207E-04
   4  Prefactor     .97302        .84980E-01    .72021E-05   -.15154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1519
  Index      = 2.1911
  Normalizat = 0.979221
  Prefactor  = 0.973024
 **********
 **   18 **HESSE 
 **********

 FCN=   15741.82     FROM HESSE     STATUS=OK            25 CALLS      391 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.152        15.607        .95974E-06   -1.5040    
   2  Index         2.1911        .82105        .10289E-03   -.59653    
   3  Normalizat    .97922        .13744        .23046E-05   -.93730    
   4  Prefactor     .97302        .85052E-01    .14404E-05   -.93634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19498e-12
Minuit parameter uncertainties:
  1  15.6126
  2  0.826538
  3  0.137486
  4  0.0850635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376874': 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) = 15741.8248044
delta logL = 0.0341382201532

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.115e+01  1.561e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.191e+00  8.265e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.730e-01  8.506e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.792e-01  1.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.19 +/- 0.83
Photon Flux (Free Index): 1.69e-08 +/- 2.51e-08
Energy Flux (Free Index): 7.71e-06 +/- 8.18e-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/376874/cmap_HighResolution_545443201_545702401_4FGL_J0937.9-1434_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='7.71e-06', photon_flux_error='1.28e-08', dlogl='3.41e-02', energy_flux='8.86e-06', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-08-31 19:52:13.166535', photon_index_error2='0.83', photon_index2='2.19', ts='1.82', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.42e-08', energy_flux_error2='8.18e-06', EG='0.98', time_epoch_completed='1630464733.17', return_code='0', job_id='376874', GAL2='0.97', EG2='0.98', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='2.51e-08', ts2='1.89', photon_index='1.98' WHERE bin_id='1181' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 376874: <4FGL_J0937.9-1434_daily_bin1181> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1181> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:36:03 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:36:04 2021
Terminated at Tue Aug 31 19:52:13 2021
Results reported at Tue Aug 31 19:52:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1181 144.475 -14.5706 545443201 545702401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.9-1434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   913.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

