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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1166
RA = 171.491, Dec = 20.0912
tmin = 541555201, tmax = 541814401
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='784628', job_status='RUN', time_executed='2021-09-03 20:39:00.522398', time_epoch_executed='1630726740.52' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784628/ft1_4FGL_J1125.9+2005_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784628/ft1_4FGL_J1125.9+2005_daily_bin1166.fits outfile=/scratch/kocevski/784628/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1166.fits ra=171.491 dec=20.0912 rad=12.0 tmin=541555201.0 tmax=541814401.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.71
user 3.49
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.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/784628/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1166.fits evtable="EVENTS" outfile="/scratch/kocevski/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/784628/ltcube_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.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/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits
.....................!
real 17.44
user 16.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/784628/ltcube_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.fits outfile=/scratch/kocevski/784628/expmap_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.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/784628/ltcube_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.fits
.....................!
real 192.64
user 187.58
sys 4.34

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/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.fits scfile=/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits outfile=/scratch/kocevski/784628/cmap_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.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.60
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.fits scfile=/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits outfile=/scratch/kocevski/784628/cmap_HighResolution_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.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.59
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.fits', '/scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits', expMap='/scratch/kocevski/784628/expmap_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.fits', expCube='/scratch/kocevski/784628/ltcube_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784628/Model_4FGL_J1125.9+2005_daily_bin1166.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/784628/ft1_filtered_4FGL_J1125.9+2005_daily_bin1166.fits
Spacecraft file(s): /scratch/kocevski/784628/ft2_4FGL_J1125.9+2005_daily_bin1166.fits
Exposure map: /scratch/kocevski/784628/expmap_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.fits
Exposure cube: /scratch/kocevski/784628/ltcube_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784628/Model_4FGL_J1125.9+2005_daily_bin1166.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) = 6422.90704909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.434       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.373       1.0000         .10000E-03   10000.    
     8 'norm      '    .42437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2727       1.0000         .10000E-03   10000.    
    12 'norm      '    17.010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.776       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.908       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2517       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59826       1.0000         .10000E-03   10000.    
    20 'norm      '    15.143       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3497       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71994       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3112       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=   6422.870     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2952 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5793        8.9941       -.50087E-06   -.29575E-03
   2  Prefactor     .10000E-03    1.5409       -.31418E-07** at limit **
   3  Prefactor     11.986        8.1896       -.61359E-07   -.92115E-04
   4  Prefactor     .10000E-03    17.318        .28819E-06** at limit **
   5  Prefactor     .10000E-03    11.633       -.56185E-06** at limit **
   6  Prefactor     14.435        13.587        .40040E-06   -.19050E-04
   7  Prefactor     11.374        16.633        .26616E-05   -.67194E-04
   8  norm          .42387        1.4496       -.29547E-07   -.10593E-03
   9  Prefactor     4.2911        3.8877       -.18280E-07   -.12385E-04
  10  Prefactor     .10000E-03    5.9310       -.33990E-07** at limit **
  11  norm          1.2737        10.613        .41687E-05   -.53039E-03
  12  norm          17.010        13.312       -.73855E-06    .11472E-03
  13  Prefactor     .10000E-03    4.1072        .99983E-08** at limit **
  14  Prefactor     .10000E-03    7.4912        .17498E-06** at limit **
  15  Prefactor     60.763        48.100       -.14316E-04    .24976E-03
  16  Prefactor     1.1472        14.261       -.38294E-05   -.55408E-03
  17  Prefactor     47.918        31.426        .97246E-05    .79078E-04
  18  Prefactor     5.2533        15.205        .18814E-05    .58793E-04
  19  Prefactor     .59835        1.6369       -.17068E-05   -.20154E-02
  20  norm          15.143        3.3685       -.57403E-06    .79129E-03
  21  Prefactor     11.308        20.188       -.52803E-06    .24511E-04
  22  Prefactor     .10000E-03    2.3522       -.33709E-07** at limit **
  23  Prefactor     4.3497        3.8087       -.57947E-06    .16153E-03
  24  Normalizat    .71987        .20813       -.50819E-06    .22164E-03
  25  Prefactor     1.3113        .19860        .12327E-05    .99053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.57925
  Prefactor  = 0.0001
  Prefactor  = 11.9859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4353
  Prefactor  = 11.3739
  norm       = 0.423872
  Prefactor  = 4.29111
  Prefactor  = 0.0001
  norm       = 1.2737
  norm       = 17.0099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.7628
  Prefactor  = 1.14715
  Prefactor  = 47.918
  Prefactor  = 5.25334
  Prefactor  = 0.598354
  norm       = 15.1431
  Prefactor  = 11.3081
  Prefactor  = 0.0001
  Prefactor  = 4.34966
  Normalizat = 0.719871
  Prefactor  = 1.31132
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.870     FROM HESSE     STATUS=OK           431 CALLS     3383 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5793        9.1763        .10680E-02   -1.5330    
   2  Prefactor     .10000E-03    1.5833        .19387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.986        8.1745        .57857E-03   -1.5015    
   4  Prefactor     .10000E-03    17.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.435        13.562        .10542E-03   -1.4948    
   7  Prefactor     11.374        16.611        .11879E-03   -1.5033    
   8  norm          .42387        1.4511        .16055E-02   -1.5578    
   9  Prefactor     4.2911        3.8764        .13408E-03   -1.5294    
  10  Prefactor     .10000E-03    6.0334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2737        20.679        .19710E-02   -1.5482    
  12  norm          17.010        13.314        .97110E-04   -1.4883    
  13  Prefactor     .10000E-03    4.1189        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     60.763        47.726        .51468E-04   -1.4147    
  16  Prefactor     1.1472        27.988        .21603E-02   -1.5494    
  17  Prefactor     47.918        31.298        .57932E-04   -1.4322    
  18  Prefactor     5.2533        15.227        .17540E-03   -1.5250    
  19  Prefactor     .59835        1.5714        .15607E-03   -1.5553    
  20  norm          15.143        3.3621        .64601E-04   -1.4929    
  21  Prefactor     11.308        20.216        .11913E-03   -1.5035    
  22  Prefactor     .10000E-03    2.3733        .11984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3497        3.8056        .13789E-03   -1.5291    
  24  Normalizat    .71987        .24518        .31687E-03   -1.0311    
  25  Prefactor     1.3113        .23546        .25425E-03   -.82971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65644e-08
