Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) 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) 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) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Running command: "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02859/0.02859, allocations: 3.778 MB / 16.34 MB, free: 3.145 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008918/0.0008919, allocations: 187.5 kB / 17.78 MB, free: 2.453 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.3 MB / 240.4 MB, free: 14.62 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009231/0.0009231, allocations: 101 kB / 292.1 MB, free: 6.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.646e-05/3.66e-05, allocations: 0 / 351.3 MB, free: 2.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 51.18 MB / 402.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3597/0.4694, allocations: 78.86 MB / 481.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00016/0.4696, allocations: 65.23 kB / 481.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01467/0.4843, allocations: 5.89 MB / 487.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4844, allocations: 4 kB / 487.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.4844, allocations: 4 kB / 487.3 MB, free: 6.273 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.00185/0.4862, allocations: 2.252 MB / 489.5 MB, free: 4.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4863, allocations: 15.91 kB / 489.6 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.783e-05/0.4863, allocations: 43.05 kB / 489.6 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005469/0.4869, allocations: 78.94 kB / 489.7 MB, free: 4.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.4874, allocations: 291.8 kB / 490 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.4874, allocations: 7.75 kB / 490 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.4875, allocations: 11.94 kB / 490 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.4878, allocations: 229 kB / 490.2 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.4878, allocations: 3.953 kB / 490.2 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.4878, allocations: 6.75 kB / 490.2 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4878, allocations: 0 / 490.2 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.4881, allocations: 176.9 kB / 490.4 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/0.4883, allocations: 259.6 kB / 490.6 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.4886, allocations: 284.8 kB / 490.9 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.4888, allocations: 264.8 kB / 491.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.4888, allocations: 4.969 kB / 491.2 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/0.4892, allocations: 490.1 kB / 491.7 MB, free: 2.371 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.4892, allocations: 0 / 491.7 MB, free: 2.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006381/0.4899, allocations: 0.5061 MB / 492.2 MB, free: 1.949 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.4899, allocations: 163.8 kB / 492.3 MB, free: 1.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.4901, allocations: 192.5 kB / 492.5 MB, free: 1.602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.4901, allocations: 29.7 kB / 492.5 MB, free: 1.566 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.4902, allocations: 111.6 kB / 492.7 MB, free: 1.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.4902, allocations: 46.55 kB / 492.7 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.4902, allocations: 0.5625 kB / 492.7 MB, free: 1.434 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.635e-05/0.4903, allocations: 329.4 kB / 493 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.4905, allocations: 112.4 kB / 493.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.4906, allocations: 119.7 kB / 493.2 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.4908, allocations: 208 kB / 493.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4908, allocations: 0 / 493.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004087/0.4912, allocations: 410.9 kB / 493.8 MB, free: 372 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.715e-05/0.4913, allocations: 91.38 kB / 493.9 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4913, allocations: 0 / 493.9 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.4913, allocations: 0 / 493.9 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.4915, allocations: 28.61 kB / 494 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.4915, allocations: 2.109 kB / 494 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.4916, allocations: 27.84 kB / 494 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.4916, allocations: 15.98 kB / 494 MB, free: 196 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r,$whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,globalSeed.id_impure,timeBasedNoise.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise1.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001901/0.4918, allocations: 239.4 kB / 494.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.4919, allocations: 29.12 kB / 494.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.752e-05/0.4919, allocations: 18.27 kB / 494.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4919, allocations: 4 kB / 494.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.492, allocations: 3.953 kB / 494.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.492, allocations: 4 kB / 494.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.4922, allocations: 265.4 kB / 494.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4922, allocations: 4 kB / 494.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.201e-05/0.4923, allocations: 8.938 kB / 494.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4923, allocations: 0 / 494.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.4923, allocations: 23.91 kB / 494.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4923, allocations: 0 / 494.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4924, allocations: 0 / 494.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008448/0.4932, allocations: 0.6411 MB / 495.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.4934, allocations: 144.7 kB / 495.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.812e-05/0.4935, allocations: 21.25 kB / 495.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.4936, allocations: 17.95 kB / 495.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-05/0.4937, allocations: 27.92 kB / 495.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.07e-05/0.4938, allocations: 31.97 kB / 495.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001195/0.4939, allocations: 140.7 kB / 495.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4939, allocations: 0 / 495.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003645/0.4943, allocations: 95.92 kB / 495.7 MB, free: 14.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001572/0.4958, allocations: 1.436 MB / 497.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008021/0.4967, allocations: 0.7173 MB / 497.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4967, allocations: 0 / 497.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000567/0.4972, allocations: 0.6276 MB / 498.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.4975, allocations: 29.58 kB / 498.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008181/0.4983, allocations: 480.4 kB / 499 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.4986, allocations: 0.7316 MB / 499.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.481e-05/0.4987, allocations: 18.36 kB / 499.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.371e-05/0.4987, allocations: 55.41 kB / 499.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4988, allocations: 0 / 499.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.5177, allocations: 5.776 MB / 0.4937 GB, free: 4.68 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.5179, allocations: 200.4 kB / 0.4939 GB, free: 4.453 MB / 362.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.o AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c In file included from AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:7: In file included from ./AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:253:160: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? real_array_create(&tmp23, ((modelica_real*)&((&data->localData[0]->realVars[6] /* timeBasedNoise1.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[8] /* timeBasedNoise1.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[6] /* timeBasedNoise1.samplePeriod PARAM */,"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))])), 1, 2); ^~~~~~~ logBuffer ./gc/../meta/../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:253:168: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] real_array_create(&tmp23, ((modelica_real*)&((&data->localData[0]->realVars[6] /* timeBasedNoise1.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[8] /* timeBasedNoise1.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[6] /* timeBasedNoise1.samplePeriod PARAM */,"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))])), 1, 2); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:254:53: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? tmp27 = (*real_array_element_addr1(&tmp23, 1, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[8] /* timeBasedNoise1.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[6] /* timeBasedNoise1.samplePeriod PARAM */,"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))); ^~~~~~~ logBuffer ./gc/../meta/../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:254:61: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] tmp27 = (*real_array_element_addr1(&tmp23, 1, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[8] /* timeBasedNoise1.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[6] /* timeBasedNoise1.samplePeriod PARAM */,"timeBasedNoise1.samplePeriod",equationIndexes), ((modelica_integer) 0), data))))); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:435:159: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? real_array_create(&tmp51, ((modelica_real*)&((&data->localData[0]->realVars[2] /* timeBasedNoise.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[4] /* timeBasedNoise.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[2] /* timeBasedNoise.samplePeriod PARAM */,"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))])), 1, 2); ^~~~~~~ logBuffer ./gc/../meta/../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:435:167: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] real_array_create(&tmp51, ((modelica_real*)&((&data->localData[0]->realVars[2] /* timeBasedNoise.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[4] /* timeBasedNoise.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[2] /* timeBasedNoise.samplePeriod PARAM */,"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))])), 1, 2); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:436:53: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? tmp55 = (*real_array_element_addr1(&tmp51, 1, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[4] /* timeBasedNoise.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[2] /* timeBasedNoise.samplePeriod PARAM */,"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))); ^~~~~~~ logBuffer ./gc/../meta/../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:436:61: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] tmp55 = (*real_array_element_addr1(&tmp51, 1, ((nBuffer == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(DIVISION_SIM(data->localData[0]->timeValue - data->localData[0]->realVars[4] /* timeBasedNoise.bufferStartTime DISCRETE */,data->simulationInfo->realParameter[2] /* timeBasedNoise.samplePeriod PARAM */,"timeBasedNoise.samplePeriod",equationIndexes), ((modelica_integer) 1), data))))); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ 6 warnings and 4 errors generated. make: *** [: AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.o] Error 1