Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.335/2.335, allocations: 235 MB / 247.6 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.627e-05, allocations: 4 kB / 305 MB, free: 5.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3876, allocations: 54.86 MB / 359.9 MB, free: 2.238 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.5483, allocations: 83.42 MB / 443.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5486, allocations: 63.97 kB / 443.3 MB, free: 13.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.367/1.915, allocations: 71.78 MB / 0.503 GB, free: 5.586 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.085e-06/1.915, allocations: 0 / 0.503 GB, free: 5.586 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.678e-06/1.915, allocations: 0 / 0.503 GB, free: 5.586 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.008326/1.924, allocations: 463.9 kB / 0.5035 GB, free: 5.082 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/1.924, allocations: 8.031 kB / 0.5035 GB, free: 5.074 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.38e-05/1.924, allocations: 38.55 kB / 0.5035 GB, free: 5.027 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/1.924, allocations: 0 / 0.5035 GB, free: 5.027 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/1.924, allocations: 163.1 kB / 0.5037 GB, free: 4.828 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/1.924, allocations: 4 kB / 0.5037 GB, free: 4.824 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/1.924, allocations: 0 / 0.5037 GB, free: 4.824 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/1.924, allocations: 33.69 kB / 0.5037 GB, free: 4.785 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/1.924, allocations: 3.953 kB / 0.5037 GB, free: 4.781 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/1.924, allocations: 4 kB / 0.5037 GB, free: 4.777 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/1.924, allocations: 0 / 0.5037 GB, free: 4.777 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.665e-05/1.924, allocations: 3.938 kB / 0.5037 GB, free: 4.773 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002713/1.925, allocations: 229 kB / 0.504 GB, free: 4.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.148e-05/1.925, allocations: 22.61 kB / 0.504 GB, free: 4.469 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.717e-05/1.925, allocations: 16.91 kB / 0.504 GB, free: 4.449 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/1.925, allocations: 3.953 kB / 0.504 GB, free: 4.445 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.674e-05/1.925, allocations: 60.27 kB / 0.5041 GB, free: 4.371 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.743e-06/1.925, allocations: 0 / 0.5041 GB, free: 4.371 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002257/1.925, allocations: 63.34 kB / 0.5041 GB, free: 4.297 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/1.925, allocations: 89.08 kB / 0.5042 GB, free: 4.191 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.327e-05/1.925, allocations: 92.98 kB / 0.5043 GB, free: 4.094 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/1.925, allocations: 25.7 kB / 0.5043 GB, free: 4.062 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/1.925, allocations: 150.6 kB / 0.5045 GB, free: 3.914 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/1.925, allocations: 3.906 kB / 0.5045 GB, free: 3.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-06/1.925, allocations: 0 / 0.5045 GB, free: 3.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/1.925, allocations: 310.8 kB / 0.5048 GB, free: 3.598 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.718e-05/1.925, allocations: 4 kB / 0.5048 GB, free: 3.594 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.769e-06/1.926, allocations: 0 / 0.5048 GB, free: 3.594 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.369e-05/1.926, allocations: 38.48 kB / 0.5048 GB, free: 3.551 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/1.926, allocations: 0 / 0.5048 GB, free: 3.551 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001112/1.926, allocations: 63.39 kB / 0.5049 GB, free: 3.477 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/1.926, allocations: 35.42 kB / 0.5049 GB, free: 3.438 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/1.926, allocations: 7.203 kB / 0.5049 GB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/1.926, allocations: 0 / 0.5049 GB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.245e-05/1.926, allocations: 3.938 kB / 0.5049 GB, free: 3.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/1.926, allocations: 0 / 0.5049 GB, free: 3.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.344e-05/1.926, allocations: 0 / 0.5049 GB, free: 3.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/1.926, allocations: 12.03 kB / 0.5049 GB, free: 3.418 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0001027/1.926, allocations: 130.7 kB / 0.505 GB, free: 3.277 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/1.926, allocations: 3.984 kB / 0.505 GB, free: 3.273 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/1.926, allocations: 11.08 kB / 0.5051 GB, free: 3.262 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/1.926, allocations: 3.953 kB / 0.5051 GB, free: 3.258 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/1.926, allocations: 0 / 0.5051 GB, free: 3.258 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/1.926, allocations: 0 / 0.5051 GB, free: 3.258 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/1.926, allocations: 288.4 kB / 0.5053 GB, free: 2.914 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/1.927, allocations: 8.031 kB / 0.5053 GB, free: 2.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-06/1.927, allocations: 0 / 0.5053 GB, free: 2.906 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/1.927, allocations: 3.953 kB / 0.5053 GB, free: 2.902 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/1.927, allocations: 0 / 0.5053 GB, free: 2.902 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/1.927, allocations: 0 / 0.5053 GB, free: 2.902 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/1.927, allocations: 7.922 kB / 0.5054 GB, free: 2.895 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/1.927, allocations: 161.3 kB / 0.5055 GB, free: 2.715 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/1.927, allocations: 77.11 kB / 0.5056 GB, free: 2.621 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/1.927, allocations: 11.97 kB / 0.5056 GB, free: 2.609 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.59e-05/1.927, allocations: 0 / 0.5056 GB, free: 2.609 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.964e-05/1.927, allocations: 7.938 kB / 0.5056 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/1.927, allocations: 0 / 0.5056 GB, free: 2.602 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.908e-05/1.927, allocations: 75.28 kB / 0.5057 GB, free: 2.527 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.927, allocations: 0 / 0.5057 GB, free: 2.527 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01038/1.937, allocations: 1.527 MB / 0.5072 GB, free: 1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.01857/1.956, allocations: 2.642 MB / 0.5097 GB, free: 14.33 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001712/1.956, allocations: 67.39 kB / 0.5098 GB, free: 14.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.956, allocations: 4.094 kB / 0.5098 GB, free: 14.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.174e-05/1.956, allocations: 63.34 kB / 0.5099 GB, free: 14.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/1.957, allocations: 6.297 kB / 0.5099 GB, free: 14.17 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005182/1.962, allocations: 212 kB / 0.5101 GB, free: 13.92 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/1.962, allocations: 0.6777 MB / 0.5107 GB, free: 13.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.942e-05/1.962, allocations: 7.438 kB / 0.5107 GB, free: 13.21 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/1.962, allocations: 0 / 0.5107 GB, free: 13.21 MB / 458.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 OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9170:49: error: use of undeclared identifier '_omcQuot_24746D7056617232_'; did you mean '_omcQuot_24746D7056617233_'? _omcQuot_24746D7056617233_ = std::abs(_omcQuot_24746D7056617232_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617233_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9145:14: note: '_omcQuot_24746D7056617233_' declared here double _omcQuot_24746D7056617233_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier '_omcQuot_24746D7056617235_'; did you mean '_omcQuot_24746D7056617236_'? Modelica_Math_Distributions_TruncatedNormal_cumulative(_omcQuot_24746D7056617235_, -1.5, 1.5, 0.0, 0.5,tmp3083); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617236_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10204:14: note: '_omcQuot_24746D7056617236_' declared here double _omcQuot_24746D7056617236_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12301:49: error: use of undeclared identifier '_omcQuot_24746D7056617238_'; did you mean '_omcQuot_24746D7056617239_'? _omcQuot_24746D7056617239_ = std::abs(_omcQuot_24746D7056617238_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617239_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12276:14: note: '_omcQuot_24746D7056617239_' declared here double _omcQuot_24746D7056617239_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier '_omcQuot_24746D705661723131_'; did you mean '_omcQuot_24746D705661723132_'? Modelica_Math_Distributions_TruncatedWeibull_cumulative(_omcQuot_24746D705661723131_, 0.0, 0.8, 0.5, 2.0,tmp6105); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723132_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13335:14: note: '_omcQuot_24746D705661723132_' declared here double _omcQuot_24746D705661723132_; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFMU.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 4 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o] Error 1