Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.542/2.542, allocations: 270 MB / 282.6 MB, free: 1.891 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.662e-05, allocations: 0 / 347 MB, free: 3.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4235/0.4236, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5821, allocations: 88 MB / 496.9 MB, free: 2.648 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.5824, allocations: 67.97 kB / 497 MB, free: 2.582 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325/2.908, allocations: 97.16 MB / 0.5802 GB, free: 56.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.843e-06/2.908, allocations: 0 / 0.5802 GB, free: 56.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/2.908, allocations: 0 / 0.5802 GB, free: 56.91 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.005492/2.913, allocations: 432 kB / 0.5806 GB, free: 56.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/2.913, allocations: 8.031 kB / 0.5806 GB, free: 56.46 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.357e-05/2.913, allocations: 42.39 kB / 0.5807 GB, free: 56.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.902e-05/2.913, allocations: 4 kB / 0.5807 GB, free: 56.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.831e-05/2.913, allocations: 167 kB / 0.5808 GB, free: 56.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/2.913, allocations: 4 kB / 0.5809 GB, free: 56.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/2.914, allocations: 0 / 0.5809 GB, free: 56.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.405e-05/2.914, allocations: 30.59 kB / 0.5809 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/2.914, allocations: 0 / 0.5809 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/2.914, allocations: 0 / 0.5809 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/2.914, allocations: 0 / 0.5809 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.427e-05/2.914, allocations: 4 kB / 0.5809 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001942/2.914, allocations: 237.4 kB / 0.5811 GB, free: 55.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.226e-05/2.914, allocations: 26.55 kB / 0.5811 GB, free: 55.84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/2.914, allocations: 16.16 kB / 0.5812 GB, free: 55.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/2.914, allocations: 0 / 0.5812 GB, free: 55.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/2.914, allocations: 60.25 kB / 0.5812 GB, free: 55.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/2.914, allocations: 2.297 kB / 0.5812 GB, free: 55.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001773/2.914, allocations: 67.41 kB / 0.5813 GB, free: 55.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/2.914, allocations: 81.11 kB / 0.5814 GB, free: 55.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.965e-05/2.914, allocations: 85 kB / 0.5814 GB, free: 55.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/2.914, allocations: 25.7 kB / 0.5815 GB, free: 55.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.372e-05/2.914, allocations: 150.6 kB / 0.5816 GB, free: 55.31 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/2.914, allocations: 7.875 kB / 0.5816 GB, free: 55.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/2.914, allocations: 0 / 0.5816 GB, free: 55.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.523e-05/2.915, allocations: 322.8 kB / 0.5819 GB, free: 54.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.272e-05/2.915, allocations: 0 / 0.5819 GB, free: 54.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.051e-05/2.915, allocations: 8.031 kB / 0.5819 GB, free: 54.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.992e-05/2.915, allocations: 29.7 kB / 0.582 GB, free: 54.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/2.915, allocations: 0 / 0.582 GB, free: 54.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.834e-05/2.915, allocations: 71.3 kB / 0.582 GB, free: 54.85 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/2.915, allocations: 29.7 kB / 0.582 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/2.915, allocations: 0 / 0.582 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/2.915, allocations: 0 / 0.582 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-05/2.915, allocations: 0 / 0.582 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/2.915, allocations: 3.984 kB / 0.5821 GB, free: 54.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.076e-05/2.915, allocations: 8.094 kB / 0.5821 GB, free: 54.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/2.915, allocations: 0 / 0.5821 GB, free: 54.8 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 5.995e-05/2.915, allocations: 138.4 kB / 0.5822 GB, free: 54.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/2.915, allocations: 4 kB / 0.5822 GB, free: 54.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.741e-05/2.915, allocations: 3.125 kB / 0.5822 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/2.915, allocations: 0 / 0.5822 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/2.915, allocations: 7.922 kB / 0.5822 GB, free: 54.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/2.915, allocations: 0 / 0.5822 GB, free: 54.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/2.915, allocations: 301.2 kB / 0.5825 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/2.915, allocations: 0 / 0.5825 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-06/2.915, allocations: 0 / 0.5825 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/2.915, allocations: 0 / 0.5825 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/2.915, allocations: 0 / 0.5825 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/2.915, allocations: 0 / 0.5825 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/2.915, allocations: 7.625 kB / 0.5825 GB, free: 54.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001022/2.915, allocations: 169.1 kB / 0.5827 GB, free: 54.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.932e-05/2.916, allocations: 81.17 kB / 0.5827 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/2.916, allocations: 0 / 0.5827 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.049e-05/2.916, allocations: 4 kB / 0.5827 GB, free: 53.99 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/2.916, allocations: 3.984 kB / 0.5827 GB, free: 53.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/2.916, allocations: 0 / 0.5827 GB, free: 53.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 1.596e-05/2.916, allocations: 75.28 kB / 0.5828 GB, free: 53.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/2.916, allocations: 0 / 0.5828 GB, free: 53.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01278/2.928, allocations: 2.159 MB / 0.5849 GB, free: 51.77 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.02015/2.949, allocations: 2.883 MB / 0.5877 GB, free: 48.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001598/2.949, allocations: 63.44 kB / 0.5878 GB, free: 48.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/2.949, allocations: 0 / 0.5878 GB, free: 48.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 3.746e-05/2.949, allocations: 71.33 kB / 0.5879 GB, free: 48.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001621/2.949, allocations: 0 / 0.5879 GB, free: 48.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/2.954, allocations: 191.4 kB / 0.5881 GB, free: 48.53 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/2.954, allocations: 0.6692 MB / 0.5887 GB, free: 47.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.634e-05/2.955, allocations: 11.44 kB / 0.5887 GB, free: 47.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/2.955, allocations: 0 / 0.5887 GB, free: 47.82 MB / 442.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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:12050:49: error: use of undeclared identifier '_omcQuot_24746D7056617232_'; did you mean '_omcQuot_24746D7056617233_'? _omcQuot_24746D7056617233_ = std::abs(_omcQuot_24746D7056617232_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617233_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:12025:14: note: '_omcQuot_24746D7056617233_' declared here double _omcQuot_24746D7056617233_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13107:58: error: use of undeclared identifier '_omcQuot_24746D7056617235_'; did you mean '_omcQuot_24746D7056617236_'? Modelica_Math_Distributions_Uniform_cumulative(_omcQuot_24746D7056617235_, -1.0, 2.0,tmp3074); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617236_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13084:14: note: '_omcQuot_24746D7056617236_' declared here double _omcQuot_24746D7056617236_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15181:49: error: use of undeclared identifier '_omcQuot_24746D7056617238_'; did you mean '_omcQuot_24746D7056617239_'? _omcQuot_24746D7056617239_ = std::abs(_omcQuot_24746D7056617238_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617239_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15156:14: note: '_omcQuot_24746D7056617239_' declared here double _omcQuot_24746D7056617239_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16238:57: error: use of undeclared identifier '_omcQuot_24746D705661723131_'; did you mean '_omcQuot_24746D705661723132_'? Modelica_Math_Distributions_Normal_cumulative(_omcQuot_24746D705661723131_, 1.0, 0.5,tmp6096); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723132_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16215:14: note: '_omcQuot_24746D705661723132_' declared here double _omcQuot_24746D705661723132_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18312:51: error: use of undeclared identifier '_omcQuot_24746D705661723134_'; did you mean '_omcQuot_24746D705661723135_'? _omcQuot_24746D705661723135_ = std::abs(_omcQuot_24746D705661723134_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723135_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18287:14: note: '_omcQuot_24746D705661723135_' declared here double _omcQuot_24746D705661723135_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19369:58: error: use of undeclared identifier '_omcQuot_24746D705661723137_'; did you mean '_omcQuot_24746D705661723138_'? Modelica_Math_Distributions_Weibull_cumulative(_omcQuot_24746D705661723137_, 0.5, 2.0,tmp9118); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723138_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19346:14: note: '_omcQuot_24746D705661723138_' declared here double _omcQuot_24746D705661723138_; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o] Error 1