Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.109e-05/3.118e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4494/0.5513, allocations: 74.1 MB / 374.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5516, allocations: 74.91 kB / 374.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03085/0.5825, allocations: 6.275 MB / 380.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5826, allocations: 5 kB / 380.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.5826, allocations: 2.594 kB / 380.4 MB, free: 12.1 MB / 314.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.001095/0.5837, allocations: 0.4908 MB / 380.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.5838, allocations: 9.156 kB / 380.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.776e-05/0.5838, allocations: 38.33 kB / 380.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.5841, allocations: 30.23 kB / 381 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.5846, allocations: 245 kB / 381.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.5846, allocations: 13.12 kB / 381.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.5847, allocations: 8.406 kB / 381.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.585, allocations: 102.8 kB / 381.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.585, allocations: 0 / 381.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.585, allocations: 5.25 kB / 381.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.585, allocations: 1.156 kB / 381.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/0.5853, allocations: 67.69 kB / 381.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.5864, allocations: 446.6 kB / 381.8 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.5868, allocations: 112.3 kB / 382 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.5869, allocations: 59.78 kB / 382 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.5869, allocations: 1.281 kB / 382 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.5872, allocations: 110.8 kB / 382.1 MB, free: 11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.076e-06/0.5872, allocations: 1.156 kB / 382.1 MB, free: 11 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004941/0.5877, allocations: 165.8 kB / 382.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.5878, allocations: 63.48 kB / 382.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.5881, allocations: 208 kB / 382.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.5882, allocations: 41.5 kB / 382.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.513e-05/0.5883, allocations: 179.1 kB / 382.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.72e-05/0.5883, allocations: 40.52 kB / 382.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.5884, allocations: 1.312 kB / 382.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.5885, allocations: 320 kB / 383.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.5887, allocations: 71.56 kB / 383.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.5889, allocations: 102.1 kB / 383.3 MB, free: 10.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002375/0.5892, allocations: 89.19 kB / 383.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5892, allocations: 0 / 383.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000552/0.5898, allocations: 221.8 kB / 383.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.5898, allocations: 4.438 kB / 383.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.5898, allocations: 1.469 kB / 383.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.5899, allocations: 1.406 kB / 383.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003228/0.5902, allocations: 37.36 kB / 383.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.5902, allocations: 5.406 kB / 383.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/0.5906, allocations: 35.34 kB / 383.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.425e-05/0.5907, allocations: 9.703 kB / 383.7 MB, free: 10.17 MB / 314.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.0001114/0.5908, allocations: 120.9 kB / 383.8 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.5908, allocations: 18.72 kB / 383.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.664e-05/0.5909, allocations: 20.72 kB / 383.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5909, allocations: 5.406 kB / 383.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.591, allocations: 0 / 383.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.591, allocations: 0 / 383.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.5913, allocations: 242.7 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5913, allocations: 3.188 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.5915, allocations: 15.77 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.5915, allocations: 1.156 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.5916, allocations: 4.75 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.5916, allocations: 1.281 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5916, allocations: 0 / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006052/0.5922, allocations: 264.8 kB / 384.4 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.5923, allocations: 112.1 kB / 384.5 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.166e-05/0.5924, allocations: 7.188 kB / 384.5 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/0.5927, allocations: 19.55 kB / 384.5 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.5928, allocations: 13.33 kB / 384.5 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.5929, allocations: 3.656 kB / 384.5 MB, free: 9.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000225/0.5931, allocations: 165.5 kB / 384.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5931, allocations: 0 / 384.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007564/0.5939, allocations: 117 kB / 384.8 MB, free: 9.551 MB / 314.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.001922/0.5958, allocations: 1.018 MB / 385.8 MB, free: 8.855 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005682/0.5964, allocations: 184.8 kB / 386 MB, free: 8.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5964, allocations: 0 / 386 MB, free: 8.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.5966, allocations: 64.2 kB / 386.1 MB, free: 8.816 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.5969, allocations: 15.36 kB / 386.1 MB, free: 8.812 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.5982, allocations: 392.5 kB / 386.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.5984, allocations: 0.7384 MB / 387.2 MB, free: 7.891 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.5986, allocations: 49.84 kB / 387.2 MB, free: 7.883 MB / 314.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5986, allocations: 0 / 387.2 MB, free: 7.883 MB / 314.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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulenceCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulenceCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulenceCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulence.h:199:33: note: '_whiteNoise_P_state_' declared here StatArrayDim1 _whiteNoise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulenceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_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 1 error generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulenceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DrydenContinuousTurbulenceCalcHelperMain.o] Error 1