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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1124
RA = 180.173, Dec = 12.4922
tmin = 530668801, tmax = 530928001
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='253800', job_status='RUN', time_executed='2021-09-04 20:25:02.107618', time_epoch_executed='1630812302.11' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253800/ft1_4FGL_J1200.6+1229_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253800/ft1_4FGL_J1200.6+1229_daily_bin1124.fits outfile=/scratch/kocevski/253800/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1124.fits ra=180.173 dec=12.4922 rad=12.0 tmin=530668801.0 tmax=530928001.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.60
user 3.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.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/253800/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/253800/ltcube_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.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/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits
.....................!
real 11.97
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/253800/ltcube_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.fits outfile=/scratch/kocevski/253800/expmap_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.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/253800/ltcube_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.fits
.....................!
real 191.53
user 185.51
sys 5.65

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

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits scfile=/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits outfile=/scratch/kocevski/253800/cmap_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.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=180.173 yref=12.4922 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits scfile=/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits outfile=/scratch/kocevski/253800/cmap_HighResolution_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.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=180.173 yref=12.4922 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253800/Model_4FGL_J1200.6+1229_daily_bin1124.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/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits.....................!
real 51.28
user 49.90
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits', '/scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits', expMap='/scratch/kocevski/253800/expmap_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.fits', expCube='/scratch/kocevski/253800/ltcube_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253800/Model_4FGL_J1200.6+1229_daily_bin1124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253800/ft1_filtered_4FGL_J1200.6+1229_daily_bin1124.fits
Spacecraft file(s): /scratch/kocevski/253800/ft2_4FGL_J1200.6+1229_daily_bin1124.fits
Exposure map: /scratch/kocevski/253800/expmap_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.fits
Exposure cube: /scratch/kocevski/253800/ltcube_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253800/Model_4FGL_J1200.6+1229_daily_bin1124.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) = 5169.76123796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.242       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10949E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74640E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    89.796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33998       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.656       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73080       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1847       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5169.749     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2552 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.242        13.063       -.57210E-06   -.38908E-04
   2  Prefactor     .10000E-03    5.0060        .59777E-07** at limit **
   3  Prefactor     44.080        48.365        .86144E-05   -.21347E-04
   4  Prefactor     .10000E-03    14.073        .70087E-05** at limit **
   5  Prefactor     23.682        79.370        .58208E-04   -.92463E-05
   6  Prefactor     .10000E-03    3.4066       -.20796E-07** at limit **
   7  Prefactor     .10000E-03    3.0481       -.49951E-07** at limit **
   8  Prefactor     .10000E-03    17.773       -.44939E-05** at limit **
   9  Prefactor     .10016E-03    1.7964       -.39453E-07** at limit **
  10  Prefactor     89.788        82.777       -.75370E-05    .17178E-04
  11  Prefactor     .10000E-03    37.073        .25548E-04** at limit **
  12  Prefactor     3.3383        3.1607        .19401E-06   -.38383E-03
  13  Prefactor     .10000E-03    1.2562        .44973E-07** at limit **
  14  Prefactor     .10000E-03    12.269       -.58673E-05** at limit **
  15  norm          1.1498        3.2809       -.58866E-06   -.92669E-03
  16  Prefactor     .10000E-03    19.308       -.72095E-05** at limit **
  17  norm          .33998        .22611        .34467E-07   -.24730E-03
  18  norm          .10000E-03    13.228        .55245E-05** at limit **
  19  Prefactor     .10000E-03    47.352       -.22043E-04** at limit **
  20  Prefactor     .10000E-03    4.2296       -.25423E-07** at limit **
  21  Prefactor     18.656        24.098        .41198E-06   -.99708E-05
  22  Normalizat    .73066        .20366       -.31774E-05   -.65945E-04
  23  Prefactor     1.1848        .18405       -.25711E-06   -.15884E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.2422
  Prefactor  = 0.0001
  Prefactor  = 44.0803
  Prefactor  = 0.0001
  Prefactor  = 23.6819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100162
  Prefactor  = 89.7878
  Prefactor  = 0.0001
  Prefactor  = 3.33827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14976
  Prefactor  = 0.0001
  norm       = 0.339976
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6557
  Normalizat = 0.730661
  Prefactor  = 1.18485
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.749     FROM HESSE     STATUS=OK           372 CALLS     2924 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.242        13.061        .96455E-04   -1.4877    
   2  Prefactor     .10000E-03    5.0135        .15711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.080        48.539        .60390E-04   -1.4379    
   4  Prefactor     .10000E-03    14.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.682        79.212        .82366E-04   -1.4734    
   6  Prefactor     .10000E-03    3.4097        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0551        .12259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10016E-03    3.1198        .34868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     89.788        82.714        .42403E-04   -1.3810    
  11  Prefactor     .10000E-03    37.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3383        3.1409        .11580E-03   -1.5343    
  13  Prefactor     .10000E-03    1.2639        .78570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1498        3.2783        .20877E-03   -1.5494    
  16  Prefactor     .10000E-03    19.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33998        .22303        .26829E-04   -1.5591    
  18  norm          .10000E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2374        .14433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.656        24.096        .92729E-04   -1.4844    
  22  Normalizat    .73066        .23341        .28884E-03   -1.0269    
  23  Prefactor     1.1848        .21220        .22096E-03   -.86799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03533e-09
