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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin463
RA = 180.055, Dec = 2.0172
tmin = 359337601, tmax = 359596801
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='241221', job_status='RUN', time_executed='2021-09-04 19:43:41.591065', time_epoch_executed='1630809821.59' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241221

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241221/ft1_4FGL_J1200.2+0201_daily_bin463.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241221/ft1_4FGL_J1200.2+0201_daily_bin463.fits outfile=/scratch/kocevski/241221/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin463.fits ra=180.055 dec=2.0172 rad=12.0 tmin=359337601.0 tmax=359596801.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.32
user 3.10
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.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/241221/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin463.fits evtable="EVENTS" outfile="/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits" evtable="EVENTS" scfile=/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits sctable="SC_DATA" outfile=/scratch/kocevski/241221/ltcube_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.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/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits
.....................!
real 12.00
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/241221/ltcube_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.fits outfile=/scratch/kocevski/241221/expmap_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.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/241221/ltcube_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.fits
.....................!
real 190.37
user 184.98
sys 4.77

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits scfile=/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits outfile=/scratch/kocevski/241221/cmap_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.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.055 yref=2.0172 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits scfile=/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits outfile=/scratch/kocevski/241221/cmap_HighResolution_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.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.055 yref=2.0172 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241221/Model_4FGL_J1200.2+0201_daily_bin463.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/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits.....................!
real 51.22
user 49.53
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits', '/scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits', expMap='/scratch/kocevski/241221/expmap_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.fits', expCube='/scratch/kocevski/241221/ltcube_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241221/Model_4FGL_J1200.2+0201_daily_bin463.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241221/ft1_filtered_4FGL_J1200.2+0201_daily_bin463.fits
Spacecraft file(s): /scratch/kocevski/241221/ft2_4FGL_J1200.2+0201_daily_bin463.fits
Exposure map: /scratch/kocevski/241221/expmap_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.fits
Exposure cube: /scratch/kocevski/241221/ltcube_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241221/Model_4FGL_J1200.2+0201_daily_bin463.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) = 5590.74228953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4119       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    110.07       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0765       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11977E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7397       1.0000         .10000E-03   10000.    
    21 'norm      '    .13849E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5732       1.0000         .10000E-03   10000.    
    23 'norm      '    .19344E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5502       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9441       1.0000         .10000E-03   10000.    
    27 'norm      '    .22670       1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.057       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99026       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1866       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5590.730     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     3506 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3127       -.44471E-07** at limit **
   2  norm          .10004E-03    3.4028        .32796E-05** at limit **
   3  Prefactor     1.4123        2.4838       -.10019E-05   -.84968E-04
   4  Prefactor     .10101E-03    12.320        .42737E-04** at limit **
   5  norm          .10000E-03    3.8353       -.22177E-06** at limit **
   6  Prefactor     .10000E-03    4.9340        .65289E-06** at limit **
   7  Prefactor     .10000E-03    8.2999        .68338E-05** at limit **
   8  Prefactor     .10000E-03    6.7037        .94171E-05** at limit **
   9  Prefactor     .10000E-03    2.4225       -.26164E-06** at limit **
  10  Prefactor     .10214E-03    19.144        .73105E-05** at limit **
  11  Prefactor     .10000E-03    12.394       -.49737E-05** at limit **
  12  Prefactor     15.605        1.0174       -.36613E-06   -.42711E-04
  13  Prefactor     .10003E-03    5.2668       -.80306E-05** at limit **
  14  Prefactor     .10071E-03    5.9025       -.23232E-04** at limit **
  15  Prefactor     13.540        2.0909       -.52779E-05    .10330E-02
  16  Prefactor     110.06        1.7071       -.14369E-05    .30730E-02
  17  Prefactor     4.0204        5.3266       -.21107E-04    .27312E-04
  18  Prefactor     .10022E-03    11.760       -.36365E-04** at limit **
  19  Prefactor     .10047E-03    5.5861       -.15865E-04** at limit **
  20  norm          1.7397        1.9280        .16143E-06    .86209E-04
  21  norm          .10000E-03    4.2621       -.10261E-06** at limit **
  22  Prefactor     8.5690        1.0288       -.15600E-07    .18547E-04
  23  norm          .10520E-03    109.98       -.18763E-03** at limit **
  24  Prefactor     .10009E-03    42.227        .91140E-04** at limit **
  25  norm          1.5486        .68888        .18003E-06    .25815E-03
  26  Prefactor     2.9458        1.0255       -.79451E-06   -.38887E-04
  27  norm          .22661        3.2739       -.38324E-07    .12328E-03
  28  Prefactor     25.057        1.0027       -.14661E-06   -.25429E-04
  29  Prefactor     .10284E-03    33.052        .31145E-04** at limit **
  30  Normalizat    .99043        .24993        .39576E-05    .48958E-04
  31  Prefactor     1.1864        .20415       -.11312E-05    .65726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100043
  Prefactor  = 1.4123
  Prefactor  = 0.000101005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102144
  Prefactor  = 0.000100001
  Prefactor  = 15.6051
  Prefactor  = 0.000100032
  Prefactor  = 0.000100708
  Prefactor  = 13.5401
  Prefactor  = 110.059
  Prefactor  = 4.02037
  Prefactor  = 0.000100221
  Prefactor  = 0.000100467
  norm       = 1.73968
  norm       = 0.0001
  Prefactor  = 8.56904
  norm       = 0.000105199
  Prefactor  = 0.000100091
  norm       = 1.54857
  Prefactor  = 2.94575
  norm       = 0.226612
  Prefactor  = 25.0574
  Prefactor  = 0.000102836
  Normalizat = 0.990427
  Prefactor  = 1.1864
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.730     FROM HESSE     STATUS=OK           690 CALLS     4196 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    8.1755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4123        2.5235        .91135E-02   -1.5470    
   4  Prefactor     .10101E-03    22.551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.8047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10214E-03    34.126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.605        13.602        .25347E-02   -1.4918    
  13  Prefactor     .10003E-03    8.0672        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10071E-03    25.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.540        36.502        .27203E-02   -1.4972    
  16  Prefactor     110.06        60.512        .95848E-03   -1.3606    
  17  Prefactor     4.0204        38.645        .49922E-02   -1.5307    
  18  Prefactor     .10022E-03    29.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10047E-03    24.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7397        1.9430        .79525E-02   -1.5444    
  21  norm          .10000E-03    2.4382        .38510E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.5690        18.562        .34226E-02   -1.5122    
  23  norm          .10520E-03    138.63        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10009E-03    73.698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5486        .73039        .85528E-02   -1.5459    
  26  Prefactor     2.9458        11.140        .59176E-02   -1.5365    
  27  norm          .22661        1.6263        .27714E-01   -1.5613    
  28  Prefactor     25.057        13.107        .20006E-02   -1.4706    
  29  Prefactor     .10284E-03    83.854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99043        .22386        .67919E-01   -.93352    
  31  Prefactor     1.1864        .17549        .51813E-01   -.86751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75522e-07
