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.138/2.138, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.577e-05/3.588e-05, allocations: 8 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09998/0.1001, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.502, allocations: 71.89 MB / 371.8 MB, free: 21.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.5023, allocations: 72.38 kB / 371.9 MB, free: 21.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01936/0.5217, allocations: 4.14 MB / 376.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5218, allocations: 0 / 376.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.5218, allocations: 6.281 kB / 376.1 MB, free: 20.82 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.0008484/0.5226, allocations: 430.2 kB / 376.5 MB, free: 20.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.5227, allocations: 9.031 kB / 376.5 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.943e-05/0.5228, allocations: 47.28 kB / 376.5 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004267/0.5232, allocations: 38.72 kB / 376.6 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.5234, allocations: 188.5 kB / 376.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.5235, allocations: 7.25 kB / 376.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.5235, allocations: 10.47 kB / 376.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.5238, allocations: 101.7 kB / 376.9 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.5238, allocations: 7.875 kB / 376.9 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.5238, allocations: 5.547 kB / 376.9 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.5239, allocations: 2.344 kB / 376.9 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.524, allocations: 36.52 kB / 376.9 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009204/0.525, allocations: 478.5 kB / 377.4 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.5253, allocations: 107.6 kB / 377.5 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.5254, allocations: 48.72 kB / 377.5 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.5254, allocations: 1.438 kB / 377.5 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.5257, allocations: 133.1 kB / 377.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 3.176e-06/0.5257, allocations: 0 / 377.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004858/0.5262, allocations: 167.9 kB / 377.8 MB, free: 19.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.335e-05/0.5263, allocations: 100.5 kB / 377.9 MB, free: 19.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.5265, allocations: 163.5 kB / 378.1 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.84e-05/0.5266, allocations: 47 kB / 378.1 MB, free: 19.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.815e-05/0.5267, allocations: 168 kB / 378.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.5267, allocations: 45.66 kB / 378.4 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.5268, allocations: 5.766 kB / 378.4 MB, free: 19.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.275e-05/0.5269, allocations: 321.6 kB / 378.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.5271, allocations: 76.23 kB / 378.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.5274, allocations: 110.6 kB / 378.9 MB, free: 18.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.5276, allocations: 88.42 kB / 378.9 MB, free: 18.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.5276, allocations: 0 / 378.9 MB, free: 18.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006515/0.5283, allocations: 254.1 kB / 379.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.5283, allocations: 6 kB / 379.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.5284, allocations: 3.938 kB / 379.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.5284, allocations: 6.062 kB / 379.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.5287, allocations: 30.59 kB / 379.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.5287, allocations: 2.438 kB / 379.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.5289, allocations: 29.17 kB / 379.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/0.529, allocations: 11.67 kB / 379.3 MB, free: 18.73 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.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,$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,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.000155/0.5291, allocations: 131.2 kB / 379.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.5292, allocations: 17.06 kB / 379.4 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.482e-05/0.5292, allocations: 15.34 kB / 379.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.5293, allocations: 1.406 kB / 379.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.5293, allocations: 0 / 379.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.5293, allocations: 1.188 kB / 379.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.5295, allocations: 222.4 kB / 379.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.5296, allocations: 5.672 kB / 379.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.911e-05/0.5296, allocations: 9.75 kB / 379.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.5297, allocations: 1.219 kB / 379.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.5297, allocations: 6.094 kB / 379.7 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.5297, allocations: 1.734 kB / 379.7 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5297, allocations: 0 / 379.7 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.5301, allocations: 210.5 kB / 379.9 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.5302, allocations: 94.23 kB / 380 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/0.5303, allocations: 14.06 kB / 380 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.5304, allocations: 9.656 kB / 380 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.5305, allocations: 15.22 kB / 380 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.5305, allocations: 5.875 kB / 380 MB, free: 18.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.5307, allocations: 129 kB / 380.1 MB, free: 18.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5307, allocations: 0 / 380.1 MB, free: 18.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005989/0.5313, allocations: 65.12 kB / 380.2 MB, free: 18.1 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,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.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.001487/0.5328, allocations: 1.004 MB / 381.2 MB, free: 17.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005843/0.5334, allocations: 222 kB / 381.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5334, allocations: 0 / 381.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.5336, allocations: 51.03 kB / 381.5 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.5338, allocations: 15.47 kB / 381.5 MB, free: 17.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008762/0.5347, allocations: 281.1 kB / 381.8 MB, free: 17.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.5349, allocations: 0.714 MB / 382.5 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.982e-05/0.535, allocations: 39.89 kB / 382.5 MB, free: 16.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.242e-06/0.535, allocations: 0 / 382.5 MB, free: 16.38 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_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/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 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