Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties.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.UniformNoiseProperties,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties",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.0008729/0.0008729, allocations: 176.2 kB / 7.646 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.9373/0.9373, allocations: 170.7 MB / 178.7 MB, free: 6.965 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.001469/0.001469, allocations: 111.7 kB / 218 MB, free: 15.31 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.01743/0.01743, allocations: 3.059 MB / 260.2 MB, free: 5.051 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.836e-05/1.832e-05, allocations: 1.375 kB / 305.9 MB, free: 69.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05207/0.05211, allocations: 39.4 MB / 345.3 MB, free: 32.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2103/0.2624, allocations: 69.22 MB / 414.5 MB, free: 17.52 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.2626, allocations: 83.12 kB / 414.6 MB, free: 17.52 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.01486/0.2775, allocations: 6.455 MB / 421 MB, free: 16.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2775, allocations: 0 / 421 MB, free: 16.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.2776, allocations: 3.875 kB / 421 MB, free: 16.81 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0007377/0.2783, allocations: 0.5282 MB / 421.6 MB, free: 16.38 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2783, allocations: 11.62 kB / 421.6 MB, free: 16.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.2785, allocations: 30.67 kB / 421.6 MB, free: 16.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.2788, allocations: 244.9 kB / 421.9 MB, free: 16.15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.2788, allocations: 3.844 kB / 421.9 MB, free: 16.15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.2788, allocations: 15.61 kB / 421.9 MB, free: 16.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001733/0.279, allocations: 95.06 kB / 422 MB, free: 16.14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.2793, allocations: 167.3 kB / 422.1 MB, free: 16.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.2793, allocations: 0 / 422.1 MB, free: 16.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.2793, allocations: 4 kB / 422.1 MB, free: 16.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.2793, allocations: 11.78 kB / 422.1 MB, free: 16.08 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007283/0.28, allocations: 0.598 MB / 422.7 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004808/0.2805, allocations: 245.5 kB / 423 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.667e-05/0.2806, allocations: 85.47 kB / 423.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.2807, allocations: 3.906 kB / 423.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.2808, allocations: 161.1 kB / 423.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.2808, allocations: 0 / 423.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003614/0.2812, allocations: 197.6 kB / 423.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.2813, allocations: 94.28 kB / 423.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.2814, allocations: 167.8 kB / 423.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.2814, allocations: 34.64 kB / 423.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.83e-05/0.2815, allocations: 126.5 kB / 423.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.2815, allocations: 69.66 kB / 423.9 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.553e-05/0.2815, allocations: 3.844 kB / 423.9 MB, free: 15.17 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/0.2816, allocations: 328.7 kB / 424.2 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2817, allocations: 75.69 kB / 424.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.2818, allocations: 117.6 kB / 424.4 MB, free: 14.83 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/0.282, allocations: 90.94 kB / 424.5 MB, free: 14.83 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2821, allocations: 0 / 424.5 MB, free: 14.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003725/0.2824, allocations: 274.9 kB / 424.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.2825, allocations: 3.875 kB / 424.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.2825, allocations: 3.938 kB / 424.8 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2825, allocations: 7.828 kB / 424.8 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.2828, allocations: 74.52 kB / 424.9 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.2828, allocations: 9.781 kB / 424.9 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.2829, allocations: 36.97 kB / 424.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.283, allocations: 21.73 kB / 424.9 MB, free: 14.73 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,noise.localSeed,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * 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 6.909e-05/0.283, allocations: 108.8 kB / 425 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002832/0.2833, allocations: 203.1 kB / 425.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.2834, allocations: 23.08 kB / 425.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.2834, allocations: 15.77 kB / 425.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.2834, allocations: 3.906 kB / 425.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.2834, allocations: 0 / 425.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.2834, allocations: 5.812 kB / 425.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005685/0.284, allocations: 0.5327 MB / 425.8 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.284, allocations: 7.797 kB / 425.8 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002257/0.2842, allocations: 57.81 kB / 425.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2843, allocations: 0.7031 kB / 425.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.2843, allocations: 9.359 kB / 425.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2843, allocations: 1.078 kB / 425.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2843, allocations: 0 / 425.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004073/0.2847, allocations: 411.4 kB / 426.3 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.2848, allocations: 104.1 kB / 426.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.2848, allocations: 5.75 kB / 426.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.285, allocations: 25.14 kB / 426.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.285, allocations: 22.11 kB / 426.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.2851, allocations: 5.906 kB / 426.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.709e-05/0.2851, allocations: 133.2 kB / 426.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2851, allocations: 0 / 426.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003394/0.2855, allocations: 86.17 kB / 426.7 MB, free: 13.88 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 8 (noise.localSeed,$whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * 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.0007775/0.2863, allocations: 1.093 MB / 427.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.2865, allocations: 224.7 kB / 428 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2866, allocations: 0 / 428 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.2867, allocations: 82 kB / 428.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.2869, allocations: 17.47 kB / 428.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006057/0.2875, allocations: 404 kB / 428.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.2876, allocations: 0.7422 MB / 429.2 MB, free: 12.12 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.2877, allocations: 33.47 kB / 429.2 MB, free: 12.11 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.387e-05/0.2878, allocations: 61.22 kB / 429.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2879, allocations: 0 / 429.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.3073, allocations: 4.644 MB / 433.9 MB, free: 11.77 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/0.3075, allocations: 169.2 kB / 434.1 MB, free: 11.57 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_UniformNoiseProperties -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_UniformNoiseProperties_FMU.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_FMU.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties.c:7: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_functions.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_functions.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_functions.c:1: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties_functions.c:6: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties_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_UniformNoiseProperties_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_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_records.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_records.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_01exo.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_01exo.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_01exo.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_02nls.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_02nls.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_02nls.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_03lsy.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_03lsy.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_03lsy.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_04set.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_04set.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_04set.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_05evt.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_05evt.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_05evt.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties -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_UniformNoiseProperties_06inz.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_06inz.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_06inz.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_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_UniformNoiseProperties_06inz.c:127:55: error: use of undeclared identifier '$Pstate'; did you mean 'setstate'? integer_array_create(&tmp1, ((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_UniformNoiseProperties_06inz.c:127:93: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp1, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_UniformNoiseProperties_06inz.c:127:137: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp1, ((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_UniformNoiseProperties_06inz.o] Error 1