Running command: "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(AdvancedNoise): time 2.24/2.24, allocations: 209.8 MB / 221.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.365e-05/4.379e-05, allocations: 4 kB / 273.3 MB, free: 2.254 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1226, allocations: 48.33 MB / 321.6 MB, free: 1.832 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.58, allocations: 78.4 MB / 400 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.5803, allocations: 64.83 kB / 400 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03317/0.6135, allocations: 5.839 MB / 405.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6135, allocations: 0 / 405.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.137e-05/0.6136, allocations: 7.938 kB / 405.9 MB, free: 11.73 MB / 330.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.005652/0.6193, allocations: 2.255 MB / 408.1 MB, free: 9.676 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.023e-05/0.6194, allocations: 12.03 kB / 408.2 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/0.6195, allocations: 45.8 kB / 408.2 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.621, allocations: 71.67 kB / 408.3 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.6223, allocations: 303 kB / 408.6 MB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.6224, allocations: 7.938 kB / 408.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.6224, allocations: 8 kB / 408.6 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005897/0.623, allocations: 228.6 kB / 408.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.6231, allocations: 3.984 kB / 408.8 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.555e-05/0.6231, allocations: 11.94 kB / 408.8 MB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.6231, allocations: 0 / 408.8 MB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004444/0.6236, allocations: 171.2 kB / 409 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003989/0.624, allocations: 255.8 kB / 409.2 MB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005097/0.6245, allocations: 286.2 kB / 409.5 MB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.625, allocations: 264.8 kB / 409.8 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.625, allocations: 8 kB / 409.8 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007992/0.6258, allocations: 492 kB / 410.3 MB, free: 7.809 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.776e-06/0.6259, allocations: 0 / 410.3 MB, free: 7.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001237/0.6271, allocations: 0.5091 MB / 410.8 MB, free: 7.383 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.6272, allocations: 155.4 kB / 410.9 MB, free: 7.207 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.6275, allocations: 191.3 kB / 411.1 MB, free: 7.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.6276, allocations: 29.52 kB / 411.1 MB, free: 7.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.308e-05/0.6277, allocations: 110.8 kB / 411.2 MB, free: 6.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.586e-05/0.6278, allocations: 50.28 kB / 411.3 MB, free: 6.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.6278, allocations: 4 kB / 411.3 MB, free: 6.863 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.628, allocations: 326 kB / 411.6 MB, free: 6.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.6283, allocations: 115.5 kB / 411.7 MB, free: 6.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.6285, allocations: 109.5 kB / 411.8 MB, free: 6.391 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.6289, allocations: 212.5 kB / 412 MB, free: 6.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.629, allocations: 4 kB / 412 MB, free: 6.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009015/0.6299, allocations: 409.5 kB / 412.4 MB, free: 5.871 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.63, allocations: 89.56 kB / 412.5 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.63, allocations: 0 / 412.5 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.6301, allocations: 0 / 412.5 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.6303, allocations: 23.97 kB / 412.6 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.6304, allocations: 0 / 412.6 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.6306, allocations: 31.22 kB / 412.6 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-05/0.6307, allocations: 19.98 kB / 412.6 MB, free: 5.707 MB / 330.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.0003474/0.631, allocations: 241.7 kB / 412.8 MB, free: 5.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.259e-05/0.6311, allocations: 39.66 kB / 412.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.6312, allocations: 11.72 kB / 412.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.6312, allocations: 0 / 412.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.6312, allocations: 3.984 kB / 412.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.6312, allocations: 0 / 412.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.6316, allocations: 265.9 kB / 413.2 MB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.6316, allocations: 4.188 kB / 413.2 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.6317, allocations: 11.98 kB / 413.2 MB, free: 5.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.6317, allocations: 7.891 kB / 413.2 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/0.6318, allocations: 15.98 kB / 413.2 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.6318, allocations: 0 / 413.2 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6318, allocations: 0 / 413.2 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.6332, allocations: 0.6335 MB / 413.8 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.6335, allocations: 146.5 kB / 414 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.6336, allocations: 27.55 kB / 414 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.6339, allocations: 19.98 kB / 414 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.634, allocations: 23.09 kB / 414 MB, free: 4.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.874e-05/0.6341, allocations: 26.97 kB / 414.1 MB, free: 4.324 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001938/0.6343, allocations: 150.2 kB / 414.2 MB, free: 4.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6343, allocations: 0 / 414.2 MB, free: 4.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005738/0.6349, allocations: 91.48 kB / 414.3 MB, free: 4.113 MB / 330.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.00247/0.6374, allocations: 1.443 MB / 415.8 MB, free: 2.785 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.6387, allocations: 0.7159 MB / 416.5 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.6387, allocations: 0 / 416.5 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009403/0.6397, allocations: 0.6247 MB / 417.1 MB, free: 1.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.64, allocations: 22.62 kB / 417.1 MB, free: 1.887 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.6414, allocations: 487.9 kB / 417.6 MB, free: 1.441 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.6418, allocations: 0.7355 MB / 418.3 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.96e-05/0.6419, allocations: 16.48 kB / 418.3 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.642, allocations: 54.59 kB / 418.4 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.6421, allocations: 4 kB / 418.4 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03248/0.6746, allocations: 5.767 MB / 424.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003283/0.675, allocations: 219.4 kB / 424.4 MB, free: 10.68 MB / 346.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/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 '_omcQuot_6E427566666572' real_array_create(&tmp23, ((modelica_real*)&((&data->localData[0]->realVars[6] /* timeBasedNoise1.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((_omcQuot_6E427566666572 == ((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 '_omcQuot_6E427566666572' tmp27 = (*real_array_element_addr1(&tmp23, 1, ((_omcQuot_6E427566666572 == ((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 '_omcQuot_6E427566666572' real_array_create(&tmp51, ((modelica_real*)&((&data->localData[0]->realVars[2] /* timeBasedNoise.buffer[1] DISCRETE */)[calc_base_index_dims_subs(1, 2, ((_omcQuot_6E427566666572 == ((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 '_omcQuot_6E427566666572' tmp55 = (*real_array_element_addr1(&tmp51, 1, ((_omcQuot_6E427566666572 == ((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))))); ^ 2 warnings and 4 errors generated. : recipe for target 'AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.o' failed make: *** [AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.o] Error 1