Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.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.DrydenContinuousTurbulence,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Noise.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence",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.0007807/0.0007847, allocations: 172.6 kB / 15.42 MB, free: 6.211 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.008/1.008, allocations: 170.5 MB / 186.7 MB, free: 0.9141 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.001499/0.001499, allocations: 102.1 kB / 226 MB, free: 10.28 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.02051/0.02051, allocations: 3.114 MB / 268.3 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003252, allocations: 8 kB / 318.2 MB, free: 63.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05223/0.05257, allocations: 39.13 MB / 357.4 MB, free: 24.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence): time 0.001356/0.05396, allocations: 1.359 MB / 358.7 MB, free: 22.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.0555, allocations: 1.271 MB / 360 MB, free: 21.54 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.705e-05/0.05558, allocations: 4 kB / 360 MB, free: 21.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002844/0.05587, allocations: 23.84 kB / 360 MB, free: 21.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.05615, allocations: 99.7 kB / 360.1 MB, free: 21.42 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.05646, allocations: 191.6 kB / 360.3 MB, free: 21.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.05662, allocations: 171.6 kB / 360.5 MB, free: 21.06 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.26e-05/0.0567, allocations: 21.05 kB / 360.5 MB, free: 21.04 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.05682, allocations: 79.69 kB / 360.6 MB, free: 20.96 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.05695, allocations: 83.7 kB / 360.6 MB, free: 20.88 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.05699, allocations: 8 kB / 360.7 MB, free: 20.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003411/0.05733, allocations: 339.2 kB / 361 MB, free: 20.54 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-05/0.0574, allocations: 39.89 kB / 361 MB, free: 20.5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.102e-05/0.05746, allocations: 63.58 kB / 361.1 MB, free: 20.44 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003128/0.05778, allocations: 339 kB / 361.4 MB, free: 20.11 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.0578, allocations: 12 kB / 361.4 MB, free: 20.1 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.0578, allocations: 0 / 361.4 MB, free: 20.1 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.05781, allocations: 0 / 361.4 MB, free: 20.1 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008861/0.0587, allocations: 0.53 MB / 362 MB, free: 19.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.05875, allocations: 8.031 kB / 362 MB, free: 19.51 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.134e-05/0.05878, allocations: 42.69 kB / 362 MB, free: 19.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.05896, allocations: 28.73 kB / 362 MB, free: 19.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.05929, allocations: 275.8 kB / 362.3 MB, free: 19.12 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.05932, allocations: 8.375 kB / 362.3 MB, free: 19.12 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.05935, allocations: 8.375 kB / 362.3 MB, free: 19.11 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.05953, allocations: 131.3 kB / 362.5 MB, free: 18.97 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.05955, allocations: 3.906 kB / 362.5 MB, free: 18.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.05957, allocations: 4 kB / 362.5 MB, free: 18.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.05958, allocations: 4 kB / 362.5 MB, free: 18.96 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.05974, allocations: 83.88 kB / 362.5 MB, free: 18.88 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.06037, allocations: 0.5163 MB / 363.1 MB, free: 18.3 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.06059, allocations: 149.1 kB / 363.2 MB, free: 18.14 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.434e-05/0.0607, allocations: 69.69 kB / 363.3 MB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.06072, allocations: 0 / 363.3 MB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.06091, allocations: 145.1 kB / 363.4 MB, free: 17.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.06092, allocations: 3.938 kB / 363.4 MB, free: 17.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004135/0.06134, allocations: 253.4 kB / 363.7 MB, free: 17.65 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.06138, allocations: 89.23 kB / 363.8 MB, free: 17.54 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.06169, allocations: 242.5 kB / 364 MB, free: 17.29 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.06172, allocations: 37.69 kB / 364 MB, free: 17.25 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.221e-05/0.06176, allocations: 116.1 kB / 364.1 MB, free: 17.13 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.0618, allocations: 43.59 kB / 364.2 MB, free: 17.09 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.06184, allocations: 17.72 kB / 364.2 MB, free: 17.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 4.577e-05/0.06189, allocations: 338.8 kB / 364.5 MB, free: 16.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.06202, allocations: 83.95 kB / 364.6 MB, free: 16.64 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.06214, allocations: 105.5 kB / 364.7 MB, free: 16.54 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.06237, allocations: 180.8 kB / 364.9 MB, free: 16.36 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.06238, allocations: 0 / 364.9 MB, free: 16.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002988/0.06269, allocations: 253.2 kB / 365.1 MB, free: 16.1 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.06271, allocations: 4.094 kB / 365.1 MB, free: 16.1 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.06272, allocations: 3.938 kB / 365.2 MB, free: 16.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/0.06273, allocations: 4 kB / 365.2 MB, free: 16.09 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.06288, allocations: 27.97 kB / 365.2 MB, free: 16.06 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.06289, allocations: 0 / 365.2 MB, free: 16.06 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001789/0.06308, allocations: 31.86 kB / 365.2 MB, free: 16.03 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.0631, allocations: 11.97 kB / 365.2 MB, free: 16.02 MB / 250.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,whiteNoise.r_raw,$PRE.whiteNoise.r_raw,whiteNoise.r,$PRE.whiteNoise.r,whiteNoise.state[4],$PRE.whiteNoise.state[4],whiteNoise.state[3],$PRE.whiteNoise.state[3],whiteNoise.state[2],$PRE.whiteNoise.state[2],whiteNoise.state[1],$PRE.whiteNoise.state[1],whiteNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.214e-05/0.06319, allocations: 147.7 kB / 365.4 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.736e-05/0.06322, allocations: 15.81 kB / 365.4 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.993e-05/0.06327, allocations: 21.53 kB / 365.4 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.06327, allocations: 4 kB / 365.4 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.06328, allocations: 3.984 kB / 365.4 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.06329, allocations: 0 / 365.4 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.06344, allocations: 245.4 kB / 365.7 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.06345, allocations: 0 / 365.7 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.06357, allocations: 19.98 kB / 365.7 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.06358, allocations: 4 kB / 365.7 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.0636, allocations: 0 / 365.7 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.06361, allocations: 0 / 365.7 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.06361, allocations: 4 kB / 365.7 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.06403, allocations: 309.4 kB / 366 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.06407, allocations: 96.84 kB / 366.1 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.06411, allocations: 8 kB / 366.1 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.06429, allocations: 19.97 kB / 366.1 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.06434, allocations: 15.98 kB / 366.1 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.06435, allocations: 8.062 kB / 366.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002486/0.06461, allocations: 191.9 kB / 366.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.06462, allocations: 0 / 366.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002953/0.06492, allocations: 91.98 kB / 366.4 MB, free: 14.75 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Hw.x_scaled[1],Hw.x_scaled[2]) * Number of discrete variables: 8 ($whenCondition1,whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4],whiteNoise.r,whiteNoise.r_raw,whiteNoise.localSeed) * Number of discrete states: 4 (whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008272/0.06575, allocations: 0.9741 MB / 367.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002672/0.06603, allocations: 163.9 kB / 367.5 MB, free: 13.59 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.06604, allocations: 0 / 367.5 MB, free: 13.59 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.06616, allocations: 84 kB / 367.6 MB, free: 13.51 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.06638, allocations: 16 kB / 367.6 MB, free: 13.49 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.06876, allocations: 2.411 MB / 370 MB, free: 10.99 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.06888, allocations: 0.7283 MB / 370.8 MB, free: 10.24 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.887e-05/0.06897, allocations: 29.41 kB / 370.8 MB, free: 10.21 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.357e-05/0.06905, allocations: 47.42 kB / 370.9 MB, free: 10.16 MB / 250.7 MB Notification: Performance of SimCode: time 2.21e-07/0.06905, allocations: 0 / 370.9 MB, free: 10.16 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01275/0.08181, allocations: 4.899 MB / 375.8 MB, free: 5.367 MB / 250.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000123/0.08196, allocations: 225.4 kB / 376 MB, free: 5.117 MB / 250.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence.c:7: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_functions.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_functions.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_functions.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227: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_DrydenContinuousTurbulence_functions.c:7: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_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_DrydenContinuousTurbulence_functions.c:23: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_DrydenContinuousTurbulence_functions.c:108: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_DrydenContinuousTurbulence_functions.c:334: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 -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_records.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_records.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_records.c:4: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_01exo.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_01exo.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_01exo.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_02nls.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_02nls.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_02nls.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_03lsy.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_03lsy.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_03lsy.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_04set.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_04set.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_04set.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_05evt.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_05evt.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_05evt.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:155: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.c:37:53: error: use of undeclared identifier 'state'; did you mean 'static'? integer_array_create(&tmp0, ((modelica_integer*)&(state)), 1, (_index_t)stateSize); ^~~~~ static Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.c:37:53: error: address of overloaded function 'status' does not match required type 'long' integer_array_create(&tmp0, ((modelica_integer*)&(state)), 1, (_index_t)stateSize); ^~~~~ Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.c:37:75: error: use of undeclared identifier 'stateSize' integer_array_create(&tmp0, ((modelica_integer*)&(state)), 1, (_index_t)stateSize); ^ 2 warnings and 3 errors generated. make: *** [: Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence_06inz.o] Error 1