Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.703/2.703, allocations: 270 MB / 282.6 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.089e-05/4.096e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.4115, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1672/0.5788, allocations: 89.43 MB / 498.4 MB, free: 1.211 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.5791, allocations: 63.97 kB / 498.4 MB, free: 1.148 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.699/2.279, allocations: 71.9 MB / 0.5569 GB, free: 81.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.823e-06/2.279, allocations: 3.938 kB / 0.5569 GB, free: 81.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/2.279, allocations: 0 / 0.5569 GB, free: 81.32 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.00494/2.284, allocations: 458.3 kB / 0.5574 GB, free: 80.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/2.284, allocations: 12.03 kB / 0.5574 GB, free: 80.84 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/2.284, allocations: 38.5 kB / 0.5574 GB, free: 80.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/2.284, allocations: 0 / 0.5574 GB, free: 80.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.923e-05/2.284, allocations: 163.6 kB / 0.5576 GB, free: 80.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/2.284, allocations: 3.953 kB / 0.5576 GB, free: 80.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/2.284, allocations: 4 kB / 0.5576 GB, free: 80.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.238e-05/2.284, allocations: 33.69 kB / 0.5576 GB, free: 80.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/2.284, allocations: 0 / 0.5576 GB, free: 80.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/2.284, allocations: 0 / 0.5576 GB, free: 80.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/2.284, allocations: 0 / 0.5576 GB, free: 80.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.39e-05/2.284, allocations: 4 kB / 0.5576 GB, free: 80.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002037/2.284, allocations: 236.8 kB / 0.5579 GB, free: 80.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.239e-05/2.284, allocations: 26.59 kB / 0.5579 GB, free: 80.23 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.854e-05/2.284, allocations: 12.92 kB / 0.5579 GB, free: 80.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/2.284, allocations: 0 / 0.5579 GB, free: 80.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/2.284, allocations: 63.22 kB / 0.558 GB, free: 80.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.673e-06/2.284, allocations: 0 / 0.558 GB, free: 80.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001905/2.285, allocations: 63.41 kB / 0.558 GB, free: 80.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/2.285, allocations: 81.09 kB / 0.5581 GB, free: 79.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.423e-05/2.285, allocations: 89 kB / 0.5582 GB, free: 79.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.108e-06/2.285, allocations: 29.64 kB / 0.5582 GB, free: 79.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.627e-05/2.285, allocations: 150.6 kB / 0.5584 GB, free: 79.69 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/2.285, allocations: 3.906 kB / 0.5584 GB, free: 79.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/2.285, allocations: 0 / 0.5584 GB, free: 79.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.027e-05/2.285, allocations: 318.9 kB / 0.5587 GB, free: 79.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.395e-05/2.285, allocations: 0 / 0.5587 GB, free: 79.37 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.106e-05/2.285, allocations: 4 kB / 0.5587 GB, free: 79.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.295e-05/2.285, allocations: 29.7 kB / 0.5587 GB, free: 79.33 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/2.285, allocations: 3.953 kB / 0.5587 GB, free: 79.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.153e-05/2.285, allocations: 67.39 kB / 0.5588 GB, free: 79.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/2.285, allocations: 29.7 kB / 0.5588 GB, free: 79.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/2.285, allocations: 0 / 0.5588 GB, free: 79.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/2.285, allocations: 4.094 kB / 0.5588 GB, free: 79.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.817e-05/2.285, allocations: 0 / 0.5588 GB, free: 79.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/2.285, allocations: 7.5 kB / 0.5588 GB, free: 79.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.204e-05/2.285, allocations: 0 / 0.5588 GB, free: 79.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/2.285, allocations: 2.312 kB / 0.5588 GB, free: 79.2 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 6.521e-05/2.285, allocations: 134.7 kB / 0.5589 GB, free: 79.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/2.285, allocations: 7.953 kB / 0.5589 GB, free: 79.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.995e-05/2.285, allocations: 11 kB / 0.5589 GB, free: 79.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/2.285, allocations: 1.078 kB / 0.5589 GB, free: 79.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/2.285, allocations: 0 / 0.5589 GB, free: 79.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/2.285, allocations: 4 kB / 0.559 GB, free: 79.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/2.286, allocations: 296.3 kB / 0.5592 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/2.286, allocations: 0 / 0.5592 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-06/2.286, allocations: 0 / 0.5592 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/2.286, allocations: 0 / 0.5592 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/2.286, allocations: 0 / 0.5592 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/2.286, allocations: 7.984 kB / 0.5592 GB, free: 78.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/2.286, allocations: 0 / 0.5592 GB, free: 78.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/2.286, allocations: 169.2 kB / 0.5594 GB, free: 78.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.394e-05/2.286, allocations: 81.09 kB / 0.5595 GB, free: 78.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/2.286, allocations: 4 kB / 0.5595 GB, free: 78.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.281e-05/2.286, allocations: 0 / 0.5595 GB, free: 78.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-05/2.286, allocations: 3.891 kB / 0.5595 GB, free: 78.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/2.286, allocations: 3.688 kB / 0.5595 GB, free: 78.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 1.925e-05/2.286, allocations: 75.28 kB / 0.5596 GB, free: 78.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.286, allocations: 0 / 0.5596 GB, free: 78.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009969/2.296, allocations: 1.531 MB / 0.5611 GB, free: 76.8 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.01655/2.313, allocations: 2.64 MB / 0.5636 GB, free: 74.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001819/2.313, allocations: 67.39 kB / 0.5637 GB, free: 74.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/2.313, allocations: 0 / 0.5637 GB, free: 74.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 4.338e-05/2.313, allocations: 59.23 kB / 0.5638 GB, free: 74.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/2.313, allocations: 3.938 kB / 0.5638 GB, free: 74.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005378/2.319, allocations: 212.2 kB / 0.564 GB, free: 73.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/2.319, allocations: 0.6772 MB / 0.5646 GB, free: 73.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/2.319, allocations: 11.44 kB / 0.5646 GB, free: 73.06 MB / 442.7 MB Notification: Performance of SimCode: time 1.212e-06/2.319, allocations: 0 / 0.5646 GB, free: 73.06 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_TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9182: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_TestTruncatedDistributionsFunctions.cpp:9157:14: note: '_omcQuot_24746D7056617233_' declared here double _omcQuot_24746D7056617233_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10239: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_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10216:14: note: '_omcQuot_24746D7056617236_' declared here double _omcQuot_24746D7056617236_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12313: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_TestTruncatedDistributionsFunctions.cpp:12288:14: note: '_omcQuot_24746D7056617239_' declared here double _omcQuot_24746D7056617239_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13370: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_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13347:14: note: '_omcQuot_24746D705661723132_' declared here double _omcQuot_24746D705661723132_; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o] Error 1