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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1045
RA = 183.001, Dec = -23.4494
tmin = 510192001, tmax = 510451201
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='408767', job_status='RUN', time_executed='2021-09-05 03:56:37.368393', time_epoch_executed='1630839397.37' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408767/ft1_4FGL_J1212.0-2326_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408767/ft1_4FGL_J1212.0-2326_daily_bin1045.fits outfile=/scratch/kocevski/408767/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1045.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=510192001.0 tmax=510451201.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.33
user 4.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.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/408767/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/408767/ft1_filtered_4FGL_J1212.0-2326_daily_bin1045.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/408767/ft1_filtered_4FGL_J1212.0-2326_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/408767/ltcube_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.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/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.fits
.....................!
real 11.90
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408767/ft1_filtered_4FGL_J1212.0-2326_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/408767/ltcube_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.fits outfile=/scratch/kocevski/408767/expmap_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.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/408767/ltcube_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.fits
.....................!
real 191.58
user 186.04
sys 5.08

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/408767/ft1_filtered_4FGL_J1212.0-2326_daily_bin1045.fits scfile=/scratch/kocevski/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.fits outfile=/scratch/kocevski/408767/cmap_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.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.53
user 0.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408767/ft1_filtered_4FGL_J1212.0-2326_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/408767/ft2_4FGL_J1212.0-2326_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408767/Model_4FGL_J1212.0-2326_daily_bin1045.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/408767/ft1_filtered_4FGL_J1212.0-2326_daily_bin1045.fits.....................!
real 60.88
user 59.39
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2581       1.0000         .10000E-03   10000.    
     9 'norm      '    .12945E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16295E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9571       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3669       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0279       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7771       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7382       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62622       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=   6886.038     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2682 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7967        6.5600       -.32148E-06    .26200E-04
   2  Prefactor     .10000E-03    58.658        .12524E-04** at limit **
   3  norm          1.7250        1.2919       -.32648E-06   -.58324E-03
   4  Prefactor     .10000E-03    15.069        .46642E-05** at limit **
   5  Prefactor     .10000E-03    1.0629        .63407E-08** at limit **
   6  Prefactor     .10000E-03    7.4877        .28033E-06** at limit **
   7  norm          .10000E-03    12.141       -.47679E-05** at limit **
   8  Prefactor     9.2467        17.030        .25607E-05    .16952E-03
   9  norm          .10000E-03    6.4280       -.25811E-05** at limit **
  10  Prefactor     .10001E-03    3.8481        .18353E-05** at limit **
  11  Prefactor     18.990        38.378       -.10725E-04    .29190E-04
  12  Prefactor     27.432        31.305       -.43419E-04   -.29625E-04
  13  Prefactor     .10000E-03    7.0805        .16964E-05** at limit **
  14  Prefactor     .10000E-03    18.736       -.35667E-05** at limit **
  15  Prefactor     .10000E-03    14.648        .54027E-05** at limit **
  16  Prefactor     .10000E-03    6.0615        .71639E-06** at limit **
  17  Prefactor     9.1815        3.0302       -.19886E-06    .30227E-04
  18  Prefactor     .10000E-03    21.425       -.42652E-05** at limit **
  19  norm          1.9571        1.2793       -.17709E-06   -.23200E-03
  20  Prefactor     9.3548        167.89       -.36356E-04    .32266E-05
  21  norm          5.0294        6.5498        .13686E-05   -.10928E-03
  22  Prefactor     1.7763        4.1518       -.62190E-06   -.54716E-03
  23  Normalizat    1.7390        .23542        .55780E-05   -.98855E-04
  24  Prefactor     .62589        .11050        .15945E-05    .27216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.79665
  Prefactor  = 0.0001
  norm       = 1.72503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.24672
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 18.9899
  Prefactor  = 27.432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.18153
  Prefactor  = 0.0001
  norm       = 1.95707
  Prefactor  = 9.3548
  norm       = 5.02938
  Prefactor  = 1.77626
  Normalizat = 1.73895
  Prefactor  = 0.625886
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.038     FROM HESSE     STATUS=OK           395 CALLS     3077 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7967        6.5603        .16680E-03   -1.5226    
   2  Prefactor     .10000E-03    59.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7250        1.2819        .78891E-04   -1.5445    
   4  Prefactor     .10000E-03    15.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0648        .83543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2467        16.970        .13172E-03   -1.5100    
   9  norm          .10000E-03    6.5243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    3.9286        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.990        38.332        .91888E-04   -1.4836    
  12  Prefactor     27.432        31.346        .76418E-04   -1.4660    
  13  Prefactor     .10000E-03    7.0848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1815        3.0279        .80472E-04   -1.5102    
  18  Prefactor     .10000E-03    21.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9571        1.2709        .71655E-04   -1.5428    
  20  Prefactor     9.3548        165.71        .13094E-03   -1.5096    
  21  norm          5.0294        6.4771        .17933E-03   -1.5259    
  22  Prefactor     1.7763        4.0837        .24038E-03   -1.5441    
  23  Normalizat    1.7390        .28010        .28095E-03   -.71268    
  24  Prefactor     .62589        .13115        .21199E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06442e-09
Minuit parameter uncertainties:
  1  6.56106
  2  0.000179013
  3  1.28187
  4  2.04545e-05
  5  2.78645e-06
  6  1.15924e-05
  7  1.55e-05
  8  16.9789
  9  5.26251e-05
  10  0.000357625
  11  38.3813
  12  31.3651
  13  3.3245e-05
  14  7.13274e-05
  15  0.00018289
  16  4.84567e-05
  17  3.02791
  18  0.000112412
  19  1.27093
  20  78.9999
  21  6.47795
  22  4.0843
  23  0.280355
  24  0.131216
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.325e-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:  6.259e-01  1.312e-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.739e+00  2.804e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408767/likelihoodResults_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.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) = 6886.03882147
delta logL = -0.000669910044053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6886.03815177
delta logL = -2.12659870158e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8765       1.0000          .0000       10.000    
     3 'Normalizat'    1.7391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62582       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=   6886.038     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.741        .90712E-02** at limit **
   2  Index         1.8554        8.3328        .50000        .21818E-04
   3  Normalizat    1.7390        .19180E-01    .63527E-01   -.82485E-05
   4  Prefactor     .62588        .92778E-02    .41405E-01    .78106E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85544
  Normalizat = 1.73896
  Prefactor  = 0.625884
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.038     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1146.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8554        5.3517        .50000       -.68015    
   3  Normalizat    1.7390        .10013        .28095E-03   -.71268    
   4  Prefactor     .62588        .48429E-01    .21199E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38126e-08
Minuit parameter uncertainties:
  1  0.000380732
  2  49.62
  3  0.100138
  4  0.0484325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408767': 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) = 6886.03815132
delta logL = 2.45253431785e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.807e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.855e+00  4.962e+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:  6.259e-01  4.843e-02  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.739e+00  1.001e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/408767/cmap_HighResolution_510192001_510451201_4FGL_J1212.0-2326_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-05 04:08:45.986282', job_id='408767', GAL2='0.63', fit_tolerance='1e-08', EG2='1.74', EG='1.74', time_epoch_completed='1630840125.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1045' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:08:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 408767: <4FGL_J1212.0-2326_daily_bin1045> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1045> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:52 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:55 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:55:55 2021
Terminated at Sun Sep  5 04:08:46 2021
Results reported at Sun Sep  5 04:08:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1045 183.001 -23.4494 510192001 510451201 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 :                                   720.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

