Running command: "" <> buildModelFMU(AdvancedNoise.Examples.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(AdvancedNoise): time 2.219/2.219, allocations: 209.8 MB / 221.9 MB, free: 4.805 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.896e-05, allocations: 4 kB / 273.2 MB, free: 2.258 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 48.33 MB / 321.6 MB, free: 1.836 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4591/0.5737, allocations: 78.96 MB / 400.5 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.574, allocations: 59.09 kB / 400.6 MB, free: 256 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02406/0.5981, allocations: 5.06 MB / 405.7 MB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5981, allocations: 4 kB / 405.7 MB, free: 11.92 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.5982, allocations: 0 / 405.7 MB, free: 11.92 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007058/0.5989, allocations: 410.8 kB / 406.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.599, allocations: 12.03 kB / 406.1 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.392e-05/0.599, allocations: 33.44 kB / 406.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004293/0.5995, allocations: 23.8 kB / 406.1 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.5999, allocations: 223.9 kB / 406.3 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.6, allocations: 3.25 kB / 406.3 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.6, allocations: 4 kB / 406.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/0.6002, allocations: 76.59 kB / 406.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.6003, allocations: 3.984 kB / 406.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.6003, allocations: 7.234 kB / 406.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.6003, allocations: 0 / 406.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.6005, allocations: 47.34 kB / 406.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007196/0.6012, allocations: 344.8 kB / 406.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.6015, allocations: 75.36 kB / 406.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.6016, allocations: 35.53 kB / 406.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.6017, allocations: 0 / 406.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.6017, allocations: 30.56 kB / 407 MB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 3.667e-06/0.6017, allocations: 4 kB / 407 MB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004119/0.6021, allocations: 114.5 kB / 407.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.6022, allocations: 55.41 kB / 407.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.6024, allocations: 135.3 kB / 407.3 MB, free: 10.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.6024, allocations: 29.64 kB / 407.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.168e-05/0.6025, allocations: 98.44 kB / 407.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.6026, allocations: 26.89 kB / 407.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.6026, allocations: 0 / 407.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6027, allocations: 322.3 kB / 407.7 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.6029, allocations: 30.42 kB / 407.8 MB, free: 9.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.609e-05/0.603, allocations: 33.73 kB / 407.8 MB, free: 9.738 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.6031, allocations: 30.86 kB / 407.8 MB, free: 9.719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.6031, allocations: 0 / 407.8 MB, free: 9.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003504/0.6035, allocations: 131.4 kB / 407.9 MB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.6035, allocations: 4 kB / 408 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.6035, allocations: 0 / 408 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.6035, allocations: 4 kB / 408 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.6038, allocations: 27.86 kB / 408 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.6038, allocations: 8.062 kB / 408 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.889e-05/0.6039, allocations: 0 / 408 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.604, allocations: 15.86 kB / 408 MB, free: 9.551 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: 4 (signalBasedNoise.localSeed,globalSeed.id_impure,signalBasedNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 9.985e-05/0.6041, allocations: 108.9 kB / 408.1 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.6041, allocations: 7.906 kB / 408.1 MB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005975/0.6047, allocations: 193.7 kB / 408.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.346e-05/0.6048, allocations: 4 kB / 408.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.6049, allocations: 0 / 408.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.6049, allocations: 8 kB / 408.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.6053, allocations: 224.8 kB / 408.5 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.6054, allocations: 3.938 kB / 408.5 MB, free: 9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.6055, allocations: 15.94 kB / 408.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.6055, allocations: 0 / 408.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.6056, allocations: 11.42 kB / 408.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.6056, allocations: 0 / 408.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6056, allocations: 0 / 408.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004504/0.606, allocations: 259.5 kB / 408.8 MB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.6062, allocations: 96.06 kB / 408.9 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.6062, allocations: 0 / 408.9 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.6064, allocations: 4 kB / 408.9 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.422e-05/0.6064, allocations: 15.95 kB / 408.9 MB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.6065, allocations: 7.25 kB / 408.9 MB, free: 8.602 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001147/0.6066, allocations: 111.4 kB / 409.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6066, allocations: 0 / 409.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005547/0.6072, allocations: 74.73 kB / 409.1 MB, free: 8.438 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($cse2[1],$cse2[2],$cse4[1],$cse4[2],signalBasedNoise.localSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 7 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 1 * 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.001481/0.6087, allocations: 0.9619 MB / 410.1 MB, free: 7.508 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003616/0.6091, allocations: 107.8 kB / 410.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6091, allocations: 0 / 410.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.6093, allocations: 113 kB / 410.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.6095, allocations: 8.828 kB / 410.3 MB, free: 7.309 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008099/0.6104, allocations: 245 kB / 410.6 MB, free: 7.059 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.6108, allocations: 0.7043 MB / 411.3 MB, free: 6.328 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.611, allocations: 32.34 kB / 411.3 MB, free: 6.297 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.6111, allocations: 40.78 kB / 411.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6111, allocations: 0 / 411.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02861/0.6397, allocations: 3.732 MB / 415.1 MB, free: 2.574 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004008/0.6402, allocations: 213.4 kB / 415.3 MB, free: 2.344 MB / 330.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_SignalBasedNoise.o AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.c In file included from AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.c:7: In file included from ./AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise_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_SignalBasedNoise.c:246:160: error: use of undeclared identifier '_omcQuot_6E427566666572' real_array_create(&tmp4, ((modelica_real*)&((&data->localData[0]->realVars[3] /* signalBasedNoise.buffer[1] variable */)[calc_base_index_dims_subs(1, 2, ((_omcQuot_6E427566666572 == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(data->localData[0]->realVars[5] /* signalBasedNoise.offset variable */ - omc_AdvancedNoise_Sources__omcQuot_5369676E616C42617365644E6F697365247369676E616C42617365644E6F697365_zeroDer(threadData, ((modelica_real)((modelica_integer)floor(data->localData[0]->realVars[5] /* signalBasedNoise.offset variable */))), 0.0), ((modelica_integer) 2), data))))])), 1, 2); ^ AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.c:247:51: error: use of undeclared identifier '_omcQuot_6E427566666572' tmp8 = (*real_array_element_addr1(&tmp4, 1, ((_omcQuot_6E427566666572 == ((modelica_integer) 1))?((modelica_integer) 1):((modelica_integer) 1) + (_event_integer(data->localData[0]->realVars[5] /* signalBasedNoise.offset variable */ - omc_AdvancedNoise_Sources__omcQuot_5369676E616C42617365644E6F697365247369676E616C42617365644E6F697365_zeroDer(threadData, ((modelica_real)((modelica_integer)floor(data->localData[0]->realVars[5] /* signalBasedNoise.offset variable */))), 0.0), ((modelica_integer) 2), data))))); ^ 2 warnings and 2 errors generated. : recipe for target 'AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.o' failed make: *** [AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.o] Error 1