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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1027
RA = 183.001, Dec = -23.4494
tmin = 505526401, tmax = 505785601
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='408737', job_status='RUN', time_executed='2021-09-05 03:56:11.352389', time_epoch_executed='1630839371.35' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408737/ft1_4FGL_J1212.0-2326_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408737/ft1_4FGL_J1212.0-2326_daily_bin1027.fits outfile=/scratch/kocevski/408737/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1027.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=505526401.0 tmax=505785601.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.52
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.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/408737/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/408737/ltcube_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.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/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/408737/ltcube_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.fits outfile=/scratch/kocevski/408737/expmap_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.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/408737/ltcube_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.fits
.....................!
real 192.79
user 187.34
sys 5.13

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/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.fits scfile=/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits outfile=/scratch/kocevski/408737/cmap_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.fits scfile=/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits outfile=/scratch/kocevski/408737/cmap_HighResolution_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/408737/ft2_4FGL_J1212.0-2326_daily_bin1027.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408737/Model_4FGL_J1212.0-2326_daily_bin1027.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/408737/ft1_filtered_4FGL_J1212.0-2326_daily_bin1027.fits.....................!
real 71.37
user 70.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.419       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    34.940       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9227       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.707       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1227       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.089       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2955       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.5518       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2556       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3366       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99428       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=   8546.042     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2706 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6407       -.35698E-07** at limit **
   2  Prefactor     .10000E-03    20.294       -.93485E-08** at limit **
   3  norm          1.3520        1.1178       -.48788E-08   -.39462E-04
   4  Prefactor     21.410        27.040        .20124E-06   -.23024E-04
   5  Prefactor     10.726        6.1582       -.18422E-06   -.15570E-03
   6  Prefactor     .10000E-03    16.352       -.18833E-06** at limit **
   7  norm          34.937        20.386        .57365E-07   -.53871E-05
   8  Prefactor     1.8607        68.480        .13540E-04    .50703E-04
   9  norm          6.7665        6.3958       -.11669E-05   -.69688E-03
  10  Prefactor     .10000E-03    3.1294        .30823E-07** at limit **
  11  Prefactor     29.459        72.068       -.11833E-04    .30307E-04
  12  Prefactor     25.711        30.611       -.21904E-06   -.17673E-04
  13  Prefactor     1.0847        85.135        .17326E-04   -.84880E-04
  14  Prefactor     .10000E-03    57.977        .66298E-05** at limit **
  15  Prefactor     .10000E-03    5.6487       -.97667E-07** at limit **
  16  Prefactor     .10000E-03    2.5153       -.50712E-07** at limit **
  17  Prefactor     8.6385        2.5818        .97464E-08    .12522E-04
  18  Prefactor     25.087        16.302        .87175E-07   -.90875E-05
  19  norm          1.2954        .98921        .13217E-07   -.41030E-04
  20  Prefactor     .10000E-03    30.940        .22185E-07** at limit **
  21  norm          6.5498        6.4894        .16130E-06   -.30617E-04
  22  Prefactor     6.2569        5.5459       -.12226E-06    .83938E-04
  23  Normalizat    1.3368        .23736        .11005E-07   -.13488E-03
  24  Prefactor     .99424        .11436       -.24458E-06   -.22773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35201
  Prefactor  = 21.4096
  Prefactor  = 10.7258
  Prefactor  = 0.0001
  norm       = 34.9368
  Prefactor  = 1.86066
  norm       = 6.76652
  Prefactor  = 0.0001
  Prefactor  = 29.4592
  Prefactor  = 25.7108
  Prefactor  = 1.08469
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63852
  Prefactor  = 25.0874
  norm       = 1.29536
  Prefactor  = 0.0001
  norm       = 6.54979
  Prefactor  = 6.25689
  Normalizat = 1.33677
  Prefactor  = 0.994244
 **********
 **   18 **HESSE 
 **********

 FCN=   8546.042     FROM HESSE     STATUS=OK           409 CALLS     3115 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3520        1.1201        .37616E-04   -1.5475    
   4  Prefactor     21.410        27.042        .86545E-04   -1.4782    
   5  Prefactor     10.726        6.1711        .12234E-03   -1.5053    
   6  Prefactor     .10000E-03    16.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          34.937        20.389        .67796E-04   -1.4525    
   8  Prefactor     1.8607        66.364        .29965E-03   -1.5435    
   9  norm          6.7665        6.1747        .15434E-03   -1.5188    
  10  Prefactor     .10000E-03    3.1636        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.459        74.225        .73998E-04   -1.4622    
  12  Prefactor     25.711        30.618        .79010E-04   -1.4693    
  13  Prefactor     1.0847        20.100        .11390       -1.5500    
  14  Prefactor     .10000E-03    59.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5315        .14313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6385        2.5815        .79096E-04   -1.5120    
  18  Prefactor     25.087        16.321        .79975E-04   -1.4706    
  19  norm          1.2954        .97975        .76805E-04   -1.5480    
  20  Prefactor     .10000E-03    30.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.5498        6.4716        .15678E-03   -1.5196    
  22  Prefactor     6.2569        5.5306        .16050E-03   -1.5208    
  23  Normalizat    1.3368        .28166        .34792E-03   -.82475    
  24  Prefactor     .99424        .13588        .19882E-03   -.92922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30848e-09
