Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo", uses=false) Using package Modelica_Noise with version 1.0 Beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0008498/0.0008498, allocations: 171.4 kB / 7.644 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 0.959/0.959, allocations: 170.7 MB / 178.7 MB, free: 6.961 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00154/0.00154, allocations: 103.1 kB / 218 MB, free: 15.33 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo): time 0.01808/0.01808, allocations: 3.067 MB / 260.2 MB, free: 5.051 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.554e-05/1.564e-05, allocations: 3 kB / 305.9 MB, free: 69.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05859/0.05862, allocations: 39.4 MB / 345.3 MB, free: 32.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2218/0.2804, allocations: 67.36 MB / 412.6 MB, free: 17.68 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/0.2808, allocations: 75.67 kB / 412.7 MB, free: 17.68 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Math/Random/Interfaces/random.mo:7:3-7:71:writable] Warning: Unused input variable stateSize in function .Modelica_Noise.Math.Random.Generators.Xorshift64star.random. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Math/Random/Interfaces/random.mo:7:3-7:71:writable] Warning: Unused input variable stateSize in function .Modelica_Noise.Math.Random.Generators.Xorshift128plus.random. Notification: Performance of FrontEnd - DAE generated: time 0.01108/0.2919, allocations: 4.805 MB / 417.5 MB, free: 17.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2919, allocations: 5.562 kB / 417.5 MB, free: 17.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2919, allocations: 0 / 417.5 MB, free: 17.08 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003449/0.2923, allocations: 396.6 kB / 417.9 MB, free: 16.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2923, allocations: 10 kB / 417.9 MB, free: 16.7 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.2925, allocations: 22.97 kB / 417.9 MB, free: 16.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2926, allocations: 178 kB / 418.1 MB, free: 16.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.2927, allocations: 7.625 kB / 418.1 MB, free: 16.49 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.2927, allocations: 7.234 kB / 418.1 MB, free: 16.49 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.561e-05/0.2928, allocations: 19.84 kB / 418.2 MB, free: 16.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.683e-05/0.2929, allocations: 70.19 kB / 418.2 MB, free: 16.44 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.2929, allocations: 0 / 418.2 MB, free: 16.44 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2929, allocations: 5.531 kB / 418.2 MB, free: 16.44 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2929, allocations: 1.094 kB / 418.2 MB, free: 16.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001467/0.293, allocations: 180.9 kB / 418.4 MB, free: 16.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.375e-05/0.2931, allocations: 66.34 kB / 418.5 MB, free: 16.21 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.834e-05/0.2932, allocations: 35.86 kB / 418.5 MB, free: 16.2 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.966e-06/0.2932, allocations: 1.062 kB / 418.5 MB, free: 16.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001133/0.2933, allocations: 96.7 kB / 418.6 MB, free: 16.12 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.024e-06/0.2933, allocations: 1.031 kB / 418.6 MB, free: 16.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002863/0.2936, allocations: 120.3 kB / 418.7 MB, free: 16.08 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.2937, allocations: 83.38 kB / 418.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.2938, allocations: 122.4 kB / 418.9 MB, free: 15.89 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.2938, allocations: 31.89 kB / 419 MB, free: 15.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.418e-05/0.2938, allocations: 92.27 kB / 419 MB, free: 15.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.2939, allocations: 24.98 kB / 419.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.2939, allocations: 1.219 kB / 419.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.2939, allocations: 324.4 kB / 419.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.344e-05/0.294, allocations: 33.02 kB / 419.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.002e-05/0.2941, allocations: 50.61 kB / 419.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.2942, allocations: 46.3 kB / 419.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2942, allocations: 0 / 419.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002114/0.2944, allocations: 140.8 kB / 419.7 MB, free: 15.39 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.2945, allocations: 3.969 kB / 419.7 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2945, allocations: 3.984 kB / 419.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.2945, allocations: 7.859 kB / 419.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.2946, allocations: 9.688 kB / 419.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.2946, allocations: 3.875 kB / 419.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.908e-05/0.2946, allocations: 9.438 kB / 419.7 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.2947, allocations: 3.938 kB / 419.7 MB, free: 15.37 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,uniformNoise.localSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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 5.949e-05/0.2947, allocations: 114.4 kB / 419.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001636/0.2949, allocations: 119.2 kB / 419.9 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.2949, allocations: 13.52 kB / 419.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.215e-05/0.2949, allocations: 4.625 kB / 419.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.295, allocations: 3.938 kB / 419.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.295, allocations: 0 / 419.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.295, allocations: 1.453 kB / 419.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.583e-05/0.2951, allocations: 168.2 kB / 420.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2951, allocations: 2.703 kB / 420.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.2951, allocations: 7.938 kB / 420.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2951, allocations: 0 / 420.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.2951, allocations: 5.406 kB / 420.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2951, allocations: 3.953 kB / 420.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2952, allocations: 4 kB / 420.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001801/0.2953, allocations: 161.5 kB / 420.3 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.2954, allocations: 90.36 kB / 420.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.2954, allocations: 9.812 kB / 420.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.214e-05/0.2955, allocations: 3.812 kB / 420.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.962e-05/0.2955, allocations: 10.94 kB / 420.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.2955, allocations: 1.875 kB / 420.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.494e-05/0.2956, allocations: 106.5 kB / 420.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2956, allocations: 0 / 420.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002589/0.2958, allocations: 53.42 kB / 420.6 MB, free: 14.75 MB / 282.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: 8 (uniformNoise.localSeed,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw) * Number of discrete states: 4 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005507/0.2964, allocations: 0.8381 MB / 421.4 MB, free: 14.03 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.2966, allocations: 109.1 kB / 421.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2966, allocations: 0 / 421.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.602e-05/0.2966, allocations: 30.42 kB / 421.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001083/0.2967, allocations: 4.406 kB / 421.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/0.2971, allocations: 183.9 kB / 421.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.996e-05/0.2972, allocations: 0.6967 MB / 422.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.822e-05/0.2972, allocations: 13.52 kB / 422.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.2973, allocations: 22.78 kB / 422.5 MB, free: 13.13 MB / 282.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2973, allocations: 0 / 422.5 MB, free: 13.13 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.3158, allocations: 2.504 MB / 425 MB, free: 12.91 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.316, allocations: 148.1 kB / 425.1 MB, free: 12.73 MB / 282.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. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_FMU.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_FMU.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise.c:7: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.c:1: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.h:3: In file included from include/meta/meta_modelica.h:49: 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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.c:6: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:600:10: warning: implicit declaration of function '_getpid' is invalid in C99 [-Wimplicit-function-declaration] pid = ModelicaRandom_getpid(); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:207:34: note: expanded from macro 'ModelicaRandom_getpid' # define ModelicaRandom_getpid _getpid ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.c:19:34: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ModelicaRandom_xorshift128plus((const int*) _stateIn_c89, (int*) _stateOut_c89, &_result_ext); ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:363:57: note: passing argument to parameter 'state_in' here MODELICA_EXPORT void ModelicaRandom_xorshift128plus(int state_in[], int state_out[], double* y) { ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.c:100:33: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ModelicaRandom_xorshift64star((const int*) _stateIn_c89, (int*) _stateOut_c89, &_result_ext); ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:312:56: note: passing argument to parameter 'state_in' here MODELICA_EXPORT void ModelicaRandom_xorshift64star(int state_in[], int state_out[], double* y) { ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_functions.c:320:52: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ModelicaRandom_setInternalState_xorshift1024star((const int*) _rngState_c89, size_of_dimension_base_array(_rngState, ((modelica_integer) 1)), _id_ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:530:76: note: passing argument to parameter 'state' here MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star(int* state, size_t nState, int id) { ^ 6 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_records.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_records.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_records.c:3: In file included from include/meta/meta_modelica.h:49: 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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_01exo.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_01exo.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_01exo.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_02nls.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_02nls.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_02nls.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_03lsy.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_03lsy.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_03lsy.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_04set.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_04set.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_04set.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_05evt.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_05evt.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_05evt.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise -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 Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_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); ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.c:37:55: error: use of undeclared identifier '$Pstate'; did you mean 'setstate'? integer_array_create(&tmp0, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^~~~~~~ setstate /usr/include/stdlib.h:415:14: note: 'setstate' declared here extern char *setstate (char *__statebuf) __THROW __nonnull ((1)); ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.c:37:93: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp0, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.c:37:137: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp0, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ 2 warnings and 3 errors generated. make: *** [: Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoise_06inz.o] Error 1