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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin631
RA = 183.001, Dec = -23.4494
tmin = 402883201, tmax = 403142401
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='406906', job_status='RUN', time_executed='2021-09-05 03:53:15.279827', time_epoch_executed='1630839195.28' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406906/ft1_4FGL_J1212.0-2326_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406906/ft1_4FGL_J1212.0-2326_daily_bin631.fits outfile=/scratch/kocevski/406906/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin631.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=402883201.0 tmax=403142401.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 4.70
user 4.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.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/406906/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin631.fits evtable="EVENTS" outfile="/scratch/kocevski/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.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.48
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/406906/ltcube_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.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/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits
.....................!
real 11.64
user 11.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/406906/ltcube_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.fits outfile=/scratch/kocevski/406906/expmap_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.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/406906/ltcube_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.fits
.....................!
real 193.51
user 189.12
sys 3.91

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/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits scfile=/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits outfile=/scratch/kocevski/406906/cmap_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits scfile=/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits outfile=/scratch/kocevski/406906/cmap_HighResolution_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406906/Model_4FGL_J1212.0-2326_daily_bin631.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/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits.....................!
real 67.30
user 65.98
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits', '/scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits', expMap='/scratch/kocevski/406906/expmap_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.fits', expCube='/scratch/kocevski/406906/ltcube_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406906/Model_4FGL_J1212.0-2326_daily_bin631.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/406906/ft1_filtered_4FGL_J1212.0-2326_daily_bin631.fits
Spacecraft file(s): /scratch/kocevski/406906/ft2_4FGL_J1212.0-2326_daily_bin631.fits
Exposure map: /scratch/kocevski/406906/expmap_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.fits
Exposure cube: /scratch/kocevski/406906/ltcube_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406906/Model_4FGL_J1212.0-2326_daily_bin631.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) = 7949.18885134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.230       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0940       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2086       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9709       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8079       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6588       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1675       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4081       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69188       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=   7949.110     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2876 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5202        .87946E-07** at limit **
   2  Prefactor     10.083        43.948       -.14748E-04   -.83922E-05
   3  norm          3.0943        1.4330        .21497E-06   -.16870E-03
   4  Prefactor     .10000E-03    19.104       -.58144E-05** at limit **
   5  Prefactor     4.6556        4.6470        .42262E-05   -.47889E-03
   6  Prefactor     .10000E-03    6.7132       -.11244E-08** at limit **
   7  norm          .10000E-03    8.7572        .27806E-06** at limit **
   8  Prefactor     .10000E-03    7.9583       -.14382E-05** at limit **
   9  norm          .10000E-03    2.2146       -.69441E-07** at limit **
  10  Prefactor     9.2097        5.7366       -.19576E-05   -.43632E-03
  11  Prefactor     .10000E-03    19.049        .57389E-05** at limit **
  12  Prefactor     13.616        20.376        .20018E-04   -.21470E-04
  13  Prefactor     14.933        31.849        .90911E-05   -.40138E-04
  14  Prefactor     38.589        64.376        .39449E-05   -.33256E-04
  15  Prefactor     22.378        16.353       -.10248E-06   -.41176E-04
  16  Prefactor     .10000E-03    1.5473        .48032E-07** at limit **
  17  Prefactor     5.9708        2.2505        .92085E-07   -.72350E-04
  18  Prefactor     7.8065        10.304       -.29847E-06   -.98302E-04
  19  norm          1.6587        .85753        .76558E-07   -.45888E-03
  20  Prefactor     .10000E-03    31.674        .48597E-07** at limit **
  21  norm          .10000E-03    1.7140        .29866E-06** at limit **
  22  Prefactor     1.1671        2.9534       -.65406E-06   -.13350E-02
  23  Normalizat    1.4083        .20270       -.25657E-05    .29173E-05
  24  Prefactor     .69186        .99338E-01   -.54646E-06   -.20094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.083
  norm       = 3.09434
  Prefactor  = 0.0001
  Prefactor  = 4.65563
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.20968
  Prefactor  = 0.0001
  Prefactor  = 13.6156
  Prefactor  = 14.9329
  Prefactor  = 38.5891
  Prefactor  = 22.3781
  Prefactor  = 0.0001
  Prefactor  = 5.97076
  Prefactor  = 7.80651
  norm       = 1.65874
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16712
  Normalizat = 1.40825
  Prefactor  = 0.691855
 **********
 **   18 **HESSE 
 **********

 FCN=   7949.110     FROM HESSE     STATUS=OK           403 CALLS     3279 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.083        43.978        .12527E-03   -1.5073    
   3  norm          3.0943        1.4322        .69378E-04   -1.5356    
   4  Prefactor     .10000E-03    19.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6556        4.6038        .18164E-03   -1.5276    
   6  Prefactor     .10000E-03    6.7135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.7716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2750        .25896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2097        5.7485        .13207E-03   -1.5101    
  11  Prefactor     .10000E-03    19.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.616        20.351        .10852E-03   -1.4970    
  13  Prefactor     14.933        31.664        .10362E-03   -1.4935    
  14  Prefactor     38.589        64.025        .64522E-04   -1.4465    
  15  Prefactor     22.378        16.354        .84671E-04   -1.4762    
  16  Prefactor     .10000E-03    1.5508        .10828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9708        2.2497        .79787E-04   -1.5219    
  18  Prefactor     7.8065        10.314        .14350E-03   -1.5149    
  19  norm          1.6587        .85376        .56792E-04   -1.5450    
  20  Prefactor     .10000E-03    31.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4260        .22183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1671        2.8701        .23120E-03   -1.5492    
  23  Normalizat    1.4083        .24018        .28636E-03   -.80390    
  24  Prefactor     .69186        .11761        .19537E-03   -1.0385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58775e-09
