Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.367/2.367, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.435e-05/4.444e-05, allocations: 8 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4013, allocations: 54.85 MB / 359.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.551, allocations: 82.06 MB / 441.9 MB, free: 14.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.5513, allocations: 63.97 kB / 442 MB, free: 14.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924/2.475, allocations: 81.79 MB / 0.5115 GB, free: 12.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.214e-06/2.475, allocations: 0 / 0.5115 GB, free: 12.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.294e-06/2.475, allocations: 0 / 0.5115 GB, free: 12.88 MB / 458.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.005741/2.481, allocations: 439.9 kB / 0.5119 GB, free: 12.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/2.481, allocations: 8.031 kB / 0.5119 GB, free: 12.39 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.267e-05/2.481, allocations: 34.5 kB / 0.512 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/2.481, allocations: 3.984 kB / 0.512 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/2.481, allocations: 163.8 kB / 0.5121 GB, free: 12.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/2.481, allocations: 0 / 0.5121 GB, free: 12.15 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/2.482, allocations: 4 kB / 0.5121 GB, free: 12.14 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/2.482, allocations: 33.66 kB / 0.5121 GB, free: 12.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/2.482, allocations: 0 / 0.5121 GB, free: 12.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/2.482, allocations: 4 kB / 0.5122 GB, free: 12.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/2.482, allocations: 0 / 0.5122 GB, free: 12.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.527e-05/2.482, allocations: 7.938 kB / 0.5122 GB, free: 12.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003056/2.482, allocations: 229.7 kB / 0.5124 GB, free: 11.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.666e-05/2.482, allocations: 26.58 kB / 0.5124 GB, free: 11.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.428e-05/2.482, allocations: 12.88 kB / 0.5124 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/2.482, allocations: 0 / 0.5124 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.053e-05/2.482, allocations: 56.27 kB / 0.5125 GB, free: 11.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.854e-06/2.482, allocations: 2.625 kB / 0.5125 GB, free: 11.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.000211/2.483, allocations: 75.38 kB / 0.5125 GB, free: 11.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/2.483, allocations: 81.14 kB / 0.5126 GB, free: 11.52 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.031e-05/2.483, allocations: 85 kB / 0.5127 GB, free: 11.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/2.483, allocations: 29.64 kB / 0.5127 GB, free: 11.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/2.483, allocations: 150.6 kB / 0.5129 GB, free: 11.24 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/2.483, allocations: 7.906 kB / 0.5129 GB, free: 11.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/2.483, allocations: 0 / 0.5129 GB, free: 11.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/2.483, allocations: 318.8 kB / 0.5132 GB, free: 10.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.389e-05/2.483, allocations: 0 / 0.5132 GB, free: 10.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.348e-05/2.483, allocations: 4 kB / 0.5132 GB, free: 10.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.03e-05/2.483, allocations: 33.77 kB / 0.5132 GB, free: 10.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/2.483, allocations: 0 / 0.5132 GB, free: 10.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000107/2.483, allocations: 63.41 kB / 0.5133 GB, free: 10.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/2.483, allocations: 39.36 kB / 0.5133 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/2.483, allocations: 0 / 0.5133 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/2.483, allocations: 4 kB / 0.5133 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.865e-05/2.483, allocations: 0 / 0.5133 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/2.483, allocations: 4 kB / 0.5133 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/2.483, allocations: 0 / 0.5133 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/2.483, allocations: 0 / 0.5133 GB, free: 10.75 MB / 458.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.0001006/2.483, allocations: 134.7 kB / 0.5135 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.191e-05/2.484, allocations: 0 / 0.5135 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/2.484, allocations: 14.97 kB / 0.5135 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/2.484, allocations: 0 / 0.5135 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/2.484, allocations: 0 / 0.5135 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/2.484, allocations: 7.984 kB / 0.5135 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/2.484, allocations: 292.3 kB / 0.5138 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/2.484, allocations: 1.031 kB / 0.5138 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.506e-06/2.484, allocations: 4.031 kB / 0.5138 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/2.484, allocations: 7.891 kB / 0.5138 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/2.484, allocations: 4 kB / 0.5138 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/2.484, allocations: 0 / 0.5138 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/2.484, allocations: 0 / 0.5138 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001714/2.484, allocations: 169.2 kB / 0.5139 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/2.484, allocations: 81.11 kB / 0.514 GB, free: 9.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/2.484, allocations: 7.984 kB / 0.514 GB, free: 9.922 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.658e-05/2.484, allocations: 0 / 0.514 GB, free: 9.922 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.466e-05/2.484, allocations: 0 / 0.514 GB, free: 9.922 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/2.484, allocations: 8.641 kB / 0.514 GB, free: 9.914 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.254e-05/2.485, allocations: 75.28 kB / 0.5141 GB, free: 9.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/2.485, allocations: 0 / 0.5141 GB, free: 9.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01421/2.499, allocations: 2.148 MB / 0.5162 GB, free: 7.691 MB / 458.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.02141/2.52, allocations: 2.868 MB / 0.519 GB, free: 4.797 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001753/2.52, allocations: 64.44 kB / 0.5191 GB, free: 4.723 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/2.52, allocations: 4.094 kB / 0.5191 GB, free: 4.719 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 6.376e-05/2.521, allocations: 59.41 kB / 0.5191 GB, free: 4.648 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/2.521, allocations: 6.297 kB / 0.5191 GB, free: 4.645 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/2.526, allocations: 203.9 kB / 0.5193 GB, free: 4.402 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/2.526, allocations: 0.6692 MB / 0.52 GB, free: 3.707 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/2.526, allocations: 11.44 kB / 0.52 GB, free: 3.695 MB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/2.526, allocations: 0 / 0.52 GB, free: 3.695 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_TestDistributionsCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:11987: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_TestDistributionsFunctions.cpp:11962:14: note: '_omcQuot_24746D7056617233_' declared here double _omcQuot_24746D7056617233_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13044:58: error: use of undeclared identifier '_omcQuot_24746D7056617235_'; did you mean '_omcQuot_24746D7056617236_'? Modelica_Math_Distributions_Uniform_cumulative(_omcQuot_24746D7056617235_, -1.0, 2.0,tmp3068); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617236_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13021:14: note: '_omcQuot_24746D7056617236_' declared here double _omcQuot_24746D7056617236_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15118: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_TestDistributionsFunctions.cpp:15093:14: note: '_omcQuot_24746D7056617239_' declared here double _omcQuot_24746D7056617239_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16175:57: error: use of undeclared identifier '_omcQuot_24746D705661723131_'; did you mean '_omcQuot_24746D705661723132_'? Modelica_Math_Distributions_Normal_cumulative(_omcQuot_24746D705661723131_, 1.0, 0.5,tmp6090); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723132_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16152:14: note: '_omcQuot_24746D705661723132_' declared here double _omcQuot_24746D705661723132_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18249:51: error: use of undeclared identifier '_omcQuot_24746D705661723134_'; did you mean '_omcQuot_24746D705661723135_'? _omcQuot_24746D705661723135_ = std::abs(_omcQuot_24746D705661723134_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723135_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18224:14: note: '_omcQuot_24746D705661723135_' declared here double _omcQuot_24746D705661723135_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19306:58: error: use of undeclared identifier '_omcQuot_24746D705661723137_'; did you mean '_omcQuot_24746D705661723138_'? Modelica_Math_Distributions_Weibull_cumulative(_omcQuot_24746D705661723137_, 0.5, 2.0,tmp9112); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723138_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19283:14: note: '_omcQuot_24746D705661723138_' declared here double _omcQuot_24746D705661723138_; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFMU.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 6 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o] Error 1