/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 112 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin96
RA = 180.173, Dec = 12.4922
tmin = 264211201, tmax = 264470401
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='248917', job_status='RUN', time_executed='2021-09-04 20:07:26.318320', time_epoch_executed='1630811246.32' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248917/ft1_4FGL_J1200.6+1229_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248917/ft1_4FGL_J1200.6+1229_daily_bin96.fits outfile=/scratch/kocevski/248917/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin96.fits ra=180.173 dec=12.4922 rad=12.0 tmin=264211201.0 tmax=264470401.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 1.73
user 1.52
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.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/248917/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin96.fits evtable="EVENTS" outfile="/scratch/kocevski/248917/ft1_filtered_4FGL_J1200.6+1229_daily_bin96.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248917/ft1_filtered_4FGL_J1200.6+1229_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/248917/ltcube_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.fits outfile=/scratch/kocevski/248917/expmap_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.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/248917/ltcube_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.fits
.....................!
real 190.82
user 185.99
sys 4.32

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/248917/ft1_filtered_4FGL_J1200.6+1229_daily_bin96.fits scfile=/scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.fits outfile=/scratch/kocevski/248917/cmap_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248917/ft1_filtered_4FGL_J1200.6+1229_daily_bin96.fits scfile=/scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.fits outfile=/scratch/kocevski/248917/cmap_HighResolution_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248917/ft1_filtered_4FGL_J1200.6+1229_daily_bin96.fits', '/scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.fits', expMap='/scratch/kocevski/248917/expmap_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.fits', expCube='/scratch/kocevski/248917/ltcube_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248917/Model_4FGL_J1200.6+1229_daily_bin96.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/248917/ft1_filtered_4FGL_J1200.6+1229_daily_bin96.fits
Spacecraft file(s): /scratch/kocevski/248917/ft2_4FGL_J1200.6+1229_daily_bin96.fits
Exposure map: /scratch/kocevski/248917/expmap_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.fits
Exposure cube: /scratch/kocevski/248917/ltcube_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248917/Model_4FGL_J1200.6+1229_daily_bin96.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) = 8180.58552004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75259E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2728       1.0000         .10000E-03   10000.    
    17 'norm      '    .77562       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5663       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.654       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1062       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1805       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=   8180.573     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2592 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1178        .16131E-07** at limit **
   2  Prefactor     2.0992        13.145       -.22269E-05   -.25452E-03
   3  Prefactor     .10000E-03    50.630        .72939E-05** at limit **
   4  Prefactor     .10000E-03    4.6962       -.20176E-07** at limit **
   5  Prefactor     .10000E-03    30.351       -.31553E-05** at limit **
   6  Prefactor     .10000E-03    1.7790        .65496E-09** at limit **
   7  Prefactor     1.7945        6.2756        .43171E-05   -.62587E-03
   8  Prefactor     .10000E-03    4.1250       -.52026E-07** at limit **
   9  Prefactor     .10001E-03    1.5684        .87540E-07** at limit **
  10  Prefactor     .10000E-03    22.628        .39874E-06** at limit **
  11  Prefactor     .10000E-03    41.503       -.10471E-04** at limit **
  12  Prefactor     .10000E-03    1.0512        .19206E-06** at limit **
  13  Prefactor     .99673        1.9804       -.55122E-06   -.16773E-02
  14  Prefactor     .10000E-03    5.8215       -.78229E-07** at limit **
  15  norm          4.7010        2.6507       -.38308E-07   -.20047E-03
  16  Prefactor     8.2728        11.995       -.65272E-07   -.15546E-04
  17  norm          .77562        .26146       -.92639E-09   -.35491E-03
  18  norm          .10000E-03    13.184       -.11922E-06** at limit **
  19  Prefactor     .10000E-03    33.979        .71140E-05** at limit **
  20  Prefactor     5.5640        11.381        .81756E-06   -.10945E-03
  21  Prefactor     44.656        34.745       -.19607E-05   -.63353E-04
  22  Normalizat    1.1063        .17027        .21270E-06   -.94007E-04
  23  Prefactor     1.1805        .15806       -.43642E-06   -.32477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.09918
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79454
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.996729
  Prefactor  = 0.0001
  norm       = 4.70096
  Prefactor  = 8.27283
  norm       = 0.77562
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.56396
  Prefactor  = 44.6562
  Normalizat = 1.10634
  Prefactor  = 1.18048
 **********
 **   18 **HESSE 
 **********

 FCN=   8180.573     FROM HESSE     STATUS=OK           380 CALLS     2972 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0992        13.865        .28479E-03   -1.5418    
   3  Prefactor     .10000E-03    50.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7799        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7945        5.6272        .31214E-03   -1.5440    
   8  Prefactor     .10000E-03    4.1311        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    4.3157        .35937E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8928        .17607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .99673        1.8841        .17617E-02   -1.5508    
  14  Prefactor     .10000E-03    5.8236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7010        2.6516        .10668E-03   -1.5274    
  16  Prefactor     8.2728        11.993        .13938E-03   -1.5133    
  17  norm          .77562        .25982        .25800E-04   -1.5532    
  18  norm          .10000E-03    13.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5640        11.258        .17028E-03   -1.5236    
  21  Prefactor     44.656        34.347        .59997E-04   -1.4370    
  22  Normalizat    1.1063        .20282        .27100E-03   -.89549    
  23  Prefactor     1.1805        .18851        .25111E-03   -.86934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0201e-09
