Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.064/2.064, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.842e-05/2.839e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3178, allocations: 44.49 MB / 294.2 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1417/0.4595, allocations: 71.24 MB / 365.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4599, allocations: 63.97 kB / 365.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01926/0.4792, allocations: 4.124 MB / 369.6 MB, free: 6.543 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4793, allocations: 4 kB / 369.6 MB, free: 6.539 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.4793, allocations: 0 / 369.6 MB, free: 6.539 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.0008019/0.4801, allocations: 426.8 kB / 370 MB, free: 6.078 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.4802, allocations: 8.031 kB / 370.1 MB, free: 6.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004151/0.4806, allocations: 39.78 kB / 370.1 MB, free: 6.031 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.4808, allocations: 202.8 kB / 370.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.4809, allocations: 0 / 370.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.4809, allocations: 8 kB / 370.3 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001387/0.4811, allocations: 35.92 kB / 370.3 MB, free: 5.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.4813, allocations: 95.38 kB / 370.4 MB, free: 5.645 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.4813, allocations: 0 / 370.4 MB, free: 5.645 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.4813, allocations: 3.984 kB / 370.4 MB, free: 5.641 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.4814, allocations: 0 / 370.4 MB, free: 5.641 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008696/0.4822, allocations: 370 kB / 370.8 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.4825, allocations: 101.3 kB / 370.9 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.953e-05/0.4826, allocations: 45.75 kB / 370.9 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.4827, allocations: 0 / 370.9 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.4829, allocations: 130.9 kB / 371.1 MB, free: 4.926 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 1.864e-06/0.483, allocations: 0 / 371.1 MB, free: 4.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004686/0.4834, allocations: 169.7 kB / 371.2 MB, free: 4.754 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/0.4835, allocations: 97.09 kB / 371.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.4838, allocations: 149.5 kB / 371.5 MB, free: 4.488 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.751e-05/0.4839, allocations: 41.69 kB / 371.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.484, allocations: 170.9 kB / 371.7 MB, free: 4.273 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/0.4841, allocations: 39.55 kB / 371.7 MB, free: 4.234 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.4841, allocations: 0 / 371.7 MB, free: 4.234 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4843, allocations: 326.8 kB / 372 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.4845, allocations: 76.48 kB / 372.1 MB, free: 3.824 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.4847, allocations: 103.3 kB / 372.2 MB, free: 3.715 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.4852, allocations: 105.5 kB / 372.3 MB, free: 3.613 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4852, allocations: 3.938 kB / 372.3 MB, free: 3.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007414/0.486, allocations: 245.4 kB / 372.6 MB, free: 3.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.486, allocations: 4 kB / 372.6 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.486, allocations: 0 / 372.6 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.4861, allocations: 8.062 kB / 372.6 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.4863, allocations: 31.92 kB / 372.6 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4864, allocations: 0 / 372.6 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.4865, allocations: 27.67 kB / 372.6 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.4866, allocations: 8 kB / 372.6 MB, free: 3.285 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0001667/0.4868, allocations: 131.8 kB / 372.8 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003685/0.4871, allocations: 173.4 kB / 372.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.09e-05/0.4872, allocations: 7.906 kB / 372.9 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.693e-05/0.4872, allocations: 13.84 kB / 373 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.4872, allocations: 0 / 373 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4873, allocations: 0 / 373 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4873, allocations: 4 kB / 373 MB, free: 2.949 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.4875, allocations: 190 kB / 373.1 MB, free: 2.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.4876, allocations: 7.938 kB / 373.1 MB, free: 2.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.4877, allocations: 8 kB / 373.2 MB, free: 2.711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4877, allocations: 4 kB / 373.2 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.4877, allocations: 3.984 kB / 373.2 MB, free: 2.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.4878, allocations: 4 kB / 373.2 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4878, allocations: 0 / 373.2 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.4882, allocations: 203.4 kB / 373.4 MB, free: 2.473 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.162e-05/0.4883, allocations: 101 kB / 373.5 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.4883, allocations: 8 kB / 373.5 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.4885, allocations: 11.98 kB / 373.5 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.4885, allocations: 15.97 kB / 373.5 MB, free: 2.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.4886, allocations: 7.984 kB / 373.5 MB, free: 2.312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001285/0.4887, allocations: 119.2 kB / 373.6 MB, free: 2.195 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4887, allocations: 0 / 373.6 MB, free: 2.195 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005246/0.4893, allocations: 59.94 kB / 373.7 MB, free: 2.137 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001491/0.4908, allocations: 0.9999 MB / 374.7 MB, free: 1.125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004968/0.4913, allocations: 219.2 kB / 374.9 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4913, allocations: 0 / 374.9 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.4915, allocations: 51.98 kB / 374.9 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.4917, allocations: 4 kB / 375 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007817/0.4925, allocations: 265.5 kB / 375.2 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.4929, allocations: 0.7159 MB / 375.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.493, allocations: 39.42 kB / 376 MB, free: 15.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.493, allocations: 0 / 376 MB, free: 15.75 MB / 330.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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseInitialize.cpp:255:3: error: use of undeclared identifier '$PRE_P_uniformNoise2_P_state_'; did you mean '_uniformNoise2_P_state_'? $PRE_P_uniformNoise2_P_state_.assign(tmp41); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise2_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:198:33: note: '_uniformNoise2_P_state_' declared here StatArrayDim1 _uniformNoise2_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseInitialize.cpp:381:3: error: use of undeclared identifier '$PRE_P_uniformNoise1_P_state_'; did you mean '_uniformNoise1_P_state_'? $PRE_P_uniformNoise1_P_state_.assign(tmp45); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise1_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:197:33: note: '_uniformNoise1_P_state_' declared here StatArrayDim1 _uniformNoise1_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o] Error 1