Minuit parameter uncertainties:
  1  9.17995
  2  4.11643e-06
  3  8.1753
  4  0.000167123
  5  6.75365e-05
  6  13.5648
  7  16.6174
  8  1.45118
  9  3.87663
  10  7.89514e-06
  11  10.2682
  12  13.3165
  13  1.08682e-06
  14  8.9253e-08
  15  47.756
  16  11.3379
  17  31.309
  18  15.2379
  19  1.57154
  20  3.3621
  21  20.2281
  22  2.18689e-06
  23  3.80577
  24  0.245549
  25  0.235653
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.087e-06  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:  1.311e+00  2.357e-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:  7.199e-01  2.455e-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: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784628/likelihoodResults_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.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) = 6422.87137769
delta logL = -0.00114968583512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6422.8702279
delta logL = 1.08076164906e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6422.870     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    49.464        .16111E-02** at limit **
   2  Index         2.1591        6.8462        .50000        .32275E-04
   3  Normalizat    .71987        .15759E-01    .31687E-03   -.74268E-05
   4  Prefactor     1.3113        .16653E-01    .25425E-03   -.65284E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101476
  Index      = 2.15906
  Normalizat = 0.719868
  Prefactor  = 1.31132
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.870     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    205.96        .32223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1591        5.9454        .50000       -.60430    
   3  Normalizat    .71987        .33633E-01    .12675E-04   -1.0311    
   4  Prefactor     1.3113        .35540E-01    .10170E-04   -.82971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75159e-08
Minuit parameter uncertainties:
  1  0.0349862
  2  522.373
  3  0.0336344
  4  0.035541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784628': 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) = 6422.87022745
delta logL = 5.61944034416e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.015e-04  3.499e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.159e+00  5.224e+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:  1.311e+00  3.554e-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:  7.199e-01  3.363e-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/784628/cmap_HighResolution_541555201_541814401_4FGL_J1125.9+2005_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-03 20:52:02.359229', job_id='784628', GAL2='1.31', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630727522.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='5.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1166' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 784628: <4FGL_J1125.9+2005_daily_bin1166> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1166> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:20 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:38:45 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:38:45 2021
Terminated at Fri Sep  3 20:52:03 2021
Results reported at Fri Sep  3 20:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1166 171.491 20.0912 541555201 541814401 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 :                                   768.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            943 sec.

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

