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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin665
RA = 171.491, Dec = 20.0912
tmin = 411696001, tmax = 411955201
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='781797', job_status='RUN', time_executed='2021-09-03 20:28:03.694096', time_epoch_executed='1630726083.69' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781797/ft1_4FGL_J1125.9+2005_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781797/ft2_4FGL_J1125.9+2005_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781797/ft1_4FGL_J1125.9+2005_daily_bin665.fits outfile=/scratch/kocevski/781797/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin665.fits ra=171.491 dec=20.0912 rad=12.0 tmin=411696001.0 tmax=411955201.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 6.26
user 5.93
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781797/ft2_4FGL_J1125.9+2005_daily_bin665.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/781797/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/781797/ft1_filtered_4FGL_J1125.9+2005_daily_bin665.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781797/ft1_filtered_4FGL_J1125.9+2005_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/781797/ft2_4FGL_J1125.9+2005_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/781797/ltcube_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.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/781797/ft2_4FGL_J1125.9+2005_daily_bin665.fits
.....................!
real 16.14
user 15.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781797/ft1_filtered_4FGL_J1125.9+2005_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/781797/ft2_4FGL_J1125.9+2005_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/781797/ltcube_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.fits outfile=/scratch/kocevski/781797/expmap_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.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/781797/ltcube_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.fits
.....................!
real 192.27
user 186.32
sys 4.88

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/781797/ft1_filtered_4FGL_J1125.9+2005_daily_bin665.fits scfile=/scratch/kocevski/781797/ft2_4FGL_J1125.9+2005_daily_bin665.fits outfile=/scratch/kocevski/781797/cmap_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7633       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.466       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10665E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11961E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10864E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14230E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0698       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1158       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .80279E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10111       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64677       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2155       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3495.602     FROM MIGRAD    STATUS=FAILED      1046 CALLS     4586 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7649        8.7486        .15429E-03   -.86949E-05
   2  Prefactor     .10000E-03    1.2673        .64511E-03** at limit **
   3  Prefactor     28.204        14.258        .75441E-04    .19477E-03
   4  Prefactor     4.0624        7.9492        .20013E-03   -.39026E-04
   5  Prefactor     .10000E-03    6.0092        .14136E-02** at limit **
   6  Prefactor     18.477        20.629        .93205E-04   -.28137E-03
   7  Prefactor     .10000E-03    6.6180        .14852E-02** at limit **
   8  norm          .10000E-03    3.2926        .13566E-02** at limit **
   9  Prefactor     .10001E-03    6.0754        .20171E-02** at limit **
  10  Prefactor     .10000E-03    6.0395        .14170E-02** at limit **
  11  norm          .10000E-03    24.339        .36285E-03** at limit **
  12  norm          .10000E-03    3.7244        .11142E-02** at limit **
  13  Prefactor     .10000E-03    9.8323        .18075E-02** at limit **
  14  Prefactor     .10000E-03    14.678        .18142E-02** at limit **
  15  Prefactor     1.1414        574.27        .86700E-02    .31610E-03
  16  Prefactor     .10000E-03    10.231        .18142E-02** at limit **
  17  Prefactor     31.681        28.067        .71189E-04    .13015E-04
  18  Prefactor     .10000E-03    3.4000        .10642E-02** at limit **
  19  Prefactor     4.1161        2.7511        .73292E-04    .28060E-03
  20  norm          .10000E-03    1.1952        .10621E-02** at limit **
  21  Prefactor     .10045E-03    24.892        .82560E-01** at limit **
  22  Prefactor     .10000E-03    3.8273        .11158E-02** at limit **
  23  Prefactor     .97860E-01    20.427        .15657E-02    .13206E-03
  24  Normalizat    .64658        .25723        .28491E-03    .35783E-03
  25  Prefactor     1.2155        .25836        .22700E-03    .60718E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3495.602     FROM SIMPLEX   STATUS=UNCHANGED   1314 CALLS     5900 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7649        8.7486        .70668E-06   -1.5188    
   2  Prefactor     .10000E-03    1.2673        .10287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.204        14.258        .40959E-06   -1.4645    
   4  Prefactor     4.0624        7.9492        .42962E-06   -1.5305    
   5  Prefactor     .10000E-03    6.0092        .32239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.477        20.629        .41619E-06   -1.4848    
   7  Prefactor     .10000E-03    6.6180        .22018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2926        .14412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    6.0754        .56042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0395        .30088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    24.339        .32622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7244        .25269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8323        .47277E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.678        .20262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1414        574.27        .49121E-06   -1.5494    
  16  Prefactor     .10000E-03    10.231        .31008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.681        28.067        .40882E-06   -1.4582    
  18  Prefactor     .10000E-03    3.4000        .16023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1161        2.7511        .42773E-06   -1.5302    
  20  norm          .10000E-03    1.1952        .26184E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10045E-03    24.892        .42383E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8273        .20464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .97860E-01    20.427        .48465E-06   -1.5645    
  24  Normalizat    .64658        .25723        .29708E-06   -1.0604    
  25  Prefactor     1.2155        .25836        .24032E-06   -.85854    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3495.602     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     6318 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7649        8.7468        .61714E-05   -.11053E-05
   2  Prefactor     .10000E-03    1.2674        .12902E-03** at limit **
   3  Prefactor     28.204        14.246        .30176E-05   -.48976E-05
   4  Prefactor     4.0624        7.9455        .80051E-05   -.15622E-05
   5  Prefactor     .10000E-03    6.0095        .28273E-03** at limit **
   6  Prefactor     18.477        20.590        .18641E-04   -.24090E-04
   7  Prefactor     .10000E-03    6.6180        .29704E-03** at limit **
   8  norm          .10000E-03    3.3112        .27131E-03** at limit **
   9  Prefactor     .10000E-03    6.0897        .40342E-03** at limit **
  10  Prefactor     .10000E-03    6.0399        .28341E-03** at limit **
  11  norm          .10000E-03    24.340        .72569E-04** at limit **
  12  norm          .10000E-03    3.7244        .22283E-03** at limit **
  13  Prefactor     .10000E-03    9.8335        .36150E-03** at limit **
  14  Prefactor     .10000E-03    14.680        .36285E-03** at limit **
  15  Prefactor     1.1422        574.44        .17340E-02    .31831E-05
  16  Prefactor     .10000E-03    10.232        .36285E-03** at limit **
  17  Prefactor     31.681        28.035        .28476E-05   -.39924E-05
  18  Prefactor     .10000E-03    3.4001        .21283E-03** at limit **
  19  Prefactor     4.1161        2.7501        .29317E-05   -.58168E-05
  20  norm          .10000E-03    1.1961        .21241E-03** at limit **
  21  Prefactor     .10042E-03    23.352        .86622E-01** at limit **
  22  Prefactor     .10000E-03    3.8285        .22317E-03** at limit **
  23  Prefactor     .97860E-01    20.395        .62628E-04    .99840E-05
  24  Normalizat    .64658        .25619        .56981E-04   -.21109E-04
  25  Prefactor     1.2155        .25812        .45400E-04   -.19557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.76492
  Prefactor  = 0.0001
  Prefactor  = 28.2039
  Prefactor  = 4.06242
  Prefactor  = 0.0001
  Prefactor  = 18.4775
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14222
  Prefactor  = 0.0001
  Prefactor  = 31.6814
  Prefactor  = 0.0001
  Prefactor  = 4.11608
  norm       = 0.0001
  Prefactor  = 0.000100424
  Prefactor  = 0.0001
  Prefactor  = 0.0978598
  Normalizat = 0.646584
  Prefactor  = 1.21554
 **********
 **   18 **HESSE 
 **********

 FCN=   3495.602     FROM HESSE     STATUS=OK           413 CALLS     6731 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7649        8.7451        .12343E-05   -1.5188    
   2  Prefactor     .10000E-03    1.2674        .25804E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.204        14.250        .60353E-06   -1.4645    
   4  Prefactor     4.0624        7.9449        .16010E-05   -1.5305    
   5  Prefactor     .10000E-03    6.0095        .56546E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.477        20.585        .37282E-05   -1.4848    
   7  Prefactor     .10000E-03    6.6180        .59407E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3120        .54262E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0902        .80685E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0399        .56682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    24.339        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7244        .44566E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8335        .72299E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.680        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1422        570.64        .69360E-04   -1.5494    
  16  Prefactor     .10000E-03    10.232        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.681        27.962        .56951E-06   -1.4582    
  18  Prefactor     .10000E-03    3.4001        .42566E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1161        2.7485        .58633E-06   -1.5302    
  20  norm          .10000E-03    1.1961        .42482E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10042E-03    23.676        .85720E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8286        .44633E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .97860E-01    20.370        .25051E-05   -1.5645    
  24  Normalizat    .64658        .25588        .11396E-04   -1.0604    
  25  Prefactor     1.2155        .25812        .90800E-05   -.85854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8443e-11
