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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1310
RA = 180.173, Dec = 12.4922
tmin = 578880001, tmax = 579139201
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='255396', job_status='RUN', time_executed='2021-09-04 20:27:02.980898', time_epoch_executed='1630812422.98' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255396/ft1_4FGL_J1200.6+1229_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255396/ft1_4FGL_J1200.6+1229_daily_bin1310.fits outfile=/scratch/kocevski/255396/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1310.fits ra=180.173 dec=12.4922 rad=12.0 tmin=578880001.0 tmax=579139201.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.53
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.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/255396/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1310.fits evtable="EVENTS" outfile="/scratch/kocevski/255396/ft1_filtered_4FGL_J1200.6+1229_daily_bin1310.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/255396/ft1_filtered_4FGL_J1200.6+1229_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/255396/ltcube_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.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/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.fits
.....................!
real 11.85
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255396/ft1_filtered_4FGL_J1200.6+1229_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/255396/ltcube_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.fits outfile=/scratch/kocevski/255396/expmap_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.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/255396/ltcube_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.fits
.....................!
real 193.66
user 188.70
sys 4.33

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/255396/ft1_filtered_4FGL_J1200.6+1229_daily_bin1310.fits scfile=/scratch/kocevski/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.fits outfile=/scratch/kocevski/255396/cmap_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255396/ft1_filtered_4FGL_J1200.6+1229_daily_bin1310.fits scfile=/scratch/kocevski/255396/ft2_4FGL_J1200.6+1229_daily_bin1310.fits outfile=/scratch/kocevski/255396/cmap_HighResolution_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.416       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8295       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    120.08       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   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 '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87266       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93718       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=   5073.009     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     3097 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86062        27.199        .42392E-02    .63882E-03
   2  Prefactor     12.247        13.657        .11446E-03   -.15594E-04
   3  Prefactor     56.780        45.235        .53235E-04    .12241E-03
   4  Prefactor     .10000E-03    4.1348        .14125E-02** at limit **
   5  Prefactor     21.184        78.690        .86553E-04    .60920E-04
   6  Prefactor     8.6032        6.9316        .13669E-03    .10879E-03
   7  Prefactor     12.189        11.421        .11473E-03    .86803E-04
   8  Prefactor     .14887        17.204        .77010E-01    .11256E-03
   9  Prefactor     5.8293        4.0115        .11175E-03   -.12117E-03
  10  Prefactor     .10000E-03    22.554        .18142E-02** at limit **
  11  Prefactor     120.07        61.405        .18362E-03    .11634E-03
  12  Prefactor     1.4740        3.0817        .14602E-03   -.16002E-02
  13  Prefactor     1.4960        3.9532        .18142E-03   -.74458E-03
  14  Prefactor     .10000E-03    23.037        .18142E-02** at limit **
  15  norm          1.5191        2.9042        .16158E-03   -.13031E-03
  16  Prefactor     .10000E-03    11.806        .18142E-02** at limit **
  17  norm          .10000E-03    .15452        .43760E-03** at limit **
  18  norm          .10000E-03    11.455        .18142E-02** at limit **
  19  Prefactor     .10000E-03    56.947        .18142E-02** at limit **
  20  Prefactor     .10000E-03    3.5942        .13170E-02** at limit **
  21  Prefactor     .10000E-03    6.1889        .17302E-02** at limit **
  22  Normalizat    .87255        .22735        .25664E-03   -.25548E-03
  23  Prefactor     .93747        .19880        .23312E-03   -.82271E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.860615
  Prefactor  = 12.2468
  Prefactor  = 56.7805
  Prefactor  = 0.0001
  Prefactor  = 21.184
  Prefactor  = 8.60319
  Prefactor  = 12.1892
  Prefactor  = 0.148872
  Prefactor  = 5.82932
  Prefactor  = 0.0001
  Prefactor  = 120.069
  Prefactor  = 1.47399
  Prefactor  = 1.49602
  Prefactor  = 0.0001
  norm       = 1.51905
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.872553
  Prefactor  = 0.937473
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.009     FROM HESSE     STATUS=OK           358 CALLS     3455 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86062        27.088        .16957E-03   -1.5522    
   2  Prefactor     12.247        13.656        .45784E-05   -1.5008    
   3  Prefactor     56.780        45.145        .10647E-04   -1.4199    
   4  Prefactor     .10000E-03    4.1350        .28249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.184        78.692        .17311E-04   -1.4787    
   6  Prefactor     8.6032        6.9314        .54677E-05   -1.5121    
   7  Prefactor     12.189        11.420        .45892E-05   -1.5010    
   8  Prefactor     .14887        15.735        .82145E-01   -1.5631    
   9  Prefactor     5.8293        4.0110        .44699E-05   -1.5225    
  10  Prefactor     .10000E-03    22.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     120.07        61.396        .73449E-05   -1.3512    
  12  Prefactor     1.4740        3.0772        .58409E-05   -1.5465    
  13  Prefactor     1.4960        3.9468        .72569E-05   -1.5463    
  14  Prefactor     .10000E-03    23.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5191        2.9037        .64632E-05   -1.5461    
  16  Prefactor     .10000E-03    11.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .15477        .87521E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5944        .26341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1890        .34605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87255        .22751        .51328E-04   -.97431    
  23  Prefactor     .93747        .19889        .93248E-05   -.94844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26148e-09
