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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1085
RA = 171.491, Dec = 20.0912
tmin = 520560001, tmax = 520819201
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='784512', job_status='RUN', time_executed='2021-09-03 20:39:22.688091', time_epoch_executed='1630726762.69' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784512/ft1_4FGL_J1125.9+2005_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784512/ft1_4FGL_J1125.9+2005_daily_bin1085.fits outfile=/scratch/kocevski/784512/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1085.fits ra=171.491 dec=20.0912 rad=12.0 tmin=520560001.0 tmax=520819201.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.47
user 5.03
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.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/784512/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.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.61
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/784512/ltcube_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.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/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits
.....................!
real 18.24
user 17.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/784512/ltcube_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.fits outfile=/scratch/kocevski/784512/expmap_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.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/784512/ltcube_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.fits
.....................!
real 195.36
user 188.31
sys 6.23

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

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits scfile=/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits outfile=/scratch/kocevski/784512/cmap_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.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=171.491 yref=20.0912 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.81
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits scfile=/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits outfile=/scratch/kocevski/784512/cmap_HighResolution_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.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=171.491 yref=20.0912 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.82
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784512/Model_4FGL_J1125.9+2005_daily_bin1085.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/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits.....................!
real 44.41
user 42.35
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits', '/scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits', expMap='/scratch/kocevski/784512/expmap_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.fits', expCube='/scratch/kocevski/784512/ltcube_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784512/Model_4FGL_J1125.9+2005_daily_bin1085.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/784512/ft1_filtered_4FGL_J1125.9+2005_daily_bin1085.fits
Spacecraft file(s): /scratch/kocevski/784512/ft2_4FGL_J1125.9+2005_daily_bin1085.fits
Exposure map: /scratch/kocevski/784512/expmap_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.fits
Exposure cube: /scratch/kocevski/784512/ltcube_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784512/Model_4FGL_J1125.9+2005_daily_bin1085.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) = 4197.92889011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3009       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22170E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9196       1.0000         .10000E-03   10000.    
    11 'norm      '    12.345       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.059       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5066       1.0000         .10000E-03   10000.    
    20 'norm      '    9.2301       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4541       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91778       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89629       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4197.923     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2888 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2618        .60904E-05** at limit **
   2  Prefactor     .10000E-03    1.3258       -.22541E-07** at limit **
   3  Prefactor     .10000E-03    8.1362       -.21712E-05** at limit **
   4  Prefactor     17.949        10.550       -.18356E-06   -.10717E-03
   5  Prefactor     6.3007        8.9204        .12807E-06   -.64958E-04
   6  Prefactor     .10000E-03    13.799       -.66296E-05** at limit **
   7  Prefactor     .10000E-03    8.3008       -.36869E-05** at limit **
   8  norm          .10000E-03    .65407       -.49990E-07** at limit **
   9  Prefactor     .10080E-03    1.6478        .10924E-05** at limit **
  10  Prefactor     9.9183        8.1480       -.46030E-06   -.69547E-03
  11  norm          12.344        10.336        .92861E-07   -.76653E-05
  12  norm          .10000E-03    5.0671        .41692E-06** at limit **
  13  Prefactor     .10000E-03    11.572       -.11067E-06** at limit **
  14  Prefactor     21.061        17.765        .45578E-06   -.47077E-04
  15  Prefactor     .10000E-03    38.389       -.38237E-05** at limit **
  16  Prefactor     .10000E-03    4.2885       -.57883E-07** at limit **
  17  Prefactor     .10000E-03    8.6791        .17848E-05** at limit **
  18  Prefactor     4.2373        8.1211       -.27203E-06   -.15810E-03
  19  Prefactor     3.5067        2.2668       -.80956E-08   -.20700E-03
  20  norm          9.2301        2.8429       -.48114E-08   -.54625E-04
  21  Prefactor     16.368        21.375       -.90774E-06   -.87743E-05
  22  Prefactor     .10000E-03    1.5803        .58485E-07** at limit **
  23  Prefactor     5.4540        3.7730       -.22747E-06   -.16853E-03
  24  Normalizat    .91784        .19728        .22240E-06   -.15272E-03
  25  Prefactor     .89623        .20266       -.44830E-07   -.96043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9491
  Prefactor  = 6.30073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100799
  Prefactor  = 9.91833
  norm       = 12.3439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.2373
  Prefactor  = 3.5067
  norm       = 9.23012
  Prefactor  = 16.3684
  Prefactor  = 0.0001
  Prefactor  = 5.454
  Normalizat = 0.917843
  Prefactor  = 0.896226
 **********
 **   18 **HESSE 
 **********

 FCN=   4197.923     FROM HESSE     STATUS=OK           429 CALLS     3317 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3543        .72788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3812        .36003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.949        10.586        .94542E-04   -1.4860    
   5  Prefactor     6.3007        8.9038        .15991E-03   -1.5206    
   6  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .67624        .10222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10080E-03    26.054        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9183        8.3020        .63614E-03   -1.5078    
  11  norm          12.344        10.332        .11401E-03   -1.5005    
  12  norm          .10000E-03    5.0928        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.061        17.761        .87281E-04   -1.4790    
  15  Prefactor     .10000E-03    38.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2910        .13100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2373        8.1273        .19573E-03   -1.5296    
  19  Prefactor     3.5067        2.2640        .75157E-04   -1.5333    
  20  norm          9.2301        2.8452        .58597E-04   -1.5100    
  21  Prefactor     16.368        21.388        .98994E-04   -1.4899    
  22  Prefactor     .10000E-03    1.5897        .79498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4540        3.7749        .10064E-03   -1.5241    
  24  Normalizat    .91784        .22479        .23649E-03   -.95836    
  25  Prefactor     .89623        .23202        .25680E-03   -.96273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89127e-08
