Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 189.7 kB / 16.75 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.695 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 103.7 kB / 290.6 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04804/0.04804, allocations: 8.092 MB / 348.9 MB, free: 5.355 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - Absyn->SCode: time 2.515e-05/2.518e-05, allocations: 3.125 kB / 411.1 MB, free: 43.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003712/0.003751, allocations: 2.431 MB / 413.6 MB, free: 42.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007978/0.004571, allocations: 0.4949 MB / 414 MB, free: 42.1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.004717, allocations: 8.562 kB / 414.1 MB, free: 42.1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004331/0.005157, allocations: 87.41 kB / 414.1 MB, free: 42.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.005364, allocations: 70.8 kB / 414.2 MB, free: 42.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.005594, allocations: 73.38 kB / 414.3 MB, free: 42.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.005913, allocations: 278.2 kB / 414.6 MB, free: 41.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.006139, allocations: 106.9 kB / 414.7 MB, free: 41.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.006273, allocations: 119.1 kB / 414.8 MB, free: 41.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.006478, allocations: 135.4 kB / 414.9 MB, free: 41.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.262e-05/0.006539, allocations: 27.66 kB / 414.9 MB, free: 41.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.006823, allocations: 140.9 kB / 415.1 MB, free: 41.74 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003178/0.007149, allocations: 409 kB / 415.5 MB, free: 41.49 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001315/0.007288, allocations: 248.5 kB / 415.7 MB, free: 41.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.91e-05/0.007345, allocations: 37.75 kB / 415.8 MB, free: 41.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.894e-05/0.007391, allocations: 4.031 kB / 415.8 MB, free: 41.3 MB / 286.1 MB Notification: Performance of Bindings: time 0.001042/0.008439, allocations: 1.194 MB / 416.9 MB, free: 40.45 MB / 286.1 MB Notification: Performance of simplify1: time 0.000102/0.008552, allocations: 83.75 kB / 417 MB, free: 40.42 MB / 286.1 MB Notification: Performance of Alias: time 0.001069/0.009627, allocations: 0.8529 MB / 417.9 MB, free: 39.9 MB / 286.1 MB Notification: Performance of simplify2: time 3.361e-05/0.009673, allocations: 36.5 kB / 417.9 MB, free: 39.89 MB / 286.1 MB Notification: Performance of Events: time 0.0004842/0.01016, allocations: 405.2 kB / 418.3 MB, free: 39.66 MB / 286.1 MB Notification: Performance of DetectStates: time 0.0003049/0.01048, allocations: 225.6 kB / 418.5 MB, free: 39.52 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004649/0.01095, allocations: 426.9 kB / 419 MB, free: 39.19 MB / 286.1 MB Notification: Performance of Causalize: time 0.001213/0.01217, allocations: 1.202 MB / 420.2 MB, free: 38.53 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004179/0.0126, allocations: 261.6 kB / 420.4 MB, free: 38.41 MB / 286.1 MB Notification: Performance of Causalize: time 0.003553/0.01616, allocations: 3.267 MB / 423.7 MB, free: 36.85 MB / 286.1 MB Notification: Performance of Tearing: time 0.0003748/0.01655, allocations: 381.7 kB / 424 MB, free: 36.45 MB / 286.1 MB Notification: Performance of Initialization: time 6.82e-07/0.01656, allocations: 0 / 424 MB, free: 36.45 MB / 286.1 MB Notification: Performance of Tearing: time 0.0002565/0.01683, allocations: 379.4 kB / 424.4 MB, free: 36.05 MB / 286.1 MB Notification: Performance of Categorize: time 3.183e-05/0.01687, allocations: 8.547 kB / 424.4 MB, free: 36.05 MB / 286.1 MB Notification: Performance of Solve: time 0.0003525/0.01723, allocations: 202.8 kB / 424.6 MB, free: 35.9 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0004254/0.01766, allocations: 0.5919 MB / 425.2 MB, free: 35.28 MB / 286.1 MB Notification: Performance of backend: time 8.51e-07/0.01767, allocations: 0 / 425.2 MB, free: 35.28 MB / 286.1 MB Notification: Performance of SimCode: time 0.003439/0.02111, allocations: 2.548 MB / 427.8 MB, free: 33.28 MB / 286.1 MB Notification: Performance of Templates: time 0.01037/0.0315, allocations: 6.102 MB / 433.9 MB, free: 27.75 MB / 286.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_functions.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_functions.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_records.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_records.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_01exo.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_01exo.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_02nls.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_02nls.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_03lsy.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_03lsy.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_04set.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_04set.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.o PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:434:124: error: use of undeclared identifier 'k' tmp40 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:437:129: error: use of undeclared identifier 'k' tmp41 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:442:124: error: use of undeclared identifier 'k' tmp42 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:445:129: error: use of undeclared identifier 'k' tmp43 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:450:124: error: use of undeclared identifier 'k' tmp44 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:453:129: error: use of undeclared identifier 'k' tmp45 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:458:124: error: use of undeclared identifier 'k' tmp46 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:461:129: error: use of undeclared identifier 'k' tmp47 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:466:124: error: use of undeclared identifier 'k' tmp48 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:469:129: error: use of undeclared identifier 'k' tmp49 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:474:124: error: use of undeclared identifier 'k' tmp50 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:477:129: error: use of undeclared identifier 'k' tmp51 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:482:124: error: use of undeclared identifier 'k' tmp52 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[31] /* pulseSeries.T1 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:485:129: error: use of undeclared identifier 'k' tmp53 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[40] /* pulseSeries.Tstart1[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:490:124: error: use of undeclared identifier 'k' tmp54 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[47] /* pulseSeries.Tstart2[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[34] /* pulseSeries.T2 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:493:129: error: use of undeclared identifier 'k' tmp55 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[47] /* pulseSeries.Tstart2[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:498:124: error: use of undeclared identifier 'k' tmp56 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[47] /* pulseSeries.Tstart2[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[34] /* pulseSeries.T2 PARAM */)); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:501:129: error: use of undeclared identifier 'k' tmp57 = GreaterEq(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[47] /* pulseSeries.Tstart2[1] PARAM */)[k - 1]); ^ PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.c:506:124: error: use of undeclared identifier 'k' tmp58 = Less(data->localData[0]->timeValue,(&data->simulationInfo->realParameter[47] /* pulseSeries.Tstart2[1] PARAM */)[k - 1] + (data->simulationInfo->realParameter[34] /* pulseSeries.T2 PARAM */)); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [: PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_05evt.o] Error 1