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: translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.0281/0.0281, 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.0009202/0.0009202, allocations: 183.6 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.37/1.37, allocations: 221.3 MB / 240.4 MB, free: 14.68 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.0008599/0.0008596, allocations: 90.3 kB / 292.1 MB, free: 6.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.094e-05/3.096e-05, allocations: 3.938 kB / 351.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09828, allocations: 51.18 MB / 402.4 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3287/0.427, allocations: 78.86 MB / 481.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4273, allocations: 66.66 kB / 481.3 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01608/0.4434, allocations: 5.894 MB / 487.2 MB, free: 6.359 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4434, allocations: 0 / 487.2 MB, free: 6.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.4434, allocations: 4 kB / 487.2 MB, free: 6.355 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.001734/0.4452, allocations: 2.253 MB / 489.4 MB, free: 4.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.4452, allocations: 11.97 kB / 489.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005767/0.4458, allocations: 74.94 kB / 489.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.4463, allocations: 294.3 kB / 489.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.4463, allocations: 4 kB / 489.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.4463, allocations: 8.875 kB / 489.8 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.4467, allocations: 239.9 kB / 490.1 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.4467, allocations: 0 / 490.1 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.4467, allocations: 7.953 kB / 490.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.4467, allocations: 0 / 490.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.447, allocations: 173.6 kB / 490.2 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001957/0.4472, allocations: 255.2 kB / 490.5 MB, free: 3.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.4474, allocations: 289.1 kB / 490.8 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.4476, allocations: 265.9 kB / 491 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.291e-05/0.4477, allocations: 4 kB / 491 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003779/0.448, allocations: 490 kB / 491.5 MB, free: 2.508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.4481, allocations: 4 kB / 491.5 MB, free: 2.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006096/0.4487, allocations: 0.5075 MB / 492 MB, free: 2.082 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.4487, allocations: 159.1 kB / 492.2 MB, free: 1.902 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.4489, allocations: 194.2 kB / 492.4 MB, free: 1.738 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.4489, allocations: 29.7 kB / 492.4 MB, free: 1.703 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.703e-05/0.449, allocations: 108.6 kB / 492.5 MB, free: 1.613 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.449, allocations: 49.78 kB / 492.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.449, allocations: 4 kB / 492.6 MB, free: 1.566 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/0.4491, allocations: 333.8 kB / 492.9 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.4492, allocations: 114.5 kB / 493 MB, free: 1.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.4494, allocations: 113.5 kB / 493.1 MB, free: 1.086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.4496, allocations: 209.2 kB / 493.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4496, allocations: 0 / 493.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004042/0.45, allocations: 398.6 kB / 493.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.431e-05/0.45, allocations: 95.36 kB / 493.8 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4501, allocations: 0.875 kB / 493.8 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.4501, allocations: 4 kB / 493.8 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.4502, allocations: 25.77 kB / 493.8 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.4502, allocations: 7.953 kB / 493.8 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.4503, allocations: 23.83 kB / 493.9 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.4504, allocations: 12 kB / 493.9 MB, free: 332 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.0001403/0.4505, allocations: 239.4 kB / 494.1 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.4506, allocations: 27.72 kB / 494.1 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.4506, allocations: 18.83 kB / 494.1 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.4506, allocations: 4 kB / 494.1 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4506, allocations: 7.984 kB / 494.2 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4507, allocations: 3.953 kB / 494.2 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.4509, allocations: 261.5 kB / 494.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.4509, allocations: 0 / 494.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-05/0.451, allocations: 15.98 kB / 494.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.451, allocations: 3.938 kB / 494.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.451, allocations: 15.98 kB / 494.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.451, allocations: 4.75 kB / 494.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.451, allocations: 0 / 494.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007987/0.4518, allocations: 0.6342 MB / 495.1 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.452, allocations: 144.7 kB / 495.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/0.4521, allocations: 29.33 kB / 495.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.4522, allocations: 15.98 kB / 495.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.452e-05/0.4523, allocations: 31.91 kB / 495.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.4524, allocations: 29.86 kB / 495.3 MB, free: 14.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.4525, allocations: 136.7 kB / 495.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4525, allocations: 4 kB / 495.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003589/0.4529, allocations: 95.94 kB / 495.6 MB, free: 14.51 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.0005474/0.4534, allocations: 260.4 kB / 495.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007569/0.4542, allocations: 0.7177 MB / 496.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4542, allocations: 4 kB / 496.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005559/0.4548, allocations: 0.6315 MB / 497.2 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.455, allocations: 18.03 kB / 497.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/0.4556, allocations: 410.6 kB / 497.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.4559, allocations: 0.7396 MB / 498.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.616e-05/0.4559, allocations: 16.53 kB / 498.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.243e-05/0.456, allocations: 14.72 kB / 498.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.456, allocations: 0 / 498.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of Templates: time 0.00698/0.463, allocations: 3.889 MB / 0.4905 GB, free: 7.883 MB / 362.7 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -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 AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:259:160: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? real_array_create(&tmp25, ((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 /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/simulation/solver/../../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:259:168: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] real_array_create(&tmp25, ((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:260:53: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? tmp29 = (*real_array_element_addr1(&tmp25, 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 /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/simulation/solver/../../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:260:61: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] tmp29 = (*real_array_element_addr1(&tmp25, 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:441:159: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? real_array_create(&tmp53, ((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 /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/simulation/solver/../../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:441:167: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] real_array_create(&tmp53, ((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:442:53: error: use of undeclared identifier 'nBuffer'; did you mean 'logBuffer'? tmp57 = (*real_array_element_addr1(&tmp53, 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 /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/simulation/solver/../../util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.c:442:61: warning: comparison between pointer and integer ('char *' and 'modelica_integer' (aka 'long')) [-Wpointer-integer-compare] tmp57 = (*real_array_element_addr1(&tmp53, 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))))); ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings and 4 errors generated. make: *** [: AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.o] Error 1