Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise.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: translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise,tolerance=1e-05,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002168/0.002168, allocations: 176.4 kB / 7.453 MB, free: 2.523 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.8981/0.8981, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.001599/0.001599, allocations: 107.9 kB / 217.7 MB, free: 8.164 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.01805/0.01805, allocations: 3.039 MB / 259.8 MB, free: 28.61 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.471e-05/1.482e-05, allocations: 4 kB / 305.3 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1613, allocations: 39.38 MB / 344.6 MB, free: 38.49 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.2734, allocations: 114 MB / 458.7 MB, free: 9.746 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.2737, allocations: 83.95 kB / 458.8 MB, free: 9.664 MB / 330.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: time 0.2889/0.5627, allocations: 77.24 MB / 0.5235 GB, free: 53.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003121/0.563, allocations: 87.77 kB / 0.5235 GB, free: 53.76 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 813 * Number of variables: 813 Notification: Performance of Generate backend data structure: time 0.00798/0.571, allocations: 3.255 MB / 0.5267 GB, free: 50.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.571, allocations: 8.031 kB / 0.5267 GB, free: 50.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/0.5731, allocations: 463.1 kB / 0.5272 GB, free: 49.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005402/0.5785, allocations: 2.372 MB / 0.5295 GB, free: 47.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004572/0.579, allocations: 263.2 kB / 0.5297 GB, free: 47.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009542/0.58, allocations: 187.9 kB / 0.5299 GB, free: 47.13 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006233/0.5862, allocations: 3.332 MB / 0.5332 GB, free: 43.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006653/0.5929, allocations: 3.681 MB / 0.5368 GB, free: 39.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.993e-05/0.593, allocations: 19.83 kB / 0.5368 GB, free: 39.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002871/0.5933, allocations: 0 / 0.5368 GB, free: 39.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.794e-05/0.5934, allocations: 146 kB / 0.5369 GB, free: 39.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01826/0.6117, allocations: 13.33 MB / 0.5499 GB, free: 26.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.6136, allocations: 1.338 MB / 0.5512 GB, free: 24.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.6152, allocations: 1.21 MB / 0.5524 GB, free: 23.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002956/0.6155, allocations: 153.9 kB / 0.5526 GB, free: 23.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001519/0.617, allocations: 1.2 MB / 0.5537 GB, free: 22.28 MB / 330.7 MB Notification: Performance of pre-optimization done (n=195): time 5.37e-06/0.6171, allocations: 0 / 0.5537 GB, free: 22.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=248): time 0.01794/0.635, allocations: 9.87 MB / 0.5634 GB, free: 12.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.6351, allocations: 209.9 kB / 0.5636 GB, free: 12.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00247/0.6376, allocations: 1.504 MB / 0.5651 GB, free: 10.6 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.6378, allocations: 45.72 kB / 0.5651 GB, free: 10.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008478/0.6386, allocations: 1.14 MB / 0.5662 GB, free: 9.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005258/0.6392, allocations: 0.8006 MB / 0.567 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.6393, allocations: 0 / 0.567 GB, free: 8.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.6395, allocations: 415.5 kB / 0.5674 GB, free: 8.168 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.6411, allocations: 1.235 MB / 0.5686 GB, free: 6.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/0.6429, allocations: 1.855 MB / 0.5704 GB, free: 4.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/0.645, allocations: 1.518 MB / 0.5719 GB, free: 3.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.6451, allocations: 8 kB / 0.5719 GB, free: 3.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.005516/0.6506, allocations: 3.632 MB / 0.5754 GB, free: 15.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6506, allocations: 4 kB / 0.5754 GB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.834e-05/0.6507, allocations: 16 kB / 0.5755 GB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.652, allocations: 495.5 kB / 0.5759 GB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/0.6549, allocations: 0.6708 MB / 0.5766 GB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.6599, allocations: 4.241 MB / 0.5807 GB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002189/0.6621, allocations: 111.8 kB / 0.5808 GB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003761/0.6625, allocations: 124 kB / 0.581 GB, free: 9.695 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gearbox.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gearbox.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition1,motor.uniformNoise.localSeed,$PRE.motor.uniformNoise.state[1],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[4],$PRE.motor.uniformNoise.r,motor.uniformNoise.r,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.mode,gearbox.lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (316): * Single equations (assignments): 310 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006281/0.6632, allocations: 174.9 kB / 0.5811 GB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006247/0.6638, allocations: 241 kB / 0.5814 GB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006444/0.6702, allocations: 3.404 MB / 0.5847 GB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.6703, allocations: 24 kB / 0.5847 GB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.6703, allocations: 4 kB / 0.5847 GB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.349e-05/0.6703, allocations: 11.95 kB / 0.5847 GB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.117/0.7873, allocations: 8.871 MB / 0.5934 GB, free: 100.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.7874, allocations: 3.75 kB / 0.5934 GB, free: 100.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002094/0.7895, allocations: 463.3 kB / 0.5938 GB, free: 100.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.791, allocations: 0.6481 MB / 0.5945 GB, free: 100.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.7912, allocations: 20.62 kB / 0.5945 GB, free: 100.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006717/0.7979, allocations: 7.114 MB / 0.6014 GB, free: 96.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002906/0.8008, allocations: 3.063 MB / 0.6044 GB, free: 95.59 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006909/0.8077, allocations: 5.359 MB / 0.6096 GB, free: 95.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.8088, allocations: 0.6155 MB / 0.6102 GB, free: 95.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003914/0.8092, allocations: 19.44 kB / 0.6103 GB, free: 95.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.8106, allocations: 99.17 kB / 0.6104 GB, free: 95.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.8109, allocations: 158.2 kB / 0.6105 GB, free: 95.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.8111, allocations: 78.5 kB / 0.6106 GB, free: 95.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001402/0.8125, allocations: 1.123 MB / 0.6117 GB, free: 94.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002166/0.8146, allocations: 0.7184 MB / 0.6124 GB, free: 94.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 11 ($STATESET1.x,controller.speed_PI.x,controller.positionToSpeed.x,controller.position_PI.x,gearbox.phi_rel,gearbox.w_rel,slewRateLimiter.y,rodMass.s,rodMass.v,elastoGap.s_rel,elastoGap.v_rel) * Number of discrete variables: 13 (motor.uniformNoise.localSeed,$whenCondition1,motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],motor.uniformNoise.r,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,gearbox.lossyGear.mode) * Number of discrete states: 5 (motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],gearbox.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(3,100.0%) 11} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007699/0.8154, allocations: 0.4898 MB / 0.6129 GB, free: 94.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00417/0.8196, allocations: 3.462 MB / 0.6162 GB, free: 94.31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.8196, allocations: 0 / 0.6162 GB, free: 94.31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00265/0.8223, allocations: 2.053 MB / 0.6182 GB, free: 93.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.8243, allocations: 459 kB / 0.6187 GB, free: 93.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.8355, allocations: 5.798 MB / 0.6243 GB, free: 92.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002604/0.8381, allocations: 2.618 MB / 0.6269 GB, free: 91.91 MB / 346.7 MB Notification: Performance of SimCode: time 6.71e-07/0.8381, allocations: 0 / 0.6269 GB, free: 91.91 MB / 346.7 MB Notification: Performance of Templates: time 0.06244/0.9006, allocations: 39.02 MB / 0.665 GB, free: 77.9 MB / 346.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise.makefile clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_functions.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_functions.c In file included from Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_functions.c:6: In file included from ./Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_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.ActuatorWithNoise_functions.c:613: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.ActuatorWithNoise_functions.c:699: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.ActuatorWithNoise_functions.c:921: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) { ^ 4 warnings generated. clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_records.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_records.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_01exo.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_01exo.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_02nls.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_02nls.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_03lsy.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_03lsy.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_04set.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_04set.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_05evt.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_05evt.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ActuatorWithNoise -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_06inz.o Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_06inz.c Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_06inz.c:3364:56: error: use of undeclared identifier '$Pstate'; did you mean 'setstate'? integer_array_create(&tmp35, ((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.ActuatorWithNoise_06inz.c:3364:94: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp35, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_06inz.c:3364:138: error: use of undeclared identifier '$PstateSize' integer_array_create(&tmp35, ((modelica_integer*)&((&$Pstate)[calc_base_index_dims_subs(1, $PstateSize, ((modelica_integer) 1))])), 1, $PstateSize); ^ 3 errors generated. make: *** [: Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ActuatorWithNoise_06inz.o] Error 1