Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.094e-05/4.11e-05, allocations: 8 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 44.5 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4565/0.559, allocations: 73.96 MB / 373.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/0.5595, allocations: 68.98 kB / 374 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04736/0.6068, allocations: 7.473 MB / 381.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6069, allocations: 0 / 381.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.6069, allocations: 2.5 kB / 381.5 MB, free: 11.6 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001212/0.6082, allocations: 0.4948 MB / 381.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.6082, allocations: 9.375 kB / 382 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.603e-05/0.6083, allocations: 44.22 kB / 382 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003544/0.6087, allocations: 34.84 kB / 382 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.6089, allocations: 206.4 kB / 382.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.609, allocations: 7.375 kB / 382.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.609, allocations: 6.406 kB / 382.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.6093, allocations: 123 kB / 382.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.6094, allocations: 0 / 382.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.6094, allocations: 4.188 kB / 382.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.6094, allocations: 1.469 kB / 382.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.6096, allocations: 43.7 kB / 382.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.6109, allocations: 0.576 MB / 383 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.6113, allocations: 130.1 kB / 383.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.6115, allocations: 52.78 kB / 383.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.6115, allocations: 3.516 kB / 383.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.6118, allocations: 152.5 kB / 383.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 3.367e-06/0.6118, allocations: 0 / 383.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.000578/0.6124, allocations: 171.2 kB / 383.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.6125, allocations: 121 kB / 383.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.6128, allocations: 175.6 kB / 383.8 MB, free: 9.934 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-05/0.6129, allocations: 46.61 kB / 383.8 MB, free: 9.898 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.6131, allocations: 179.8 kB / 384 MB, free: 9.742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.693e-05/0.6132, allocations: 43.22 kB / 384 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.6132, allocations: 5.219 kB / 384 MB, free: 9.719 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.732e-05/0.6133, allocations: 323.5 kB / 384.4 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.6135, allocations: 79.42 kB / 384.4 MB, free: 9.402 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.6138, allocations: 112 kB / 384.6 MB, free: 9.371 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.6141, allocations: 95.36 kB / 384.6 MB, free: 9.363 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.6141, allocations: 0 / 384.6 MB, free: 9.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006876/0.6148, allocations: 259.3 kB / 384.9 MB, free: 9.316 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.6148, allocations: 4.156 kB / 384.9 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/0.6149, allocations: 5.734 kB / 384.9 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.6149, allocations: 5.484 kB / 384.9 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.6152, allocations: 32.22 kB / 384.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.6152, allocations: 5.312 kB / 385 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.6154, allocations: 20.78 kB / 385 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.6155, allocations: 15.91 kB / 385 MB, free: 9.297 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * 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.0001571/0.6157, allocations: 129.6 kB / 385.1 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.6157, allocations: 22.59 kB / 385.1 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.718e-05/0.6158, allocations: 22.3 kB / 385.2 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.6158, allocations: 5.328 kB / 385.2 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.6158, allocations: 5.375 kB / 385.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.6159, allocations: 0 / 385.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.6161, allocations: 219.8 kB / 385.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.6161, allocations: 0 / 385.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.6163, allocations: 13.81 kB / 385.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.6163, allocations: 1.375 kB / 385.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.6163, allocations: 9.672 kB / 385.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.6163, allocations: 4 kB / 385.4 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.6163, allocations: 5.328 kB / 385.4 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.6168, allocations: 241 kB / 385.7 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.6169, allocations: 95.98 kB / 385.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.617, allocations: 21.36 kB / 385.8 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.6171, allocations: 8.266 kB / 385.8 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.6172, allocations: 16.22 kB / 385.8 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.6173, allocations: 4.125 kB / 385.8 MB, free: 8.715 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000161/0.6175, allocations: 140.6 kB / 385.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6175, allocations: 0 / 385.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009938/0.6185, allocations: 158 kB / 386.1 MB, free: 8.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * 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.00252/0.621, allocations: 1.26 MB / 387.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006146/0.6217, allocations: 231.6 kB / 387.6 MB, free: 7.617 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.6217, allocations: 0 / 387.6 MB, free: 7.617 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.6219, allocations: 62.36 kB / 387.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.6221, allocations: 11.94 kB / 387.6 MB, free: 7.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.6234, allocations: 352.7 kB / 388 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.6237, allocations: 0.7252 MB / 388.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.6238, allocations: 44.48 kB / 388.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6238, allocations: 1.344 kB / 388.8 MB, free: 6.668 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_DistributionsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsInitialize.cpp:256:3: error: use of undeclared identifier '$PRE_P_truncatedNormalNoise_P_state_'; did you mean '_truncatedNormalNoise_P_state_'? $PRE_P_truncatedNormalNoise_P_state_.assign(tmp82); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _truncatedNormalNoise_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions.h:198:33: note: '_truncatedNormalNoise_P_state_' declared here StatArrayDim1 _truncatedNormalNoise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsInitialize.cpp:384:3: error: use of undeclared identifier '$PRE_P_uniformNoise_P_state_'; did you mean '_uniformNoise_P_state_'? $PRE_P_uniformNoise_P_state_.assign(tmp87); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise_P_state_ ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions.h:199:33: note: '_uniformNoise_P_state_' declared here StatArrayDim1 _uniformNoise_P_state_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsFMU.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_DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o] Error 1