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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin746
RA = 180.055, Dec = 2.0172
tmin = 432691201, tmax = 432950401
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='242632', job_status='RUN', time_executed='2021-09-04 19:47:50.428425', time_epoch_executed='1630810070.43' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242632

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242632/ft1_4FGL_J1200.2+0201_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242632/ft1_4FGL_J1200.2+0201_daily_bin746.fits outfile=/scratch/kocevski/242632/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin746.fits ra=180.055 dec=2.0172 rad=12.0 tmin=432691201.0 tmax=432950401.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 5.76
user 5.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.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/242632/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin746.fits evtable="EVENTS" outfile="/scratch/kocevski/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.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.63
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.fits" evtable="EVENTS" scfile=/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits sctable="SC_DATA" outfile=/scratch/kocevski/242632/ltcube_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.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/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits
.....................!
real 12.29
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/242632/ltcube_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.fits outfile=/scratch/kocevski/242632/expmap_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.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/242632/ltcube_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.fits
.....................!
real 189.56
user 184.85
sys 4.18

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/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.fits scfile=/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits outfile=/scratch/kocevski/242632/cmap_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.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/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.fits scfile=/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits outfile=/scratch/kocevski/242632/cmap_HighResolution_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.fits', '/scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits', expMap='/scratch/kocevski/242632/expmap_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.fits', expCube='/scratch/kocevski/242632/ltcube_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242632/Model_4FGL_J1200.2+0201_daily_bin746.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/242632/ft1_filtered_4FGL_J1200.2+0201_daily_bin746.fits
Spacecraft file(s): /scratch/kocevski/242632/ft2_4FGL_J1200.2+0201_daily_bin746.fits
Exposure map: /scratch/kocevski/242632/expmap_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.fits
Exposure cube: /scratch/kocevski/242632/ltcube_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242632/Model_4FGL_J1200.2+0201_daily_bin746.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) = 5022.41277751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7128       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.520       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8054       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.015       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1940       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    234.35       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0153       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4996       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.8404       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .65745       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5022.405     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4081 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7125        4.7946        .18438E-05    .54771E-04
   2  norm          .10000E-03    8.8750       -.85618E-06** at limit **
   3  Prefactor     4.9536        4.0581       -.69129E-07   -.23047E-03
   4  Prefactor     .10000E-03    33.761       -.73760E-05** at limit **
   5  norm          .10000E-03    6.6197        .21784E-05** at limit **
   6  Prefactor     11.174        6.6725       -.64106E-07   -.22482E-03
   7  Prefactor     16.356        46.143        .56193E-05   -.53832E-05
   8  Prefactor     .10000E-03    96.267       -.28723E-04** at limit **
   9  Prefactor     .10000E-03    5.8192       -.16201E-07** at limit **
  10  Prefactor     .10000E-03    18.640        .52289E-05** at limit **
  11  Prefactor     32.521        19.974       -.72139E-06   -.48804E-04
  12  Prefactor     9.7978        22.041       -.45575E-06   -.44034E-04
  13  Prefactor     .10000E-03    5.0350       -.16400E-06** at limit **
  14  Prefactor     .10000E-03    84.878        .22958E-04** at limit **
  15  Prefactor     58.014        44.072       -.90539E-06   -.12676E-04
  16  Prefactor     .10000E-03    38.619        .10293E-04** at limit **
  17  Prefactor     .10000E-03    36.355        .16898E-05** at limit **
  18  Prefactor     .10000E-03    19.647        .58240E-05** at limit **
  19  Prefactor     .10000E-03    6.7447       -.22511E-05** at limit **
  20  norm          .10000E-03    .96450       -.58062E-07** at limit **
  21  norm          4.1940        4.2663       -.17662E-06   -.19663E-03
  22  Prefactor     .10000E-03    15.841       -.65903E-05** at limit **
  23  norm          .10000E-03    25.821       -.94331E-05** at limit **
  24  Prefactor     234.38        203.15        .17790E-04    .12063E-06
  25  norm          4.0152        1.0707        .36761E-07    .12115E-03
  26  Prefactor     .10000E-03    8.9649        .10175E-05** at limit **
  27  norm          2.4999        2.1835       -.22424E-06   -.38338E-03
  28  Prefactor     .10000E-03    10.357        .54013E-06** at limit **
  29  Prefactor     .10000E-03    17.332        .14196E-05** at limit **
  30  Normalizat    1.8400        .28344       -.67003E-06   -.19955E-05
  31  Prefactor     .65768        .21193       -.34132E-06   -.56178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.71252
  norm       = 0.0001
  Prefactor  = 4.95359
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1736
  Prefactor  = 16.3564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5208
  Prefactor  = 9.79784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.0138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.19397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 234.379
  norm       = 4.01524
  Prefactor  = 0.0001
  norm       = 2.49994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.83996
  Prefactor  = 0.657683
 **********
 **   18 **HESSE 
 **********

 FCN=   5022.405     FROM HESSE     STATUS=OK           612 CALLS     4693 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7125        4.8014        .15187E-03   -1.5274    
   2  norm          .10000E-03    8.8763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9536        4.0676        .12170E-03   -1.5263    
   4  Prefactor     .10000E-03    33.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.6601        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.174        6.6655        .11987E-03   -1.5039    
   7  Prefactor     16.356        46.087        .99045E-04   -1.4899    
   8  Prefactor     .10000E-03    96.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8280        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.521        20.027        .70266E-04   -1.4567    
  12  Prefactor     9.7978        22.094        .12797E-03   -1.5082    
  13  Prefactor     .10000E-03    5.0377        .15531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    84.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     58.014        44.075        .26335E-03   -1.4183    
  16  Prefactor     .10000E-03    38.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7603        .17972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .96710        .67962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1940        4.2591        .13805E-03   -1.5298    
  22  Prefactor     .10000E-03    15.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    25.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     234.38        203.16        .13220E-03   -1.2634    
  25  norm          4.0152        1.0703        .20125E-04   -1.5307    
  26  Prefactor     .10000E-03    9.0187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4999        2.1739        .93466E-04   -1.5392    
  28  Prefactor     .10000E-03    10.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.8400        .33444        .27853E-03   -.68625    
  31  Prefactor     .65768        .24591        .33508E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.389e-10