Minuit parameter uncertainties:
  1  1.10965e-06
  2  0.0011927
  3  2.52369
  4  0.00952712
  5  1.80378e-06
  6  8.16653e-07
  7  0.000159474
  8  0.00018885
  9  6.33167e-07
  10  0.0171187
  11  0.000173993
  12  13.6044
  13  0.00101251
  14  0.00850552
  15  36.5621
  16  60.5459
  17  24.9499
  18  0.00510195
  19  0.00678498
  20  1.94308
  21  3.68921e-07
  22  18.5744
  23  0.0538177
  24  0.00517257
  25  0.730399
  26  11.1474
  27  1.21393
  28  13.109
  29  0.0308827
  30  0.22407
  31  0.175576
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.740e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.186e+00  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.904e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241221/likelihoodResults_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.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) = 5590.73001049
delta logL = -0.000384411143386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5590.72962624
delta logL = -1.67290636455e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1888       1.0000          .0000       10.000    
     3 'Normalizat'    .99071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5589.405     FROM MIGRAD    STATUS=CONVERGED    220 CALLS      382 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11902E-02    .34920E-01    .46308E-03** at limit **
   2  Index         6.1893        3.0192        .86629E-01    .26006E-04
   3  Normalizat    .85461        .27500        .72379E-01   -.27123E-03
   4  Prefactor     1.2598        .15973        .50481E-01   -.37833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00119022
  Index      = 6.18925
  Normalizat = 0.854607
  Prefactor  = 1.2598
 **********
 **   18 **HESSE 
 **********

 FCN=   5589.405     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      415 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11902E-02    .33921E-01    .19084E-04   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.1893        3.3998        .33485E-02    .24015    
   3  Normalizat    .85461        .25464        .32027E-03   -.98074    
   4  Prefactor     1.2598        .20656        .22316E-03   -.84511    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8338e-10
Minuit parameter uncertainties:
  1  0.0121624
  2  3.76611
  3  0.255003
  4  0.206696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241221': 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) = 5589.40493697
delta logL = 1.32468910992

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.190e-03  1.216e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  6.189e+00  3.766e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.260e+00  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.546e-01  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 180.055 2.017
Photon Index (Free Index): 6.19 +/- 3.77
Photon Flux (Free Index): 1.14e-07 +/- 2.27e-06
Energy Flux (Free Index): 1.40e-05 +/- 2.79e-04

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/241221/cmap_HighResolution_359337601_359596801_4FGL_J1200.2+0201_daily_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='1.32e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-04 19:57:17.590195', photon_index_error2='3.77', photon_index2='6.19', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='2.79e-04', EG='0.99', time_epoch_completed='1630810637.59', return_code='0', job_id='241221', GAL2='1.26', EG2='0.85', return_code2='102', photon_flux_error2='2.27e-06', ts2='2.94', photon_index='2.11' WHERE bin_id='463' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:57:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 241221: <4FGL_J1200.2+0201_daily_bin463> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin463> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:43 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:40:44 2021
Terminated at Sat Sep  4 19:57:18 2021
Results reported at Sat Sep  4 19:57:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin463 180.055 2.0172 359337601 359596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