Minuit parameter uncertainties:
  1  1.30308e-05
  2  1.84573e-05
  3  1.1201
  4  27.057
  5  6.17151
  6  1.02926e-05
  7  20.3932
  8  22.2505
  9  6.17528
  10  4.64075e-06
  11  74.4593
  12  30.6368
  13  9.3418
  14  0.000745874
  15  5.05623e-06
  16  1.76634e-06
  17  2.58149
  18  16.3238
  19  0.979759
  20  2.83338e-05
  21  6.47229
  22  5.53103
  23  0.28199
  24  0.135927
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.085e+00  9.342e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.942e-01  1.359e-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.337e+00  2.820e-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: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408737/likelihoodResults_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.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) = 8545.7367445
delta logL = 0.305732550854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8545.70645026
delta logL = 0.336026791274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83202       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1435       1.0000          .0000       10.000    
     3 'Normalizat'    1.2951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0012       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=   8545.706     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      234 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82936        19.756        .12559E-01    .24463E-02
   2  Index         3.1447        2.2167        .85885E-01    .40670E-03
   3  Normalizat    1.2954        .47615E-01    .79611E-01    .31330E-03
   4  Prefactor     1.0010        .23784E-01    .45277E-01   -.25168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.829356
  Index      = 3.1447
  Normalizat = 1.29542
  Prefactor  = 1.00102
 **********
 **   18 **HESSE 
 **********

 FCN=   8545.706     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82936        67.581        .10657E-03   -1.5526    
   2  Index         3.1447        6.5614        .59621E-02   -.38015    
   3  Normalizat    1.2954        .24604        .35240E-03   -.83703    
   4  Prefactor     1.0010        .11482        .19811E-03   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.56856e-09
Minuit parameter uncertainties:
  1  14.9897
  2  5.96264
  3  0.246261
  4  0.114851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408737': 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) = 8545.70644859
delta logL = 0.336028457379

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  8.294e-01  1.499e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  3.145e+00  5.963e+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:  1.001e+00  1.149e-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.295e+00  2.463e-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/408737/cmap_HighResolution_505526401_505785601_4FGL_J1212.0-2326_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-05 04:10:16.111243', job_id='408737', GAL2='1.00', fit_tolerance='1e-08', EG2='1.30', EG='1.34', time_epoch_completed='1630840216.11', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.36e-01', ts2='0.69', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1027' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:10:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 408737: <4FGL_J1212.0-2326_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1027 183.001 -23.4494 505526401 505785601 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 :                                   836.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

