Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ActuatorWithNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.624e-05/3.631e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 50.42 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5233/0.6316, allocations: 125.3 MB / 468 MB, free: 1.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.6319, allocations: 81.83 kB / 468 MB, free: 1.035 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.643/1.275, allocations: 79.58 MB / 0.5348 GB, free: 96.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.275, allocations: 0 / 0.5348 GB, free: 96.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004718/1.275, allocations: 89.84 kB / 0.5349 GB, free: 96.71 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 814 * Number of variables: 814 Notification: Performance of Generate backend data structure: time 0.01465/1.29, allocations: 3.31 MB / 0.5381 GB, free: 95.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/1.29, allocations: 9.312 kB / 0.5381 GB, free: 95.48 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002169/1.292, allocations: 444.1 kB / 0.5385 GB, free: 95.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003717/1.296, allocations: 464 kB / 0.539 GB, free: 95.22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009817/1.306, allocations: 2.561 MB / 0.5415 GB, free: 94.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009742/1.307, allocations: 358 kB / 0.5418 GB, free: 94.6 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001724/1.309, allocations: 325 kB / 0.5421 GB, free: 94.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01551/1.324, allocations: 4.048 MB / 0.5461 GB, free: 94.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/1.325, allocations: 9.406 kB / 0.5461 GB, free: 94.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001202/1.326, allocations: 129.2 kB / 0.5462 GB, free: 94.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002453/1.326, allocations: 140.9 kB / 0.5463 GB, free: 94.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/1.338, allocations: 3.455 MB / 0.5497 GB, free: 94.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03896/1.377, allocations: 14.03 MB / 0.5634 GB, free: 90.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/1.382, allocations: 2.073 MB / 0.5655 GB, free: 89.83 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003211/1.385, allocations: 1.194 MB / 0.5666 GB, free: 89.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005321/1.386, allocations: 235.8 kB / 0.5668 GB, free: 89.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003238/1.389, allocations: 1.232 MB / 0.568 GB, free: 88.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=193): time 6.232e-06/1.389, allocations: 2.969 kB / 0.568 GB, free: 88.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=244): time 0.04104/1.43, allocations: 10.97 MB / 0.5788 GB, free: 84.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006125/1.436, allocations: 3.533 MB / 0.5822 GB, free: 82.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/1.442, allocations: 1.944 MB / 0.5841 GB, free: 81.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007793/1.442, allocations: 76.05 kB / 0.5842 GB, free: 81.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001678/1.444, allocations: 1.392 MB / 0.5855 GB, free: 80.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001483/1.446, allocations: 0.818 MB / 0.5863 GB, free: 79.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004599/1.446, allocations: 55.34 kB / 0.5864 GB, free: 79.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002669/1.446, allocations: 420.9 kB / 0.5868 GB, free: 78.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003774/1.45, allocations: 1.266 MB / 0.588 GB, free: 78.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004034/1.454, allocations: 1.878 MB / 0.5899 GB, free: 77.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00398/1.458, allocations: 1.531 MB / 0.5914 GB, free: 76.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-05/1.458, allocations: 3.406 kB / 0.5914 GB, free: 76.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01025/1.469, allocations: 3.639 MB / 0.5949 GB, free: 75.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/1.469, allocations: 11.19 kB / 0.5949 GB, free: 75.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.176e-05/1.469, allocations: 18.97 kB / 0.5949 GB, free: 75.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/1.471, allocations: 0.4898 MB / 0.5954 GB, free: 74.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00547/1.476, allocations: 0.6832 MB / 0.5961 GB, free: 74.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007426/1.484, allocations: 4.638 MB / 0.6006 GB, free: 71.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00414/1.488, allocations: 205 kB / 0.6008 GB, free: 71.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007232/1.489, allocations: 115.8 kB / 0.6009 GB, free: 71.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$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,motor.uniformNoise.localSeed,motor.uniformNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * 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.0008409/1.49, allocations: 283.3 kB / 0.6012 GB, free: 71.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009767/1.491, allocations: 265.7 kB / 0.6014 GB, free: 70.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/1.501, allocations: 3.539 MB / 0.6049 GB, free: 69.44 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/1.501, allocations: 21.34 kB / 0.6049 GB, free: 69.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.501, allocations: 3.594 kB / 0.6049 GB, free: 69.44 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.427e-05/1.501, allocations: 10.92 kB / 0.6049 GB, free: 69.44 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02527/1.526, allocations: 9.284 MB / 0.614 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/1.526, allocations: 0 / 0.614 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00422/1.531, allocations: 472.3 kB / 0.6145 GB, free: 62.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002811/1.533, allocations: 0.652 MB / 0.6151 GB, free: 62.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005206/1.534, allocations: 55.11 kB / 0.6151 GB, free: 62.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/1.546, allocations: 7.701 MB / 0.6227 GB, free: 54.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005484/1.552, allocations: 3.289 MB / 0.6259 GB, free: 51.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.565, allocations: 5.372 MB / 0.6311 GB, free: 46.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002364/1.567, allocations: 0.654 MB / 0.6318 GB, free: 46.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000908/1.568, allocations: 55.88 kB / 0.6318 GB, free: 46.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003287/1.571, allocations: 165.6 kB / 0.632 GB, free: 45.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007484/1.572, allocations: 205.4 kB / 0.6322 GB, free: 45.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.572, allocations: 74.08 kB / 0.6322 GB, free: 45.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003411/1.576, allocations: 1.478 MB / 0.6337 GB, free: 44.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.576, allocations: 0 / 0.6337 GB, free: 44.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004669/1.58, allocations: 0.8539 MB / 0.6345 GB, free: 43.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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: 12 ($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 (204): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.01529/1.596, allocations: 6.813 MB / 0.6412 GB, free: 37.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009322/1.605, allocations: 3.544 MB / 0.6446 GB, free: 33.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.605, allocations: 4 kB / 0.6446 GB, free: 33.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005918/1.611, allocations: 2.154 MB / 0.6467 GB, free: 31.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005423/1.617, allocations: 0.5773 MB / 0.6473 GB, free: 31.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/1.64, allocations: 6.89 MB / 0.654 GB, free: 25.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004156/1.644, allocations: 2.428 MB / 0.6564 GB, free: 23.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00405/1.648, allocations: 1.361 MB / 0.6577 GB, free: 22.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.853e-06/1.648, allocations: 0 / 0.6577 GB, free: 22.12 MB / 442.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseFunctions.cpp:616:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:74:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseFunctions.cpp:703:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:72:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseFunctions.cpp:897:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:78:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star( ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseInitialize.cpp:3077:3: error: use of undeclared identifier '$PRE_P_motor_P_uniformNoise_P_state_'; did you mean '_motor_P_uniformNoise_P_state_'? $PRE_P_motor_P_uniformNoise_P_state_.assign(tmp180); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _motor_P_uniformNoise_P_state_ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoise.h:482:33: note: '_motor_P_uniformNoise_P_state_' declared here StatArrayDim1 _motor_P_uniformNoise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 4 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ActuatorWithNoiseCalcHelperMain.o] Error 1