/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 188 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin329
RA = 180.055, Dec = 2.0172
tmin = 324604801, tmax = 324864001
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='241011', job_status='RUN', time_executed='2021-09-04 19:43:44.956472', time_epoch_executed='1630809824.96' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241011/ft1_4FGL_J1200.2+0201_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241011/ft2_4FGL_J1200.2+0201_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241011/ft1_4FGL_J1200.2+0201_daily_bin329.fits outfile=/scratch/kocevski/241011/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin329.fits ra=180.055 dec=2.0172 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.44
user 9.09
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241011/ft1_filtered_4FGL_J1200.2+0201_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/241011/ft2_4FGL_J1200.2+0201_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/241011/ltcube_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.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/241011/ft2_4FGL_J1200.2+0201_daily_bin329.fits
.....................!
real 11.77
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241011/ft1_filtered_4FGL_J1200.2+0201_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/241011/ft2_4FGL_J1200.2+0201_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/241011/ltcube_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.fits outfile=/scratch/kocevski/241011/expmap_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.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/241011/ltcube_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.fits
.....................!
real 190.89
user 185.94
sys 4.52

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/241011/ft1_filtered_4FGL_J1200.2+0201_daily_bin329.fits scfile=/scratch/kocevski/241011/ft2_4FGL_J1200.2+0201_daily_bin329.fits outfile=/scratch/kocevski/241011/cmap_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241011/ft1_filtered_4FGL_J1200.2+0201_daily_bin329.fits scfile=/scratch/kocevski/241011/ft2_4FGL_J1200.2+0201_daily_bin329.fits outfile=/scratch/kocevski/241011/cmap_HighResolution_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0583       1.0000         .10000E-03   10000.    
     2 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2467       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4442       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    370.53       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.472       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    56.252       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7074       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.332       1.0000         .10000E-03   10000.    
    27 'norm      '    .30338E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0566       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=   1931.202     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4061 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0643        11.040       -.10035E-06   -.15340E-05
   2  norm          .10000E-03    43.946       -.68896E-06** at limit **
   3  Prefactor     .10000E-03    2.1599       -.12520E-06** at limit **
   4  Prefactor     9.2048        63.111        .67932E-06   -.21738E-05
   5  norm          .10000E-03    5.6178       -.20292E-06** at limit **
   6  Prefactor     .10000E-03    5.4606       -.14183E-06** at limit **
   7  Prefactor     .10000E-03    17.597       -.74402E-07** at limit **
   8  Prefactor     31.994        162.92       -.58487E-06   -.35783E-05
   9  Prefactor     16.312        17.260        .62582E-07   -.11549E-05
  10  Prefactor     6.4046        510.85        .15285E-04    .62548E-05
  11  Prefactor     .10000E-03    16.797       -.64689E-06** at limit **
  12  Prefactor     .10000E-03    26.819        .21280E-05** at limit **
  13  Prefactor     44.256        41.337       -.45552E-06   -.16928E-04
  14  Prefactor     370.78        277.52        .70375E-07    .34100E-05
  15  Prefactor     38.618        143.46       -.57583E-05   -.36194E-05
  16  Prefactor     .10000E-03    37.674       -.42378E-06** at limit **
  17  Prefactor     .10000E-03    24.120       -.11543E-06** at limit **
  18  Prefactor     .10000E-03    23.480       -.13717E-06** at limit **
  19  Prefactor     .10000E-03    12.241       -.15495E-06** at limit **
  20  norm          .10000E-03    1.9979       -.53236E-07** at limit **
  21  norm          .10000E-03    5.6392       -.19645E-05** at limit **
  22  Prefactor     .10000E-03    22.775        .66496E-07** at limit **
  23  norm          56.214        77.732        .74861E-06    .31218E-04
  24  Prefactor     .10000E-03    95.847       -.10101E-06** at limit **
  25  norm          1.7079        1.1203        .97425E-07    .11761E-03
  26  Prefactor     20.333        22.998        .23836E-07    .63232E-05
  27  norm          .10001E-03    2.4833        .37283E-06** at limit **
  28  Prefactor     .10000E-03    9.4043       -.26078E-07** at limit **
  29  Prefactor     .10000E-03    77.236        .60409E-07** at limit **
  30  Normalizat    1.0762        .44008       -.35155E-05    .32974E-04
  31  Prefactor     1.0573        .34338        .31366E-05   -.31595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20475
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9937
  Prefactor  = 16.312
  Prefactor  = 6.40463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.2562
  Prefactor  = 370.784
  Prefactor  = 38.6183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 56.2135
  Prefactor  = 0.0001
  norm       = 1.70791
  Prefactor  = 20.3333
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07615
  Prefactor  = 1.05729
 **********
 **   18 **HESSE 
 **********

 FCN=   1931.202     FROM HESSE     STATUS=OK           618 CALLS     4679 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0643        10.996        .14124E-03   -1.5140    
   2  norm          .10000E-03    43.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1725        .63081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2048        62.693        .13180E-03   -1.5101    
   5  norm          .10000E-03    5.6300        .10175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5160        .10026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.599        .18010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.994        163.32        .35353E-03   -1.4576    
   9  Prefactor     16.312        17.253        .99181E-04   -1.4900    
  10  Prefactor     6.4046        510.18        .15810E-03   -1.5202    
  11  Prefactor     .10000E-03    16.908        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.256        41.357        .60263E-04   -1.4376    
  14  Prefactor     370.78        277.98        .10588E-03   -1.1833    
  15  Prefactor     38.618        142.58        .64620E-04   -1.4464    
  16  Prefactor     .10000E-03    37.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.258        .15018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0020        .60658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.7895        .10248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          56.214        77.963        .26743E-03   -1.4207    
  24  Prefactor     .10000E-03    95.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7079        1.1206        .32178E-04   -1.5447    
  26  Prefactor     20.333        22.997        .88828E-04   -1.4806    
  27  norm          .10001E-03    13.580        .12864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.4242        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    77.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0762        .49491        .30552E-03   -.90521    
  31  Prefactor     1.0573        .38558        .24590E-03   -.90843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96613e-10