Minuit parameter uncertainties:
  1  6.53725e-07
  2  10.7933
  3  0.000437412
  4  2.09545e-06
  5  0.000150182
  6  1.74231e-07
  7  5.62884
  8  4.92958e-07
  9  0.000359453
  10  1.9308e-05
  11  0.000604124
  12  1.83488e-05
  13  1.88418
  14  1.49435e-06
  15  2.65166
  16  11.9963
  17  0.25982
  18  2.5071e-06
  19  0.000354178
  20  11.2625
  21  34.362
  22  0.202963
  23  0.188619
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  4.930e-07  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.180e+00  1.886e-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:  1.106e+00  2.030e-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: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248917/likelihoodResults_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.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) = 8180.57409477
delta logL = -0.001146802937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8180.57294779
delta logL = 1.76089997694e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3663       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1805       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=   8180.573     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     .10199E-03    46.229        .18142E-02** at limit **
   2  Index         2.2929        7.0392        .50000        .35250E-04
   3  Normalizat    1.1063        .13931E-01    .27100E-03   -.70477E-05
   4  Prefactor     1.1805        .13343E-01    .25111E-03   -.11862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101991
  Index      = 2.29289
  Normalizat = 1.10634
  Prefactor  = 1.18048
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10199E-03    192.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2929        6.1464        .50000       -.57213    
   3  Normalizat    1.1063        .29572E-01    .10840E-04   -.89548    
   4  Prefactor     1.1805        .28325E-01    .10044E-04   -.86934    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.67653e-08
Minuit parameter uncertainties:
  1  0.0392434
  2  532.439
  3  0.0295725
  4  0.0283249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248917': 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) = 8180.57294731
delta logL = 6.56534211885e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.020e-04  3.924e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.293e+00  5.324e+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.180e+00  2.832e-02  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:  1.106e+00  2.957e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/248917/cmap_HighResolution_264211201_264470401_4FGL_J1200.6+1229_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-04 20:21:07.198472', job_id='248917', GAL2='1.18', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630812067.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='6.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='96' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:21:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 248917: <4FGL_J1200.6+1229_daily_bin96> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin96> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:05:24 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:05:25 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:05:25 2021
Terminated at Sat Sep  4 20:21:07 2021
Results reported at Sat Sep  4 20:21:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin96 180.173 12.4922 264211201 264470401 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 :                                   820.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

