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.04068/0.04068, allocations: 3.798 MB / 11.27 MB, free: 1.07 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001565, allocations: 173.3 kB / 12.59 MB, free: 2.582 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 221.5 MB / 235.3 MB, free: 2.996 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008343/0.0008345, allocations: 87.66 kB / 286.9 MB, free: 5.758 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.023e-05/2.068e-05, allocations: 3.938 kB / 344.4 MB, free: 8.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1265, allocations: 51.17 MB / 395.6 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.386/0.5126, allocations: 78.21 MB / 473.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.5128, allocations: 57.84 kB / 473.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02265/0.5355, allocations: 5.868 MB / 479.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.15e-06/0.5356, allocations: 0 / 479.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.056e-05/0.5356, allocations: 4 kB / 479.7 MB, free: 10.81 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.003828/0.5395, allocations: 2.258 MB / 482 MB, free: 8.762 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.83e-05/0.5396, allocations: 16.02 kB / 482 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.5406, allocations: 70.94 kB / 482.1 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007858/0.5414, allocations: 290.8 kB / 482.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.5415, allocations: 4 kB / 482.4 MB, free: 8.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.637e-05/0.5415, allocations: 9.875 kB / 482.4 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004285/0.542, allocations: 163.5 kB / 482.5 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004634/0.5425, allocations: 225.8 kB / 482.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.5425, allocations: 0 / 482.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.5425, allocations: 4 kB / 482.7 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.5425, allocations: 0 / 482.7 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003165/0.5429, allocations: 233.6 kB / 483 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003777/0.5433, allocations: 277.2 kB / 483.2 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.5436, allocations: 261.6 kB / 483.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.5437, allocations: 0 / 483.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005927/0.5443, allocations: 484.6 kB / 484 MB, free: 7.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.5443, allocations: 0 / 484 MB, free: 7.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000956/0.5452, allocations: 400.9 kB / 484.4 MB, free: 6.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/0.5453, allocations: 165.6 kB / 484.5 MB, free: 6.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.5456, allocations: 182.9 kB / 484.7 MB, free: 6.383 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.5456, allocations: 29.7 kB / 484.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.113e-05/0.5457, allocations: 114.6 kB / 484.8 MB, free: 6.254 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.5458, allocations: 45.67 kB / 484.9 MB, free: 6.215 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-05/0.5458, allocations: 4 kB / 484.9 MB, free: 6.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.498e-05/0.5459, allocations: 333.5 kB / 485.2 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.5461, allocations: 106 kB / 485.3 MB, free: 5.816 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.5463, allocations: 109.5 kB / 485.4 MB, free: 5.742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.5468, allocations: 129.7 kB / 485.6 MB, free: 5.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.5468, allocations: 0 / 485.6 MB, free: 5.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007568/0.5475, allocations: 321 kB / 485.9 MB, free: 5.402 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.5477, allocations: 90.38 kB / 486 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.5477, allocations: 4 kB / 486 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.659e-05/0.5477, allocations: 0 / 486 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.5479, allocations: 23.97 kB / 486 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.548, allocations: 2.734 kB / 486 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.5481, allocations: 27.8 kB / 486 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.5482, allocations: 15.86 kB / 486 MB, free: 5.242 MB / 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.0002531/0.5485, allocations: 244.9 kB / 486.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001032/0.5495, allocations: 461.6 kB / 486.7 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.312e-05/0.5496, allocations: 23.81 kB / 486.7 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.5497, allocations: 13.72 kB / 486.8 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.5497, allocations: 0 / 486.8 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.5497, allocations: 7.938 kB / 486.8 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.5497, allocations: 4 kB / 486.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.55, allocations: 239.5 kB / 487 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.55, allocations: 0 / 487 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.5501, allocations: 16.05 kB / 487 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.5502, allocations: 7.938 kB / 487 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.932e-05/0.5502, allocations: 15.73 kB / 487 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.5503, allocations: 3.938 kB / 487 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.5503, allocations: 4 kB / 487.1 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009999/0.5513, allocations: 494.7 kB / 487.5 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.5515, allocations: 147.5 kB / 487.7 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.5516, allocations: 19.88 kB / 487.7 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.5518, allocations: 15.98 kB / 487.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.552, allocations: 23.36 kB / 487.7 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.869e-05/0.5521, allocations: 35.58 kB / 487.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001334/0.5522, allocations: 134.8 kB / 487.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5522, allocations: 0 / 487.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006208/0.5529, allocations: 98.86 kB / 488 MB, free: 3.477 MB / 346.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.001932/0.5548, allocations: 1.291 MB / 489.3 MB, free: 2.324 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009917/0.5558, allocations: 0.6966 MB / 490 MB, free: 1.855 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.5558, allocations: 0.8438 kB / 490 MB, free: 1.855 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007095/0.5566, allocations: 0.6157 MB / 490.6 MB, free: 1.469 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.5569, allocations: 25.12 kB / 490.6 MB, free: 1.453 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.5581, allocations: 466 kB / 491.1 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.5584, allocations: 0.7382 MB / 491.8 MB, free: 276 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.703e-05/0.5585, allocations: 16.55 kB / 491.8 MB, free: 260 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.5586, allocations: 52.66 kB / 491.9 MB, free: 236 kB / 346.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5586, allocations: 0 / 491.9 MB, free: 236 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.5935, allocations: 5.351 MB / 497.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003094/0.5939, allocations: 173 kB / 497.4 MB, free: 10.8 MB / 362.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_FMU.o AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_FMU.c In file included from AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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 include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:236:178: error: use of undeclared identifier '$PnBuffer' real_array_create(&tmp23, ((modelica_real*)&((&data->localData[0]->realVars[6] /* timeBasedNoise1.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, (((modelica_integer)$PnBuffer == ((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",equationIndexes), ((modelica_integer) 0), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:237:94: error: use of undeclared identifier '$PnBuffer' tmp27 = (*real_array_element_addr1(&tmp23, 1, /* modelica_integer */ (((modelica_integer)$PnBuffer == ((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",equationIndexes), ((modelica_integer) 0), data))))); ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:418:177: error: use of undeclared identifier '$PnBuffer' real_array_create(&tmp51, ((modelica_real*)&((&data->localData[0]->realVars[2] /* timeBasedNoise.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, (((modelica_integer)$PnBuffer == ((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",equationIndexes), ((modelica_integer) 1), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.c:419:94: error: use of undeclared identifier '$PnBuffer' tmp55 = (*real_array_element_addr1(&tmp51, 1, /* modelica_integer */ (((modelica_integer)$PnBuffer == ((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",equationIndexes), ((modelica_integer) 1), data))))); ^ 2 warnings and 4 errors generated. make: *** [: AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.o] Error 1