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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1142
RA = 144.475, Dec = -14.5706
tmin = 535334401, tmax = 535593601
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='376831', job_status='RUN', time_executed='2021-08-31 19:36:24.655225', time_epoch_executed='1630463784.66' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376831/ft1_4FGL_J0937.9-1434_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.fits


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

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

Done.
real 5.15
user 4.92
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.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/376831/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1142.fits evtable="EVENTS" outfile="/scratch/kocevski/376831/ft1_filtered_4FGL_J0937.9-1434_daily_bin1142.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376831/ft1_filtered_4FGL_J0937.9-1434_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/376831/ltcube_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.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/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.fits
.....................!
real 11.87
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376831/ft1_filtered_4FGL_J0937.9-1434_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/376831/ltcube_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.fits outfile=/scratch/kocevski/376831/expmap_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.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/376831/ltcube_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.fits
.....................!
real 190.54
user 185.64
sys 4.53

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/376831/ft1_filtered_4FGL_J0937.9-1434_daily_bin1142.fits scfile=/scratch/kocevski/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.fits outfile=/scratch/kocevski/376831/cmap_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376831/ft1_filtered_4FGL_J0937.9-1434_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/376831/ft2_4FGL_J0937.9-1434_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376831/Model_4FGL_J0937.9-1434_daily_bin1142.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/376831/ft1_filtered_4FGL_J0937.9-1434_daily_bin1142.fits.....................!
real 61.05
user 59.47
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3139       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19357E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .63027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6152       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7518       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5082       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7543       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3721       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .78979       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=   5503.704     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1598 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3150        2.2896       -.63436E-07   -.60544E-04
   2  norm          .10000E-03    1.3746        .10190E-06** at limit **
   3  Prefactor     3.5119        1.7560       -.96333E-07   -.22793E-02
   4  Prefactor     .10000E-03    10.153        .26788E-06** at limit **
   5  Prefactor     .10000E-03    3.1677        .75091E-06** at limit **
   6  Prefactor     2.8695        13.121       -.19939E-05   -.11233E-04
   7  Prefactor     .10000E-03    59.185       -.91300E-05** at limit **
   8  Prefactor     19.740        8.1701       -.15449E-05    .21399E-02
   9  Prefactor     32.533        1.8073        .16575E-06    .14069E-02
  10  Prefactor     .32099        1509.5        .62241E-04    .45825E-04
  11  Prefactor     2.6151        2.6006        .15226E-06   -.52977E-03
  12  norm          2.8052        15.013        .69448E-06    .52483E-04
  13  norm          .10000E-03    6.8610        .41376E-05** at limit **
  14  norm          5.5081        5.4749       -.20882E-06   -.21007E-03
  15  norm          .10000E-03    .99144       -.32966E-06** at limit **
  16  norm          .10000E-03    11.457       -.25347E-05** at limit **
  17  norm          2.7542        1.7449        .11131E-06   -.85304E-05
  18  Normalizat    1.3720        .25923       -.60392E-06    .18470E-04
  19  Prefactor     .78984        .15001       -.11757E-05    .26304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.31495
  norm       = 0.0001
  Prefactor  = 3.51189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86948
  Prefactor  = 0.0001
  Prefactor  = 19.7403
  Prefactor  = 32.5333
  Prefactor  = 0.320989
  Prefactor  = 2.61509
  norm       = 2.80523
  norm       = 0.0001
  norm       = 5.50808
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.75421
  Normalizat = 1.37201
  Prefactor  = 0.789841
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.704     FROM HESSE     STATUS=OK           322 CALLS     1920 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3150        14.743        .55594E-02   -1.5344    
   2  norm          .10000E-03    1.3696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5119        7.1057        .53916E-02   -1.5333    
   4  Prefactor     .10000E-03    10.083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8695        14.883        .59897E-02   -1.5369    
   7  Prefactor     .10000E-03    59.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.740        45.013        .22562E-02   -1.4819    
   9  Prefactor     32.533        47.030        .17561E-02   -1.4567    
  10  Prefactor     .32099        58.008        .14757       -1.5595    
  11  Prefactor     2.6151        34.027        .63056E-02   -1.5385    
  12  norm          2.8052        14.965        .61349E-02   -1.5373    
  13  norm          .10000E-03    2.9686        .42992E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5081        5.4884        .42799E-02   -1.5239    
  15  norm          .10000E-03    .96772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7542        1.7547        .61320E-02   -1.5376    
  18  Normalizat    1.3720        .22688        .60741E-01   -.81442    
  19  Prefactor     .78984        .12847        .43584E-01   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36766e-07
Minuit parameter uncertainties:
  1  13.9873
  2  3.84778e-07
  3  7.10744
  4  7.7218e-06
  5  2.99173e-06
  6  13.0751
  7  0.000180294
  8  45.091
  9  47.0832
  10  8.6373
  11  18.8792
  12  12.9633
  13  1.61635e-05
  14  5.48888
  15  8.59521e-07
  16  8.94466e-06
  17  1.75478
  18  0.227048
  19  0.128515
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.210e-01  8.637e+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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.898e-01  1.285e-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:  1.372e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/376831/likelihoodResults_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.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): 102
logL (Free Index) = 5502.7661278
delta logL = 0.937934490312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5502.39113044
delta logL = 1.31293184379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5444       1.0000          .0000       10.000    
     3 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83750       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=   5503.704     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      406 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2033.2        .90712E-02** at limit **
   2  Index         1.7336        8.4477        .50000       -.76247E-05
   3  Normalizat    1.3721        .27671E-01    .60742E-01   -.72550E-04
   4  Prefactor     .78993        .16335E-01    .44203E-01    .21391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 1.73363
  Normalizat = 1.37209
  Prefactor  = 0.78993
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.704     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      439 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    7212.5        .18142E-02   -51.836    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7336        5.8018        .50000       -409.12    
   3  Normalizat    1.3721        .44510E-01    .26863E-03   -14.894    
   4  Prefactor     .78993        .26282E-01    .20149E-03   -19.851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07157e-08
Minuit parameter uncertainties:
  1  0.0241737
  2  27.9025
  3  0.0445114
  4  0.0262823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376831': 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): 102
logL (Free Index) = 5503.70410568
delta logL = -4.33914283349e-05

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.417e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.734e+00  2.790e+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:  7.899e-01  2.628e-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:  1.372e+00  4.451e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 144.475 -14.571

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/376831/cmap_HighResolution_535334401_535593601_4FGL_J0937.9-1434_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-08-31 19:45:31.045750', job_id='376831', GAL2='0.79', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630464331.05', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-4.34e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1142' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 376831: <4FGL_J0937.9-1434_daily_bin1142> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1142> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:35:58 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:35:59 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:35:59 2021
Terminated at Tue Aug 31 19:45:32 2021
Results reported at Tue Aug 31 19:45:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1142 144.475 -14.5706 535334401 535593601 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 :                                   536.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            574 sec.

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