Minuit parameter uncertainties:
  1  9.66084
  2  13.6597
  3  45.1721
  4  7.0384e-06
  5  79.0809
  6  6.93201
  7  11.4225
  8  3.0608
  9  4.01115
  10  0.000131864
  11  61.4289
  12  3.07754
  13  3.94746
  14  0.000213192
  15  2.904
  16  2.25616e-05
  17  4.34881e-06
  18  1.51187e-05
  19  1.97283e-06
  20  4.73963e-06
  21  6.44297e-06
  22  0.227758
  23  0.199049
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.489e-01  3.061e+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

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  9.375e-01  1.990e-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:  8.726e-01  2.278e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255396/likelihoodResults_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.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) = 5073.00947233
delta logL = 7.55658220442e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5073.00928311
delta logL = 0.00019677419732

Fit tolerance = 1e-08

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

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

 FCN=   5073.009     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      249 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46692        39.106        .97456E-01    .22361E-03
   2  Index         2.2242        2.4066        .50000        .12218E-04
   3  Normalizat    .87248        .75413E-02    .44551E-01    .41186E-04
   4  Prefactor     .93719        .71164E-02    .45480E-01    .30407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.466922
  Index      = 2.22424
  Normalizat = 0.872485
  Prefactor  = 0.937191
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.009     FROM HESSE     STATUS=OK            35 CALLS      284 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46692        278.80        .53548E-02   -1.5571    
   2  Index         2.2242        5.5844        .26403E-01   -.58855    
   3  Normalizat    .87248        .20772        .25665E-03   -.97434    
   4  Prefactor     .93719        .19730        .23315E-03   -.94853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27223e-11
Minuit parameter uncertainties:
  1  22.9245
  2  6.83696
  3  0.207911
  4  0.197456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255396': 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): 0
logL (Free Index) = 5073.00906274
delta logL = 0.000417145091888

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  4.669e-01  2.292e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.224e+00  6.837e+00  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:  9.372e-01  1.975e-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:  8.725e-01  2.079e-01  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/255396/cmap_HighResolution_578880001_579139201_4FGL_J1200.6+1229_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-04 20:39:13.347573', job_id='255396', GAL2='0.94', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630813153.35', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.17e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1310' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:39:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 255396: <4FGL_J1200.6+1229_daily_bin1310> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1310> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:35 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:37 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:37 2021
Terminated at Sat Sep  4 20:39:14 2021
Results reported at Sat Sep  4 20:39:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1310 180.173 12.4922 578880001 579139201 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 :                                   661.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

