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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1083
RA = 183.001, Dec = -23.4494
tmin = 520041601, tmax = 520300801
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='408808', job_status='RUN', time_executed='2021-09-05 03:57:17.315308', time_epoch_executed='1630839437.32' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408808

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408808/ft1_4FGL_J1212.0-2326_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408808/ft1_4FGL_J1212.0-2326_daily_bin1083.fits outfile=/scratch/kocevski/408808/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1083.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=520041601.0 tmax=520300801.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.30
user 4.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.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/408808/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.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.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/408808/ltcube_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.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/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits
.....................!
real 11.98
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/408808/ltcube_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.fits outfile=/scratch/kocevski/408808/expmap_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.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/408808/ltcube_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.fits
.....................!
real 191.87
user 186.46
sys 4.97

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/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.fits scfile=/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits outfile=/scratch/kocevski/408808/cmap_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.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/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.fits scfile=/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits outfile=/scratch/kocevski/408808/cmap_HighResolution_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.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/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/408808/ft2_4FGL_J1212.0-2326_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408808/Model_4FGL_J1212.0-2326_daily_bin1083.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/408808/ft1_filtered_4FGL_J1212.0-2326_daily_bin1083.fits.....................!
real 56.34
user 53.89
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.018       1.0000         .10000E-03   10000.    
     3 'norm      '    .39166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.787       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.141       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44547E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13302E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9946       1.0000         .10000E-03   10000.    
    19 'norm      '    .69392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3741       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.1340       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69057       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=   5886.361     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2788 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.299        18.075        .46217E-06    .31517E-04
   2  Prefactor     49.005        73.066       -.42754E-05   -.13664E-03
   3  norm          .39138        1.6952        .98635E-06   -.28600E-03
   4  Prefactor     17.784        33.994       -.38827E-06   -.30429E-04
   5  Prefactor     5.9993        9.5626        .28905E-06   -.41237E-04
   6  Prefactor     .10000E-03    17.482       -.19338E-07** at limit **
   7  norm          37.143        26.909        .18682E-06    .14180E-04
   8  Prefactor     .10000E-03    6.9919        .86130E-07** at limit **
   9  norm          .10000E-03    1.5847        .54112E-08** at limit **
  10  Prefactor     .10000E-03    5.1370        .67620E-08** at limit **
  11  Prefactor     .10000E-03    45.048       -.16398E-06** at limit **
  12  Prefactor     65.370        48.922        .17040E-06    .78676E-05
  13  Prefactor     24.931        26.887        .15632E-05    .31738E-03
  14  Prefactor     .10007E-03    181.37       -.11564E-04** at limit **
  15  Prefactor     .10000E-03    15.837        .26644E-07** at limit **
  16  Prefactor     .10010E-03    5.6399        .49479E-06** at limit **
  17  Prefactor     8.5960        3.4608       -.37468E-08   -.31529E-03
  18  Prefactor     4.9935        12.039        .37887E-05   -.36065E-03
  19  norm          .69379        1.0612        .16658E-06   -.66110E-04
  20  Prefactor     .10000E-03    22.171        .68582E-07** at limit **
  21  norm          3.3734        5.6892        .74048E-06    .10449E-03
  22  Prefactor     .10000E-03    5.2053        .65350E-07** at limit **
  23  Normalizat    2.1341        .30236       -.43199E-06   -.82049E-04
  24  Prefactor     .69058        .13870       -.69526E-06   -.64011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2987
  Prefactor  = 49.0048
  norm       = 0.391379
  Prefactor  = 17.7844
  Prefactor  = 5.99927
  Prefactor  = 0.0001
  norm       = 37.1427
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.3699
  Prefactor  = 24.931
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 0.000100097
  Prefactor  = 8.59604
  Prefactor  = 4.99354
  norm       = 0.69379
  Prefactor  = 0.0001
  norm       = 3.37338
  Prefactor  = 0.0001
  Normalizat = 2.13414
  Prefactor  = 0.690581
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.361     FROM HESSE     STATUS=OK           401 CALLS     3189 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.299        18.090        .10237E-03   -1.4925    
   2  Prefactor     49.005        74.052        .57276E-04   -1.4307    
   3  norm          .39138        1.7587        .18860E-03   -1.5583    
   4  Prefactor     17.784        34.025        .94967E-04   -1.4864    
   5  Prefactor     5.9993        9.6011        .16390E-03   -1.5218    
   6  Prefactor     .10000E-03    17.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.143        26.912        .65763E-04   -1.4488    
   8  Prefactor     .10000E-03    7.0012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5875        .94313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1692        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     65.370        48.914        .49637E-04   -1.4089    
  13  Prefactor     24.931        27.982        .80265E-04   -1.4709    
  14  Prefactor     .10007E-03    202.70        .21213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    92.631        .33613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5960        3.3404        .84681E-04   -1.5122    
  18  Prefactor     4.9935        12.766        .89971E-03   -1.5261    
  19  norm          .69379        .96959        .93842E-03   -1.5541    
  20  Prefactor     .10000E-03    22.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3734        5.6464        .22029E-03   -1.5341    
  22  Prefactor     .10000E-03    5.2363        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.1341        .35755        .31024E-03   -.61230    
  24  Prefactor     .69058        .16322        .23484E-03   -1.0390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75964e-09
