Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.515e-05, allocations: 4 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4436/0.5552, allocations: 79.58 MB / 422.2 MB, free: 14.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.5555, allocations: 70.59 kB / 422.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03084/0.5864, allocations: 6.344 MB / 428.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5864, allocations: 0 / 428.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.5865, allocations: 4 kB / 428.6 MB, free: 8.703 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001019/0.5875, allocations: 496.2 kB / 429.1 MB, free: 8.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.5876, allocations: 12.03 kB / 429.1 MB, free: 8.172 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.986e-05/0.5876, allocations: 38.11 kB / 429.2 MB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.5879, allocations: 27.72 kB / 429.2 MB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004/0.5883, allocations: 245.1 kB / 429.4 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.5884, allocations: 7.938 kB / 429.4 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.5884, allocations: 11.94 kB / 429.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.5887, allocations: 97.64 kB / 429.5 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.5887, allocations: 3.984 kB / 429.5 MB, free: 7.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.5887, allocations: 7.891 kB / 429.5 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.5888, allocations: 4 kB / 429.5 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.589, allocations: 62.41 kB / 429.6 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.5901, allocations: 450 kB / 430 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.5904, allocations: 107.7 kB / 430.2 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.5906, allocations: 57.38 kB / 430.2 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.5906, allocations: 7.891 kB / 430.2 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.5909, allocations: 116.7 kB / 430.3 MB, free: 7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.965e-06/0.5909, allocations: 0 / 430.3 MB, free: 7 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004809/0.5914, allocations: 167 kB / 430.5 MB, free: 6.859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.5915, allocations: 62.97 kB / 430.6 MB, free: 6.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003199/0.5918, allocations: 205.7 kB / 430.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.5919, allocations: 37.08 kB / 430.8 MB, free: 6.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.695e-05/0.592, allocations: 167.8 kB / 431 MB, free: 6.422 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.073e-05/0.5921, allocations: 46.28 kB / 431 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.5921, allocations: 7.719 kB / 431 MB, free: 6.379 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5922, allocations: 326 kB / 431.3 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.5924, allocations: 71.41 kB / 431.4 MB, free: 6.008 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.5927, allocations: 91.84 kB / 431.5 MB, free: 5.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.5929, allocations: 88 kB / 431.6 MB, free: 5.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5929, allocations: 0 / 431.6 MB, free: 5.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005949/0.5936, allocations: 221.6 kB / 431.8 MB, free: 5.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.5936, allocations: 15.98 kB / 431.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.5936, allocations: 0 / 431.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.5936, allocations: 0 / 431.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.594, allocations: 30.98 kB / 431.8 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.594, allocations: 0 / 431.8 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.5944, allocations: 35.19 kB / 431.9 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.5944, allocations: 4 kB / 431.9 MB, free: 5.629 MB / 346.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: 17 ($whenCondition1,$PRE.whiteNoise.state[1],whiteNoise.state[1],$PRE.whiteNoise.state[2],whiteNoise.state[2],$PRE.whiteNoise.state[3],whiteNoise.state[3],$PRE.whiteNoise.state[4],whiteNoise.state[4],$PRE.whiteNoise.r,whiteNoise.r,$PRE.whiteNoise.r_raw,whiteNoise.r_raw,whiteNoise.localSeed,whiteNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * 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 0.0001325/0.5946, allocations: 127.9 kB / 432 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.5946, allocations: 19.72 kB / 432 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.365e-05/0.5947, allocations: 24.59 kB / 432 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5947, allocations: 0 / 432 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5947, allocations: 0 / 432 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.5947, allocations: 3.984 kB / 432 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003216/0.5951, allocations: 243.7 kB / 432.3 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5951, allocations: 0 / 432.3 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.5953, allocations: 13.88 kB / 432.3 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.5953, allocations: 7.984 kB / 432.3 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.5954, allocations: 4 kB / 432.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.5954, allocations: 3.953 kB / 432.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5954, allocations: 0 / 432.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005995/0.596, allocations: 259.4 kB / 432.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.5962, allocations: 108.2 kB / 432.7 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.458e-05/0.5962, allocations: 11.61 kB / 432.7 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.5965, allocations: 20.03 kB / 432.7 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.706e-05/0.5966, allocations: 19.31 kB / 432.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.5967, allocations: 0 / 432.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002253/0.5969, allocations: 162.9 kB / 432.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5969, allocations: 0 / 432.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006248/0.5975, allocations: 110.1 kB / 433 MB, free: 4.562 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Hw.x_scaled[1],Hw.x_scaled[2]) * Number of discrete variables: 7 ($whenCondition1,whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4],whiteNoise.r,whiteNoise.r_raw) * Number of discrete states: 4 (whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00189/0.5994, allocations: 1.02 MB / 434 MB, free: 3.609 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004946/0.6, allocations: 185.8 kB / 434.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.6, allocations: 4.062 kB / 434.2 MB, free: 3.461 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.6001, allocations: 63.97 kB / 434.3 MB, free: 3.418 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.6004, allocations: 11.02 kB / 434.3 MB, free: 3.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.6016, allocations: 387.5 kB / 434.6 MB, free: 3.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.602, allocations: 0.7315 MB / 435.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.6021, allocations: 51.23 kB / 435.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6021, allocations: 0 / 435.4 MB, free: 2.246 MB / 346.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_DrydenContinuousTurbulenceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceFunctions.cpp:134: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_DrydenContinuousTurbulenceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceFunctions.cpp:221: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_DrydenContinuousTurbulenceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceFunctions.cpp:415: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_DrydenContinuousTurbulenceCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceInitialize.cpp:237:3: error: use of undeclared identifier '$PRE_P_whiteNoise_P_state_'; did you mean '_whiteNoise_P_state_'? $PRE_P_whiteNoise_P_state_.assign(tmp58); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _whiteNoise_P_state_ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence.h:199:33: note: '_whiteNoise_P_state_' declared here StatArrayDim1 _whiteNoise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceFMU.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_DrydenContinuousTurbulenceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulenceCalcHelperMain.o] Error 1