Minuit parameter uncertainties:
  1  5.0277e-06
  2  42.1676
  3  1.43221
  4  2.39975e-05
  5  4.60418
  6  2.38126e-05
  7  3.96654e-06
  8  3.97713e-05
  9  9.15758e-06
  10  5.74889
  11  0.000102491
  12  20.3615
  13  31.6997
  14  64.1397
  15  16.3577
  16  2.18225e-06
  17  2.24969
  18  10.3167
  19  0.853763
  20  4.59841e-05
  21  5.43498e-05
  22  2.87042
  23  0.240375
  24  0.117654
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.493e+01  3.170e+01  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:  6.919e-01  1.177e-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.408e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/406906/likelihoodResults_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.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): 0
logL (Free Index) = 7948.58693639
delta logL = 0.523386532828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7948.55235731
delta logL = 0.5579656117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1976       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7255       1.0000          .0000       10.000    
     3 'Normalizat'    1.3643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70137       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=   7948.552     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      265 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1895        79.841        .49175E-02    .71624E-03
   2  Index         2.7268        2.2817        .76762E-01    .32347E-03
   3  Normalizat    1.3644        .70359E-01    .65525E-01    .38938E-04
   4  Prefactor     .70131        .31941E-01    .42419E-01    .37828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1895
  Index      = 2.72682
  Normalizat = 1.36435
  Prefactor  = 0.701308
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.552     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1895        144.48        .14824E-03   -1.5299    
   2  Index         2.7268        3.5174        .44428E-02   -.47196    
   3  Normalizat    1.3644        .26742        .28986E-03   -.81665    
   4  Prefactor     .70131        .12463        .19398E-03   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00933e-09
Minuit parameter uncertainties:
  1  49.3342
  2  4.05485
  3  0.267689
  4  0.124681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406906': 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) = 7948.55235396
delta logL = 0.557968967092

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  4.189e+00  4.933e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.727e+00  4.055e+00  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.013e-01  1.247e-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.364e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 2.73 +/- 4.05
Photon Flux (Free Index): 6.58e-08 +/- 9.04e-08
Energy Flux (Free Index): 1.55e-05 +/- 3.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/406906/cmap_HighResolution_402883201_403142401_4FGL_J1212.0-2326_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='5.58e-01', photon_flux2='6.58e-08', job_status='DONE', time_completed='2021-09-05 04:07:05.150232', photon_index_error2='4.05', photon_index2='2.73', ts='0.53', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='3.31e-05', EG='1.41', time_epoch_completed='1630840025.15', return_code='0', job_id='406906', GAL2='0.70', EG2='1.36', return_code2='102', photon_flux_error2='9.04e-08', ts2='1.66', photon_index='1.90' WHERE bin_id='631' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 406906: <4FGL_J1212.0-2326_daily_bin631> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin631> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 03:50:39 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:50:40 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:50:40 2021
Terminated at Sun Sep  5 04:07:05 2021
Results reported at Sun Sep  5 04:07:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin631 183.001 -23.4494 402883201 403142401 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 :                                   828.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

