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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin343
RA = 183.001, Dec = -23.4494
tmin = 328233601, tmax = 328492801
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='405043', job_status='RUN', time_executed='2021-09-05 03:48:26.094422', time_epoch_executed='1630838906.09' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405043/ft1_4FGL_J1212.0-2326_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405043/ft1_4FGL_J1212.0-2326_daily_bin343.fits outfile=/scratch/kocevski/405043/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin343.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=328233601.0 tmax=328492801.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.91
user 3.64
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.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/405043/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.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/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/405043/ltcube_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.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/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits
.....................!
real 12.19
user 11.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/405043/ltcube_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.fits outfile=/scratch/kocevski/405043/expmap_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.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/405043/ltcube_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.fits
.....................!
real 190.94
user 185.59
sys 4.81

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits scfile=/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits outfile=/scratch/kocevski/405043/cmap_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.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=183.001 yref=-23.4494 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/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits scfile=/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits outfile=/scratch/kocevski/405043/cmap_HighResolution_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.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=183.001 yref=-23.4494 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405043/Model_4FGL_J1212.0-2326_daily_bin343.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/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits.....................!
real 52.56
user 51.15
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits', '/scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits', expMap='/scratch/kocevski/405043/expmap_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.fits', expCube='/scratch/kocevski/405043/ltcube_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405043/Model_4FGL_J1212.0-2326_daily_bin343.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405043/ft1_filtered_4FGL_J1212.0-2326_daily_bin343.fits
Spacecraft file(s): /scratch/kocevski/405043/ft2_4FGL_J1212.0-2326_daily_bin343.fits
Exposure map: /scratch/kocevski/405043/expmap_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.fits
Exposure cube: /scratch/kocevski/405043/ltcube_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405043/Model_4FGL_J1212.0-2326_daily_bin343.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) = 5929.71695595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28593E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.4208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .82466E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39308E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12930E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11522E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13550E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14513E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53739E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39737E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14346E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2278       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13865E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .14290E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15435E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6428       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5929.663     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2251 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8807       -.91337E-06** at limit **
   2  Prefactor     .10000E-03    38.373        .34841E-06** at limit **
   3  norm          6.4200        2.4108        .16334E-07   -.76679E-06
   4  Prefactor     .10001E-03    63.870       -.77575E-05** at limit **
   5  Prefactor     .10000E-03    12.920        .29958E-06** at limit **
   6  Prefactor     .10000E-03    29.369        .16726E-05** at limit **
   7  norm          .10000E-03    10.371        .75603E-06** at limit **
   8  Prefactor     .10000E-03    21.792        .19580E-05** at limit **
   9  norm          .10000E-03    2.6311        .37306E-07** at limit **
  10  Prefactor     .10000E-03    5.2840       -.66478E-06** at limit **
  11  Prefactor     .10000E-03    16.302       -.14227E-05** at limit **
  12  Prefactor     .10000E-03    57.682       -.31870E-05** at limit **
  13  Prefactor     .10000E-03    12.685       -.89582E-06** at limit **
  14  Prefactor     .10000E-03    16.584       -.66025E-07** at limit **
  15  Prefactor     .10000E-03    8.9845        .64982E-06** at limit **
  16  Prefactor     4.8351        5.5211        .24069E-05   -.57372E-03
  17  Prefactor     5.2236        2.7591       -.19847E-06   -.12245E-04
  18  Prefactor     .10000E-03    5.6423        .80404E-06** at limit **
  19  norm          4.8858        1.5574        .18654E-07   -.26943E-04
  20  Prefactor     .10000E-03    33.014       -.87398E-06** at limit **
  21  norm          .10000E-03    2.4847        .22528E-07** at limit **
  22  Prefactor     .10000E-03    5.3658        .30754E-06** at limit **
  23  Normalizat    1.6429        .26584       -.34095E-06    .14066E-04
  24  Prefactor     .77557        .12626       -.11995E-06    .20216E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.42005
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83511
  Prefactor  = 5.22361
  Prefactor  = 0.0001
  norm       = 4.88582
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6429
  Prefactor  = 0.775572
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.663     FROM HESSE     STATUS=OK           385 CALLS     2636 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.400        .21410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.4200        2.4159        .70614E-04   -1.5201    
   4  Prefactor     .10001E-03    68.079        .20884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.429        .42543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6563        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3848        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    58.765        .21121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.593        .21267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8351        5.7450        .91470E-03   -1.5268    
  17  Prefactor     5.2236        2.7628        .88849E-04   -1.5251    
  18  Prefactor     .10000E-03    5.6953        .17935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8858        1.5573        .51980E-04   -1.5266    
  20  Prefactor     .10000E-03    33.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4989        .11853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5179        .34839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6429        .31858        .31260E-03   -.73838    
  24  Prefactor     .77557        .15146        .20635E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11186e-10
Minuit parameter uncertainties:
  1  7.03312e-05
  2  6.47753e-05
  3  2.41594
  4  0.00182779
  5  2.75375e-05
  6  0.000267885
  7  7.25801e-05
  8  0.000247407
  9  2.6952e-07
  10  3.42296e-05
  11  0.000171523
  12  0.000614896
  13  9.06027e-05
  14  5.38198e-06
  15  5.94273e-05
  16  5.74563
  17  2.76288
  18  5.64367e-05
  19  1.55732
  20  0.000149777
  21  6.17158e-07
  22  1.72759e-05
  23  0.318974
  24  0.151544
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  9.060e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.756e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.643e+00  3.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405043/likelihoodResults_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.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) = 5929.66384602
delta logL = -0.000372739479644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5929.66347327
delta logL = 1.10285327537e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5929.663     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0435        .90712E-02** at limit **
   2  Index         1.8376        5.5890        .50000        .15192E-04
   3  Normalizat    1.6429        .45662E-02    .70662E-01   -.53156E-05
   4  Prefactor     .77557        .21825E-02    .43399E-01    .47325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.83763
  Normalizat = 1.6429
  Prefactor  = 0.775573
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.663     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8376        8.8418        .50000       -.68474    
   3  Normalizat    1.6429        .11713E-01    .31260E-03   -.73838    
   4  Prefactor     .77557        .56006E-02    .20635E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43959e-08
Minuit parameter uncertainties:
  1  0.000701718
  2  65.9758
  3  0.0117126
  4  0.00560061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405043': 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) = 5929.66347302
delta logL = 2.6202906156e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.017e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.838e+00  6.598e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.756e-01  5.601e-03  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.643e+00  1.171e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/405043/cmap_HighResolution_328233601_328492801_4FGL_J1212.0-2326_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-09-05 03:59:01.145607', job_id='405043', GAL2='0.78', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1630839541.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='343' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 405043: <4FGL_J1212.0-2326_daily_bin343> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin343> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 03:45:18 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:45:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:45:20 2021
Terminated at Sun Sep  5 03:59:01 2021
Results reported at Sun Sep  5 03:59:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin343 183.001 -23.4494 328233601 328492801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

