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.216/2.216, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.838e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3088, allocations: 44.48 MB / 294.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1814/0.4903, allocations: 73.3 MB / 367.5 MB, free: 8.602 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003822/0.4908, allocations: 71.97 kB / 367.6 MB, free: 8.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03647/0.5273, allocations: 7.42 MB / 375 MB, free: 1.082 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5273, allocations: 0 / 375 MB, free: 1.082 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.5274, allocations: 4 kB / 375 MB, free: 1.078 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.001077/0.5284, allocations: 0.4983 MB / 375.5 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.5285, allocations: 8.031 kB / 375.5 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003023/0.5288, allocations: 31.8 kB / 375.5 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.5291, allocations: 211.9 kB / 375.7 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.5291, allocations: 0 / 375.7 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.5292, allocations: 4 kB / 375.7 MB, free: 248 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001617/0.5294, allocations: 43.92 kB / 375.8 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.5296, allocations: 112.2 kB / 375.9 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.5296, allocations: 0 / 375.9 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.5297, allocations: 0 / 375.9 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.5297, allocations: 0 / 375.9 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.5308, allocations: 0.5366 MB / 376.4 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.5311, allocations: 123.8 kB / 376.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.5313, allocations: 58.67 kB / 376.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.5313, allocations: 0 / 376.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003264/0.5316, allocations: 133.9 kB / 376.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.134e-06/0.5316, allocations: 0 / 376.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.001093/0.5328, allocations: 201.4 kB / 376.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.5329, allocations: 123 kB / 377 MB, free: 14.78 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.5331, allocations: 170.2 kB / 377.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/0.5332, allocations: 37.7 kB / 377.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.5334, allocations: 171 kB / 377.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.836e-05/0.5335, allocations: 47.44 kB / 377.5 MB, free: 14.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.5335, allocations: 0 / 377.5 MB, free: 14.35 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5336, allocations: 334.8 kB / 377.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.5339, allocations: 71.98 kB / 377.9 MB, free: 13.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.5341, allocations: 119.9 kB / 378 MB, free: 13.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009373/0.5351, allocations: 129.5 kB / 378.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.5351, allocations: 4 kB / 378.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001209/0.5363, allocations: 285.4 kB / 378.4 MB, free: 13.4 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.5364, allocations: 7.75 kB / 378.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.687e-05/0.5364, allocations: 4 kB / 378.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.5365, allocations: 0 / 378.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.5367, allocations: 35.91 kB / 378.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.5367, allocations: 3.938 kB / 378.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.5369, allocations: 23.94 kB / 378.5 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/0.537, allocations: 20 kB / 378.5 MB, free: 13.31 MB / 330.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.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,$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,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.0001847/0.5372, allocations: 137.9 kB / 378.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008948/0.5381, allocations: 201.4 kB / 378.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.5382, allocations: 15.81 kB / 378.8 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.131e-05/0.5382, allocations: 21.86 kB / 378.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.5382, allocations: 0 / 378.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.5383, allocations: 0 / 378.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.147e-05/0.5383, allocations: 7.953 kB / 378.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.5386, allocations: 186.1 kB / 379 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5386, allocations: 0 / 379 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.5387, allocations: 23.92 kB / 379.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.5388, allocations: 0 / 379.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.5388, allocations: 4 kB / 379.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.5388, allocations: 0 / 379.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.5388, allocations: 4 kB / 379.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009153/0.5397, allocations: 265.9 kB / 379.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/0.5399, allocations: 96.8 kB / 379.4 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.321e-05/0.5399, allocations: 19.98 kB / 379.4 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.5401, allocations: 7.984 kB / 379.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5402, allocations: 23.88 kB / 379.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.5402, allocations: 4 kB / 379.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001671/0.5404, allocations: 132.1 kB / 379.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5404, allocations: 0 / 379.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008554/0.5413, allocations: 155.7 kB / 379.8 MB, free: 11.93 MB / 330.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,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.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.003112/0.5444, allocations: 1.281 MB / 381 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005989/0.5451, allocations: 223.2 kB / 381.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5451, allocations: 0 / 381.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.5453, allocations: 51.98 kB / 381.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.5455, allocations: 16.38 kB / 381.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.5467, allocations: 342.2 kB / 381.7 MB, free: 9.938 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.5471, allocations: 0.7162 MB / 382.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.5472, allocations: 43.42 kB / 382.4 MB, free: 9.148 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5472, allocations: 8 kB / 382.4 MB, free: 9.141 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_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/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_DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o] Error 1