Minuit parameter uncertainties:
  1  10.9984
  2  3.3432e-05
  3  2.27246e-06
  4  48.1171
  5  6.06836e-06
  6  7.55351e-06
  7  1.87772e-06
  8  145.202
  9  17.2587
  10  115.356
  11  1.68184e-05
  12  7.76311e-05
  13  41.3837
  14  278.989
  15  143.869
  16  2.47785e-05
  17  6.44752e-06
  18  1.32842e-06
  19  2.39144e-06
  20  6.21953e-07
  21  4.0287e-05
  22  8.61124e-06
  23  78.105
  24  4.52666e-05
  25  1.12061
  26  23.007
  27  0.000710441
  28  1.23073e-06
  29  1.63639e-05
  30  0.49706
  31  0.386602
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.682e-05  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.057e+00  3.866e-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.076e+00  4.971e-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: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241011/likelihoodResults_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.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) = 1931.20242588
delta logL = -0.000281403217286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1931.20163915
delta logL = 0.00050532205546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18292E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7568       1.0000          .0000       10.000    
     3 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0595       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=   1931.202     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      273 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18173E-01    1.1133        .12757E-01    .83387E-03
   2  Index         3.7565        .53685        .50000       -.17325E-04
   3  Normalizat    1.0717        .11233E-01    .69189E-01    .59179E-05
   4  Prefactor     1.0595        .90122E-02    .39382E-01    .38931E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0181729
  Index      = 3.75649
  Normalizat = 1.07167
  Prefactor  = 1.05951
 **********
 **   18 **HESSE 
 **********

 FCN=   1931.202     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      308 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18173E-01    777.12        .79228E-03   -1.5681    
   2  Index         3.7565        7.9436        .41703E-02   -.25134    
   3  Normalizat    1.0717        .39675        .30612E-03   -.90667    
   4  Prefactor     1.0595        .20242        .24568E-03   -.90771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.14107e-07
Minuit parameter uncertainties:
  1  7.59596
  2  114.73
  3  0.397856
  4  0.202569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241011': 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) = 1931.20163913
delta logL = 0.000505349447849

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.817e-02  7.596e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.756e+00  1.147e+02  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.060e+00  2.026e-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.072e+00  3.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

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/241011/cmap_HighResolution_324604801_324864001_4FGL_J1200.2+0201_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-04 19:52:39.942850', job_id='241011', GAL2='1.06', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1630810359.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.05e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='329' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:52:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 241011: <4FGL_J1200.2+0201_daily_bin329> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin329> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:26 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:27 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:27 2021
Terminated at Sat Sep  4 19:52:40 2021
Results reported at Sat Sep  4 19:52:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin329 180.055 2.0172 324604801 324864001 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 :                                   530.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