Minuit parameter uncertainties:
  1  8.74677
  2  6.59557e-08
  3  14.2515
  4  7.94692
  5  2.0667e-07
  6  20.5925
  7  2.67507e-07
  8  2.55088e-06
  9  5.39346e-06
  10  6.1625e-07
  11  4.05947e-07
  12  1.13935e-07
  13  1.27244e-06
  14  1.78759e-06
  15  51.5599
  16  1.31515e-06
  17  27.9731
  18  1.8834e-07
  19  2.74859
  20  3.15242e-07
  21  0.00633899
  22  1.32329e-06
  23  2.82326
  24  0.256356
  25  0.258385
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.272e-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.216e+00  2.584e-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:  6.466e-01  2.564e-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: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781797/likelihoodResults_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.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) = 3495.60241172
delta logL = -0.00048396694865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3495.60192751
delta logL = 2.44718194153e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2754       1.0000          .0000       10.000    
     3 'Normalizat'    .64659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2155       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=   3495.602     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    436.66        .18142E-02** at limit **
   2  Index         2.3147        5.1198        .50000       -.37231E-04
   3  Normalizat    .64659        .35562E-01    .28491E-03   -.10762E-03
   4  Prefactor     1.2155        .38012E-01    .22700E-03   -.25300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.31466
  Normalizat = 0.646586
  Prefactor  = 1.21554
 **********
 **   18 **HESSE 
 **********

 FCN=   3495.602     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1538.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3147        5.9894        .50000       -.56696    
   3  Normalizat    .64659        .83030E-01    .11396E-04   -1.0604    
   4  Prefactor     1.2155        .88754E-01    .45400E-04   -.85854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.45827e-10
Minuit parameter uncertainties:
  1  0.0101063
  2  51.2079
  3  0.0830462
  4  0.0887649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781797': 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) = 3495.60192719
delta logL = 5.66874859942e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.011e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.315e+00  5.121e+01  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.216e+00  8.876e-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:  6.466e-01  8.305e-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/781797/cmap_HighResolution_411696001_411955201_4FGL_J1125.9+2005_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.59e-08', time_completed='2021-09-03 20:40:31.103756', job_id='781797', GAL2='1.22', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630726831.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='665' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 781797: <4FGL_J1125.9+2005_daily_bin665> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin665> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:39 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:27: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:27:45 2021
Terminated at Fri Sep  3 20:40:32 2021
Results reported at Fri Sep  3 20:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin665 171.491 20.0912 411696001 411955201 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            833 sec.

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