Minuit parameter uncertainties:
  1  18.0969
  2  74.1914
  3  1.65916
  4  34.0623
  5  9.60359
  6  2.24785e-06
  7  26.9204
  8  4.15474e-06
  9  6.30202e-07
  10  1.57806e-06
  11  0.00013009
  12  48.9445
  13  27.9964
  14  0.00782081
  15  6.56553e-06
  16  0.00601358
  17  3.34051
  18  12.7732
  19  0.969612
  20  5.21061e-06
  21  5.64726
  22  3.68721e-05
  23  0.358003
  24  0.163334
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  2.493e+01  2.800e+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.906e-01  1.633e-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:  2.134e+00  3.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 183.001 -23.449
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 3.42e-05

TS (Fixed Index): 1.34
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408808/likelihoodResults_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.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) = 5886.25788066
delta logL = 0.103424628304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5886.25500806
delta logL = 0.106297228265

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.713        540.13        .25227E-02    .34484E-03
   2  Index         2.1947        3.2863        .10269        .13397E-03
   3  Normalizat    2.1220        .13410        .70285E-01   -.80401E-05
   4  Prefactor     .69266        .52573E-01    .42291E-01    .18196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7132
  Index      = 2.19471
  Normalizat = 2.12198
  Prefactor  = 0.692663
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.255     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.713        32.532        .50454E-03   -1.4915    
   2  Index         2.1947        .80584        .58720E-02   -.59566    
   3  Normalizat    2.1220        .34349        .31085E-03   -.61527    
   4  Prefactor     .69266        .16120        .23447E-03   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3226e-08
Minuit parameter uncertainties:
  1  32.5685
  2  0.81102
  3  0.343899
  4  0.161311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408808': 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): 0
logL (Free Index) = 5886.25497857
delta logL = 0.106326721494

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.571e+01  3.257e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.195e+00  8.110e-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.927e-01  1.613e-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:  2.122e+00  3.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 2.19 +/- 0.81
Photon Flux (Free Index): 4.86e-08 +/- 5.71e-08
Energy Flux (Free Index): 2.21e-05 +/- 3.10e-05

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/408808/cmap_HighResolution_520041601_520300801_4FGL_J1212.0-2326_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.53e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.21e-05', photon_flux_error='3.78e-08', dlogl='1.06e-01', energy_flux='3.04e-05', photon_flux2='4.86e-08', job_status='DONE', time_completed='2021-09-05 04:08:38.952400', photon_index_error2='0.81', photon_index2='2.19', ts='1.34', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='3.10e-05', EG='2.13', time_epoch_completed='1630840118.95', return_code='0', job_id='408808', GAL2='0.69', EG2='2.12', return_code2='0', energy_flux_error='3.42e-05', photon_flux_error2='5.71e-08', ts2='1.55', photon_index='1.90' WHERE bin_id='1083' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:08:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 408808: <4FGL_J1212.0-2326_daily_bin1083> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1083 183.001 -23.4494 520041601 520300801 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 :                                   675.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

