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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1519
RA = 144.475, Dec = -14.5706
tmin = 633052801, tmax = 633312001
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='378402', job_status='RUN', time_executed='2021-08-31 19:42:07.846460', time_epoch_executed='1630464127.85' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378402/ft1_4FGL_J0937.9-1434_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378402/ft1_4FGL_J0937.9-1434_daily_bin1519.fits outfile=/scratch/kocevski/378402/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1519.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=633052801.0 tmax=633312001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits" evtable="EVENTS" scfile=/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits sctable="SC_DATA" outfile=/scratch/kocevski/378402/ltcube_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.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/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits
.....................!
real 17.91
user 12.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/378402/ltcube_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.fits outfile=/scratch/kocevski/378402/expmap_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.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/378402/ltcube_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.fits
.....................!
real 190.87
user 185.39
sys 5.11

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/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits scfile=/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits outfile=/scratch/kocevski/378402/cmap_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits scfile=/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits outfile=/scratch/kocevski/378402/cmap_HighResolution_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378402/Model_4FGL_J0937.9-1434_daily_bin1519.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/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits.....................!
real 76.25
user 73.55
sys 2.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits', '/scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits', expMap='/scratch/kocevski/378402/expmap_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.fits', expCube='/scratch/kocevski/378402/ltcube_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378402/Model_4FGL_J0937.9-1434_daily_bin1519.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/378402/ft1_filtered_4FGL_J0937.9-1434_daily_bin1519.fits
Spacecraft file(s): /scratch/kocevski/378402/ft2_4FGL_J0937.9-1434_daily_bin1519.fits
Exposure map: /scratch/kocevski/378402/expmap_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.fits
Exposure cube: /scratch/kocevski/378402/ltcube_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378402/Model_4FGL_J0937.9-1434_daily_bin1519.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) = 7576.27140801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4389       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19014E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .60077E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5647       1.0000         .10000E-03   10000.    
    17 'norm      '    .10565E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79164       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96310       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7576.269     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2001 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4375        7.8322       -.68329E-07   -.11396E-04
   2  norm          .10000E-03    .95854       -.21797E-07** at limit **
   3  Prefactor     .10000E-03    2.0280        .54880E-08** at limit **
   4  Prefactor     .10000E-03    3.4294       -.13101E-06** at limit **
   5  Prefactor     5.9388        2.9065        .24572E-06   -.12586E-02
   6  Prefactor     .10000E-03    11.207        .16226E-06** at limit **
   7  Prefactor     7.8881        22.128       -.52650E-05   -.51880E-04
   8  Prefactor     36.531        35.025        .92904E-06    .20132E-04
   9  Prefactor     .10000E-03    8.3877        .19247E-06** at limit **
  10  Prefactor     19.115        23.823        .22263E-07   -.24667E-04
  11  Prefactor     .10000E-03    2.8792        .83388E-07** at limit **
  12  norm          .10017E-03    4.8319       -.48784E-07** at limit **
  13  norm          .10000E-03    1.0239       -.40943E-07** at limit **
  14  norm          .10000E-03    3.4270       -.68546E-08** at limit **
  15  norm          .10000E-03    .87909       -.86393E-07** at limit **
  16  norm          4.5648        6.6591       -.40009E-07   -.51428E-04
  17  norm          .10000E-03    .50687       -.81533E-07** at limit **
  18  Normalizat    .79179        .15412        .21092E-06    .70887E-04
  19  Prefactor     .96314        .96055E-01    .13933E-06    .10807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.43749
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.93878
  Prefactor  = 0.0001
  Prefactor  = 7.8881
  Prefactor  = 36.5305
  Prefactor  = 0.0001
  Prefactor  = 19.1147
  Prefactor  = 0.0001
  norm       = 0.000100165
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.56479
  norm       = 0.0001
  Normalizat = 0.791792
  Prefactor  = 0.963136
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.269     FROM HESSE     STATUS=OK           286 CALLS     2287 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4375        7.8244        .13044E-03   -1.5093    
   2  norm          .10000E-03    .97050        .83165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2254        .39258E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4438        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9388        5.9518        .82378E-03   -1.5221    
   6  Prefactor     .10000E-03    11.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8881        22.410        .14271E-03   -1.5146    
   8  Prefactor     36.531        35.077        .66308E-04   -1.4498    
   9  Prefactor     .10000E-03    8.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.115        23.936        .45900E-03   -1.4833    
  11  Prefactor     .10000E-03    2.8826        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10017E-03    5.8892        .50446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0328        .86011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4614        .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4348        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5648        6.6703        .18841E-03   -1.5281    
  17  norm          .10000E-03    1.8864        .11849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79179        .18025        .28659E-03   -1.0037    
  19  Prefactor     .96314        .11321        .16573E-03   -.93969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02904e-09
