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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1527
RA = 180.173, Dec = 12.4922
tmin = 635126401, tmax = 635385601
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='255713', job_status='RUN', time_executed='2021-09-04 20:28:57.033222', time_epoch_executed='1630812537.03' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255713/ft1_4FGL_J1200.6+1229_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255713/ft2_4FGL_J1200.6+1229_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255713/ft1_4FGL_J1200.6+1229_daily_bin1527.fits outfile=/scratch/kocevski/255713/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1527.fits ra=180.173 dec=12.4922 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.90
user 2.73
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255713/ft2_4FGL_J1200.6+1229_daily_bin1527.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/255713/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1527.fits evtable="EVENTS" outfile="/scratch/kocevski/255713/ft1_filtered_4FGL_J1200.6+1229_daily_bin1527.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.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255713/ft1_filtered_4FGL_J1200.6+1229_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/255713/ft2_4FGL_J1200.6+1229_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/255713/ltcube_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.fits outfile=/scratch/kocevski/255713/expmap_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.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/255713/ltcube_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.fits
.....................!
real 190.44
user 185.39
sys 4.73

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/255713/ft1_filtered_4FGL_J1200.6+1229_daily_bin1527.fits scfile=/scratch/kocevski/255713/ft2_4FGL_J1200.6+1229_daily_bin1527.fits outfile=/scratch/kocevski/255713/cmap_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255713/ft1_filtered_4FGL_J1200.6+1229_daily_bin1527.fits scfile=/scratch/kocevski/255713/ft2_4FGL_J1200.6+1229_daily_bin1527.fits outfile=/scratch/kocevski/255713/cmap_HighResolution_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.763       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.165       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17487E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22112       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0273       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17290E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1834       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70091       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=   1766.402     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2555 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.721        89.480       -.11666E-04   -.15619E-04
   2  Prefactor     23.120        90.267        .80872E-05   -.40624E-05
   3  Prefactor     .10000E-03    153.95       -.59145E-05** at limit **
   4  Prefactor     .10000E-03    15.405        .97332E-06** at limit **
   5  Prefactor     .10000E-03    136.92        .38520E-05** at limit **
   6  Prefactor     .10000E-03    12.006        .13313E-06** at limit **
   7  Prefactor     22.768        28.837       -.86793E-06   -.83184E-05
   8  Prefactor     .10000E-03    22.962        .37996E-06** at limit **
   9  Prefactor     33.961        15.348       -.49980E-06   -.58045E-03
  10  Prefactor     .10000E-03    81.791        .10386E-05** at limit **
  11  Prefactor     60.129        112.93        .50930E-05   -.38322E-05
  12  Prefactor     .10000E-03    36.357        .10667E-04** at limit **
  13  Prefactor     .10000E-03    2.1660        .14045E-06** at limit **
  14  Prefactor     .10000E-03    31.547        .21589E-05** at limit **
  15  norm          6.4408        8.7575        .29039E-07   -.53032E-04
  16  Prefactor     .10000E-03    46.517       -.82822E-06** at limit **
  17  norm          .22120        .33962       -.14515E-06   -.10492E-02
  18  norm          6.0213        197.72       -.59826E-06   -.20007E-05
  19  Prefactor     .10000E-03    479.72       -.29972E-05** at limit **
  20  Prefactor     .10000E-03    5.8194        .42334E-07** at limit **
  21  Prefactor     .10000E-03    16.695        .46473E-07** at limit **
  22  Normalizat    1.1831        .40476       -.51709E-05   -.56228E-04
  23  Prefactor     .70122        .33600        .37012E-05   -.23672E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7209
  Prefactor  = 23.1197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7677
  Prefactor  = 0.0001
  Prefactor  = 33.9608
  Prefactor  = 0.0001
  Prefactor  = 60.129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.44075
  Prefactor  = 0.0001
  norm       = 0.221202
  norm       = 6.0213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18308
  Prefactor  = 0.701218
 **********
 **   18 **HESSE 
 **********

 FCN=   1766.402     FROM HESSE     STATUS=OK           364 CALLS     2919 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.721        89.179        .10854E-03   -1.4967    
   2  Prefactor     23.120        90.416        .83213E-04   -1.4746    
   3  Prefactor     .10000E-03    153.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.428        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    136.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.010        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.768        28.808        .83954E-04   -1.4753    
   8  Prefactor     .10000E-03    22.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.961        14.903        .68779E-04   -1.4542    
  10  Prefactor     .10000E-03    81.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.129        112.70        .51727E-04   -1.4156    
  12  Prefactor     .10000E-03    36.332        .18485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1697        .60397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4408        8.7127        .11908E-03   -1.5200    
  16  Prefactor     .10000E-03    46.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22120        .32659        .29036E-03   -1.5614    
  18  norm          6.0213        196.00        .16355E-03   -1.5217    
  19  Prefactor     .10000E-03    479.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8230        .99031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.702        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1831        .45084        .26718E-03   -.87127    
  23  Prefactor     .70122        .37723        .29136E-03   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05453e-09
Minuit parameter uncertainties:
  1  70.1131
  2  90.9585
  3  8.98344e-05
  4  2.40628e-05
  5  0.000181251
  6  1.13072e-05
  7  28.8257
  8  3.65059e-05
  9  14.9042
  10  7.02515e-05
  11  113.102
  12  3.74892e-05
  13  6.27572e-06
  14  3.37519e-05
  15  8.71442
  16  3.27255e-05
  17  0.326598
  18  68.9544
  19  2.25244e-05
  20  5.35416e-06
  21  2.54138e-05
  22  0.45233
  23  0.378613
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.651e-05  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:  7.012e-01  3.786e-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.183e+00  4.523e-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: 2.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255713/likelihoodResults_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.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) = 1766.40233687
delta logL = -0.000205285401989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1766.40213225
delta logL = -6.71465613777e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8666       1.0000          .0000       10.000    
     3 'Normalizat'    1.1830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70130       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=   1766.402     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    145.78        .17381E-02** at limit **
   2  Index         2.8121        8.5038        .50000        .91821E-05
   3  Normalizat    1.1831        .26540E-01    .26718E-03    .98506E-05
   4  Prefactor     .70123        .22962E-01    .29137E-03    .12242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010133
  Index      = 2.81208
  Normalizat = 1.18307
  Prefactor  = 0.701228
 **********
 **   18 **HESSE 
 **********

 FCN=   1766.402     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10133E-03    619.55        .34762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8121        5.2593        .50000       -.45291    
   3  Normalizat    1.1831        .56802E-01    .10687E-04   -.87128    
   4  Prefactor     .70123        .49144E-01    .11655E-04   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.43911e-09
Minuit parameter uncertainties:
  1  0.0580271
  2  800.475
  3  0.0568052
  4  0.0491473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255713': 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) = 1766.40213215
delta logL = -5.7074362303e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.013e-04  5.803e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.812e+00  8.005e+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:  7.012e-01  4.915e-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.183e+00  5.681e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/255713/cmap_HighResolution_635126401_635385601_4FGL_J1200.6+1229_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-02', job_status='DONE', photon_flux_upper_limit='2.20e-07', time_completed='2021-09-04 20:38:50.198828', job_id='255713', GAL2='0.70', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630813130.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='-5.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1527' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:38:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 255713: <4FGL_J1200.6+1229_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1527> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:57 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25: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:25:58 2021
Terminated at Sat Sep  4 20:38:50 2021
Results reported at Sat Sep  4 20:38:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1527 180.173 12.4922 635126401 635385601 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 :                                   420.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             191.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