Minuit parameter uncertainties:
  1  13.0636
  2  2.06735e-06
  3  48.5828
  4  6.88262e-05
  5  79.5666
  6  7.37989e-06
  7  5.83647e-06
  8  0.000147242
  9  0.00142154
  10  82.8199
  11  0.000174235
  12  3.14109
  13  4.41067e-06
  14  8.56032e-06
  15  3.27882
  16  3.05183e-05
  17  0.223035
  18  1.12007e-05
  19  1.82705e-05
  20  6.0072e-06
  21  24.1086
  22  0.233724
  23  0.212352
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.472e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.185e+00  2.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  7.307e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253800/likelihoodResults_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.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) = 5169.7492185
delta logL = -0.000266773232397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5169.74895324
delta logL = -1.50539381139e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7808       1.0000          .0000       10.000    
     3 'Normalizat'    .73065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+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=   5169.749     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      290 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10578E-03    .21887        .74691E-01** at limit **
   2  Index         2.6552        7.7503        .50000        .21346E-04
   3  Normalizat    .73066        .79345E-03    .28884E-03   -.15744E-05
   4  Prefactor     1.1848        .76023E-03    .22096E-03   -.13480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105781
  Index      = 2.65519
  Normalizat = 0.73066
  Prefactor  = 1.18485
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.749     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10578E-03    45.641        .39265E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6552        7.2400        .50000       -.48811    
   3  Normalizat    .73066        .86614E-02    .11554E-04   -1.0269    
   4  Prefactor     1.1848        .82987E-02    .88383E-05   -.86799    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93779e-09
Minuit parameter uncertainties:
  1  0.0325105
  2  245.62
  3  0.00866143
  4  0.00829874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253800': 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) = 5169.74895276
delta logL = -1.02839658211e-06

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.058e-04  3.251e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.655e+00  2.456e+02  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.185e+00  8.299e-03  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  7.307e-01  8.661e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

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/253800/cmap_HighResolution_530668801_530928001_4FGL_J1200.6+1229_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-04 20:35:37.112184', job_id='253800', GAL2='1.18', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630812937.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1124' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:35:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 253800: <4FGL_J1200.6+1229_daily_bin1124> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1124> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:20:57 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:20:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:20:58 2021
Terminated at Sat Sep  4 20:35:37 2021
Results reported at Sat Sep  4 20:35:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1124 180.173 12.4922 530668801 530928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