Minuit parameter uncertainties:
  1  5.88476e-05
  2  2.24539e-06
  3  2.03291e-05
  4  10.5873
  5  8.90562
  6  2.96135e-05
  7  3.79673e-06
  8  2.2879e-07
  9  0.00912867
  10  8.30293
  11  10.3338
  12  4.10126e-06
  13  1.76004e-05
  14  17.7653
  15  1.63892e-05
  16  3.43122e-06
  17  2.42359e-06
  18  8.12938
  19  2.26402
  20  2.84521
  21  21.3975
  22  1.44251e-06
  23  3.77505
  24  0.225023
  25  0.232271
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.760e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.962e-01  2.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.178e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784512/likelihoodResults_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.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) = 4197.92382143
delta logL = -0.000407934073337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4197.92341385
delta logL = -3.5386892705e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2502       1.0000          .0000       10.000    
     3 'Normalizat'    .91772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4197.923     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0598        .90712E-02** at limit **
   2  Index         2.2581        6.3817        .50000       -.55433E-05
   3  Normalizat    .91784        .42425E-02    .45128E-01    .15922E-04
   4  Prefactor     .89623        .45826E-02    .44959E-01    .14060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25811
  Normalizat = 0.917844
  Prefactor  = 0.896226
 **********
 **   18 **HESSE 
 **********

 FCN=   4197.923     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2581        7.8839        .50000       -.58042    
   3  Normalizat    .91784        .12486E-01    .23649E-03   -.95836    
   4  Prefactor     .89623        .13488E-01    .25680E-03   -.96273    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.92886e-08
Minuit parameter uncertainties:
  1  5.59496e-05
  2  223.594
  3  0.0124862
  4  0.0134884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784512': 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) = 4197.92341347
delta logL = 2.2857420845e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.595e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.258e+00  2.236e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.962e-01  1.349e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.178e-01  1.249e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.491 20.091

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/784512/cmap_HighResolution_520560001_520819201_4FGL_J1125.9+2005_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-03 20:50:18.937318', job_id='784512', GAL2='0.90', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630727418.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1085' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:50:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 784512: <4FGL_J1125.9+2005_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1085> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:14 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:37:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:37:20 2021
Terminated at Fri Sep  3 20:50:19 2021
Results reported at Fri Sep  3 20:50:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1085 171.491 20.0912 520560001 520819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            845 sec.

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