Minuit parameter uncertainties:
  1  7.82526
  2  4.07068e-07
  3  0.000129432
  4  2.21388e-06
  5  5.95237
  6  1.23483e-05
  7  22.4339
  8  35.0969
  9  1.07002e-06
  10  23.9482
  11  2.69838e-06
  12  0.00197228
  13  7.58501e-07
  14  4.92783e-07
  15  5.18416e-07
  16  6.67141
  17  2.07258e-05
  18  0.180385
  19  0.113243
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.911e+01  2.395e+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.631e-01  1.132e-01  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:  7.918e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 2.14e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/378402/likelihoodResults_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.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) = 7576.11317347
delta logL = 0.155839887787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7576.09612093
delta logL = 0.172892433306

Fit tolerance = 1e-08

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

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

 FCN=   7576.096     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      272 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1630        237.83        .33074E-02    .12607E-03
   2  Index         2.5121        2.9978        .10918        .19990E-03
   3  Normalizat    .77221        .65025E-01    .65536E-01    .34656E-04
   4  Prefactor     .96923        .33210E-01    .45880E-01    .19445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16298
  Index      = 2.51213
  Normalizat = 0.772214
  Prefactor  = 0.969226
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.096     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1630        40.937        .13229E-03   -1.5102    
   2  Index         2.5121        1.8395        .61138E-02   -.52080    
   3  Normalizat    .77221        .19048        .28994E-03   -1.0111    
   4  Prefactor     .96923        .11544        .16525E-03   -.93762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91491e-10
Minuit parameter uncertainties:
  1  38.7793
  2  1.89968
  3  0.190644
  4  0.115471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378402': 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) = 7576.09612024
delta logL = 0.172893119694

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  9.163e+00  3.878e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.512e+00  1.900e+00  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.692e-01  1.155e-01  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:  7.722e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.51 +/- 1.90
Photon Flux (Free Index): 3.28e-08 +/- 4.94e-08
Energy Flux (Free Index): 9.40e-06 +/- 1.28e-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/378402/cmap_HighResolution_633052801_633312001_4FGL_J0937.9-1434_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='9.40e-06', photon_flux_error='2.14e-08', dlogl='1.73e-01', energy_flux='1.24e-05', photon_flux2='3.28e-08', job_status='DONE', time_completed='2021-08-31 19:53:55.334845', photon_index_error2='1.90', photon_index2='2.51', ts='1.13', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.89e-08', energy_flux_error2='1.28e-05', EG='0.79', time_epoch_completed='1630464835.33', return_code='0', job_id='378402', GAL2='0.97', EG2='0.77', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.94e-08', ts2='1.48', photon_index='1.98' WHERE bin_id='1519' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:53:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 378402: <4FGL_J0937.9-1434_daily_bin1519> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1519> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:40:33 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:40:34 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:40:34 2021
Terminated at Tue Aug 31 19:53:56 2021
Results reported at Tue Aug 31 19:53:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1519 144.475 -14.5706 633052801 633312001 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 :                                   639.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

