Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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 1.972/1.972, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004795/0.0004796, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1113, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3927/0.504, allocations: 74.19 MB / 382.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5044, allocations: 78.47 kB / 382.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03025/0.5346, allocations: 6.356 MB / 389.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.5347, allocations: 0 / 389.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.5347, allocations: 7.938 kB / 389.2 MB, free: 13.75 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.001467/0.5362, allocations: 0.5475 MB / 389.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.5362, allocations: 7.656 kB / 389.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.088e-05/0.5363, allocations: 37.91 kB / 389.8 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002544/0.5366, allocations: 31 kB / 389.8 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006612/0.5372, allocations: 278.6 kB / 390.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.5373, allocations: 7.062 kB / 390.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.5373, allocations: 7.25 kB / 390.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.5376, allocations: 103.1 kB / 390.2 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.5377, allocations: 0 / 390.2 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.5377, allocations: 0 / 390.2 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.5377, allocations: 7.906 kB / 390.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.538, allocations: 95.23 kB / 390.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009687/0.539, allocations: 439.6 kB / 390.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.5394, allocations: 128.7 kB / 390.8 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.5394, allocations: 0 / 390.8 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.5397, allocations: 116.2 kB / 390.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.194e-06/0.5397, allocations: 0 / 390.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.000739/0.5405, allocations: 323.1 kB / 391.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.5405, allocations: 65.39 kB / 391.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/0.5413, allocations: 224.6 kB / 391.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.914e-05/0.5414, allocations: 41.86 kB / 391.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.205e-05/0.5415, allocations: 177.1 kB / 391.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.264e-05/0.5416, allocations: 40.94 kB / 391.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.5416, allocations: 7.562 kB / 391.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.597e-05/0.5417, allocations: 319.9 kB / 392.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003253/0.542, allocations: 82.77 kB / 392.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003583/0.5424, allocations: 105.1 kB / 392.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.5428, allocations: 102.7 kB / 392.4 MB, free: 11.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5428, allocations: 0 / 392.4 MB, free: 11.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008512/0.5437, allocations: 240.1 kB / 392.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.5437, allocations: 7.719 kB / 392.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.5438, allocations: 0 / 392.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.5438, allocations: 0 / 392.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.5442, allocations: 28.52 kB / 392.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.5442, allocations: 3.938 kB / 392.7 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004464/0.5446, allocations: 43.3 kB / 392.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.933e-05/0.5447, allocations: 3.875 kB / 392.7 MB, free: 11.7 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 () * Number of clocked 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.0002451/0.545, allocations: 144.8 kB / 392.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.987e-05/0.545, allocations: 22.23 kB / 392.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.785e-05/0.5451, allocations: 18.56 kB / 392.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.5452, allocations: 6.781 kB / 392.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.5452, allocations: 4 kB / 392.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.5452, allocations: 0 / 392.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.5455, allocations: 240.6 kB / 393.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.5456, allocations: 0 / 393.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.5458, allocations: 21.89 kB / 393.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.5459, allocations: 3.875 kB / 393.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.5459, allocations: 6.422 kB / 393.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.5459, allocations: 0 / 393.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5459, allocations: 0 / 393.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008871/0.5468, allocations: 290 kB / 393.5 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.547, allocations: 103.7 kB / 393.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.416e-05/0.5471, allocations: 10.14 kB / 393.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.5475, allocations: 20.33 kB / 393.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.5475, allocations: 13.08 kB / 393.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.5476, allocations: 7.875 kB / 393.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006051/0.5482, allocations: 184.6 kB / 393.8 MB, free: 11.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5482, allocations: 0 / 393.8 MB, free: 11.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009423/0.5492, allocations: 118.6 kB / 393.9 MB, free: 11.06 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]) * Number of clocked states: 0 () * 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.002413/0.5516, allocations: 1.047 MB / 395 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007274/0.5524, allocations: 201.7 kB / 395.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5524, allocations: 4.062 kB / 395.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.5527, allocations: 64.86 kB / 395.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.553, allocations: 11.19 kB / 395.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.5547, allocations: 0.8612 MB / 396.1 MB, free: 9.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.555, allocations: 0.7304 MB / 396.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.5552, allocations: 45.78 kB / 396.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of SimCode: time 8.21e-07/0.5552, allocations: 0 / 396.9 MB, free: 8.957 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:235: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