Minuit parameter uncertainties:
  1  4.8018
  2  5.55631e-06
  3  4.06787
  4  8.71297e-05
  5  3.35844e-06
  6  6.66599
  7  46.1872
  8  3.68272e-05
  9  2.92236e-06
  10  5.57075e-06
  11  20.0314
  12  22.1125
  13  9.48121e-07
  14  2.04951e-05
  15  44.0995
  16  1.78937e-05
  17  5.09171e-06
  18  3.39114e-05
  19  3.41045e-06
  20  5.74412e-07
  21  4.25941
  22  1.22478e-05
  23  5.55961e-06
  24  203.775
  25  1.07027
  26  3.03625e-06
  27  2.17398
  28  4.07991e-06
  29  2.0606e-06
  30  0.33486
  31  0.246319
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.252e+01  2.003e+01  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:  6.577e-01  2.463e-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:  1.840e+00  3.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 7.54e-08
Energy Flux (Fixed Index): 6.58e-05 +/- 4.06e-05

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): 0
logL (Free Index) = 5021.70428505
delta logL = 0.701148486016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5021.70118884
delta logL = 0.70424470164

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5021.701     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.304        19.074        .96292E-04   -.10312E-02
   2  Index         2.6129        .51954        .32482E-02   -.42142E-03
   3  Normalizat    1.7621        .32988        .28295E-03    .57061E-03
   4  Prefactor     .69684        .24831        .32618E-03    .64436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3045
  Index      = 2.61288
  Normalizat = 1.76209
  Prefactor  = 0.696843
 **********
 **   18 **HESSE 
 **********

 FCN=   5021.701     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.304        16.803        .38517E-05   -1.4876    
   2  Index         2.6129        .45736        .12993E-03   -.49772    
   3  Normalizat    1.7621        .32952        .56590E-04   -.70657    
   4  Prefactor     .69684        .24787        .65236E-04   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85299e-09
Minuit parameter uncertainties:
  1  16.8073
  2  0.458193
  3  0.329934
  4  0.248263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242632': 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) = 5021.70118765
delta logL = 0.704245889297

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.730e+01  1.681e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.613e+00  4.582e-01  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:  6.968e-01  2.483e-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:  1.762e+00  3.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.61 +/- 0.46
Photon Flux (Free Index): 1.89e-07 +/- 1.04e-07
Energy Flux (Free Index): 4.91e-05 +/- 2.73e-05

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/242632/cmap_HighResolution_432691201_432950401_4FGL_J1200.2+0201_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='4.91e-05', photon_flux_error='7.54e-08', dlogl='7.04e-01', energy_flux='6.58e-05', photon_flux2='1.89e-07', job_status='DONE', time_completed='2021-09-04 19:59:39.300201', photon_index_error2='0.46', photon_index2='2.61', ts='4.12', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='1.84', time_epoch_completed='1630810779.3', return_code='0', job_id='242632', GAL2='0.70', EG2='1.76', return_code2='0', energy_flux_error='4.06e-05', photon_flux_error2='1.04e-07', ts2='5.54', photon_index='2.11' WHERE bin_id='746' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 242632: <4FGL_J1200.2+0201_daily_bin746> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:39 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:41 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:45:41 2021
Terminated at Sat Sep  4 19:59:40 2021
Results reported at Sat Sep  4 19:59:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin746 180.055 2.0172 432691201 432950401 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

