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.204/2.204, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.951e-05, allocations: 4 kB / 255.4 MB, free: 3.129 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.0992, allocations: 44.5 MB / 299.9 MB, free: 6.562 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4615/0.5608, allocations: 73.96 MB / 373.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.5611, allocations: 74.58 kB / 374 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03381/0.5949, allocations: 7.457 MB / 381.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.595, allocations: 0 / 381.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.595, allocations: 2.188 kB / 381.4 MB, free: 12.05 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.001052/0.5961, allocations: 0.5008 MB / 381.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.5961, allocations: 12.97 kB / 381.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.124e-05/0.5962, allocations: 43.64 kB / 382 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.5965, allocations: 35.67 kB / 382 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.5967, allocations: 200.2 kB / 382.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.5968, allocations: 13.72 kB / 382.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.5968, allocations: 8.875 kB / 382.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.5971, allocations: 115.7 kB / 382.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.5971, allocations: 5.312 kB / 382.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.5972, allocations: 7.922 kB / 382.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.5972, allocations: 4.047 kB / 382.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.5973, allocations: 47.31 kB / 382.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009538/0.5983, allocations: 0.5751 MB / 383 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.5986, allocations: 124.5 kB / 383.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.5988, allocations: 61.61 kB / 383.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.5988, allocations: 1.219 kB / 383.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.5991, allocations: 150.4 kB / 383.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.314e-06/0.5991, allocations: 1.281 kB / 383.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004966/0.5996, allocations: 181.6 kB / 383.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.5997, allocations: 117.5 kB / 383.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.5999, allocations: 171.2 kB / 383.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.6, allocations: 43.34 kB / 383.8 MB, free: 10.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.177e-05/0.6001, allocations: 185.7 kB / 384 MB, free: 10.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/0.6001, allocations: 43.23 kB / 384 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/0.6002, allocations: 3.812 kB / 384 MB, free: 10.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.6002, allocations: 322.8 kB / 384.3 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.6005, allocations: 83.23 kB / 384.4 MB, free: 9.832 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.6007, allocations: 116.1 kB / 384.5 MB, free: 9.797 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.601, allocations: 90.7 kB / 384.6 MB, free: 9.797 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.601, allocations: 1.938 kB / 384.6 MB, free: 9.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000631/0.6016, allocations: 254.9 kB / 384.9 MB, free: 9.746 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.6017, allocations: 5.344 kB / 384.9 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.6017, allocations: 1.938 kB / 384.9 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/0.6017, allocations: 8.266 kB / 384.9 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.602, allocations: 33.75 kB / 384.9 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.6021, allocations: 3.531 kB / 384.9 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.6022, allocations: 22.52 kB / 385 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.305e-05/0.6023, allocations: 8.938 kB / 385 MB, free: 9.73 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.0001354/0.6024, allocations: 142.5 kB / 385.1 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.6025, allocations: 19.97 kB / 385.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.023e-05/0.6025, allocations: 18.52 kB / 385.1 MB, free: 9.594 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.6026, allocations: 5.328 kB / 385.1 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.6026, allocations: 1.375 kB / 385.1 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.6026, allocations: 1.469 kB / 385.1 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.6028, allocations: 218.9 kB / 385.4 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.6029, allocations: 5.375 kB / 385.4 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.603, allocations: 12.72 kB / 385.4 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.603, allocations: 1.375 kB / 385.4 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.603, allocations: 9.453 kB / 385.4 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/0.603, allocations: 5.312 kB / 385.4 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.603, allocations: 9.266 kB / 385.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004125/0.6035, allocations: 244.3 kB / 385.6 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.6035, allocations: 93.28 kB / 385.7 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.928e-05/0.6036, allocations: 15.42 kB / 385.7 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.6038, allocations: 13.45 kB / 385.8 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.958e-05/0.6039, allocations: 10.98 kB / 385.8 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.6039, allocations: 9.438 kB / 385.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001427/0.6041, allocations: 145.9 kB / 385.9 MB, free: 9.059 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6041, allocations: 0 / 385.9 MB, free: 9.059 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008806/0.605, allocations: 157.2 kB / 386.1 MB, free: 9.012 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.002184/0.6071, allocations: 1.255 MB / 387.3 MB, free: 8.117 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005764/0.6078, allocations: 227.7 kB / 387.6 MB, free: 8.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6078, allocations: 1.438 kB / 387.6 MB, free: 8.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.6079, allocations: 59.97 kB / 387.6 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.6081, allocations: 13.75 kB / 387.6 MB, free: 8.035 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.6093, allocations: 356.1 kB / 388 MB, free: 7.801 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.6095, allocations: 0.7231 MB / 388.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.6096, allocations: 50.36 kB / 388.7 MB, free: 7.094 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6096, allocations: 0 / 388.7 MB, free: 7.094 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