Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.662/2.662, allocations: 270 MB / 282.6 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.039e-05/5.053e-05, allocations: 4 kB / 347.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4585/0.4586, allocations: 61.87 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/0.6565, allocations: 89.84 MB / 498.8 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.6569, allocations: 55.98 kB / 498.8 MB, free: 0.7227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1136/0.7705, allocations: 25.77 MB / 0.5123 GB, free: 6.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.7705, allocations: 0 / 0.5123 GB, free: 6.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.7705, allocations: 0 / 0.5123 GB, free: 6.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.0007511/0.7713, allocations: 436 kB / 0.5127 GB, free: 6.434 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.7714, allocations: 12.03 kB / 0.5127 GB, free: 6.422 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.113e-05/0.7714, allocations: 30.56 kB / 0.5127 GB, free: 6.383 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.7714, allocations: 0 / 0.5127 GB, free: 6.383 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.7716, allocations: 167 kB / 0.5129 GB, free: 6.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.7716, allocations: 0 / 0.5129 GB, free: 6.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.7716, allocations: 3.984 kB / 0.5129 GB, free: 6.176 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.306e-05/0.7717, allocations: 37.69 kB / 0.5129 GB, free: 6.133 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.7717, allocations: 0 / 0.5129 GB, free: 6.133 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-06/0.7718, allocations: 0 / 0.5129 GB, free: 6.133 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.7718, allocations: 0 / 0.5129 GB, free: 6.133 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.194e-05/0.7718, allocations: 4 kB / 0.5129 GB, free: 6.129 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.772, allocations: 153.6 kB / 0.5131 GB, free: 5.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.8e-05/0.772, allocations: 14.58 kB / 0.5131 GB, free: 5.906 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.378e-05/0.772, allocations: 16.89 kB / 0.5131 GB, free: 5.887 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.7721, allocations: 0 / 0.5131 GB, free: 5.887 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/0.7721, allocations: 64.19 kB / 0.5132 GB, free: 5.809 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.7721, allocations: 0 / 0.5132 GB, free: 5.809 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.000176/0.7723, allocations: 63.41 kB / 0.5132 GB, free: 5.734 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.7724, allocations: 77.11 kB / 0.5133 GB, free: 5.641 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.065e-05/0.7724, allocations: 85 kB / 0.5134 GB, free: 5.551 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.7725, allocations: 25.7 kB / 0.5134 GB, free: 5.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/0.7725, allocations: 154.6 kB / 0.5136 GB, free: 5.367 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.7726, allocations: 0 / 0.5136 GB, free: 5.367 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-06/0.7726, allocations: 4 kB / 0.5136 GB, free: 5.363 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.7727, allocations: 310.8 kB / 0.5139 GB, free: 5.051 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.233e-05/0.7727, allocations: 3.984 kB / 0.5139 GB, free: 5.047 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.713e-06/0.7727, allocations: 0 / 0.5139 GB, free: 5.047 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.862e-05/0.7728, allocations: 29.7 kB / 0.5139 GB, free: 5.012 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.7728, allocations: 3.938 kB / 0.5139 GB, free: 5.008 MB / 442.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.29e-05/0.7729, allocations: 67.42 kB / 0.514 GB, free: 4.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.7729, allocations: 33.7 kB / 0.514 GB, free: 4.891 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.773, allocations: 0 / 0.514 GB, free: 4.891 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.773, allocations: 0 / 0.514 GB, free: 4.891 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.168e-06/0.773, allocations: 3.984 kB / 0.514 GB, free: 4.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.773, allocations: 0 / 0.514 GB, free: 4.887 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.649e-05/0.773, allocations: 0 / 0.514 GB, free: 4.887 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.773, allocations: 0 / 0.514 GB, free: 4.887 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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.99e-05/0.7731, allocations: 130.7 kB / 0.5141 GB, free: 4.746 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.7732, allocations: 7.984 kB / 0.5141 GB, free: 4.738 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.616e-05/0.7732, allocations: 3.125 kB / 0.5141 GB, free: 4.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.7732, allocations: 0 / 0.5141 GB, free: 4.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7732, allocations: 4 kB / 0.5141 GB, free: 4.727 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.7732, allocations: 0 / 0.5141 GB, free: 4.727 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.7734, allocations: 145.7 kB / 0.5143 GB, free: 4.535 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.7734, allocations: 0 / 0.5143 GB, free: 4.535 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-06/0.7734, allocations: 4 kB / 0.5143 GB, free: 4.531 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.7734, allocations: 0 / 0.5143 GB, free: 4.531 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.7734, allocations: 7.953 kB / 0.5143 GB, free: 4.523 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.7734, allocations: 3.984 kB / 0.5143 GB, free: 4.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.7734, allocations: 4 kB / 0.5143 GB, free: 4.516 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.7736, allocations: 90.77 kB / 0.5144 GB, free: 4.402 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.7736, allocations: 85.05 kB / 0.5145 GB, free: 4.301 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.7736, allocations: 0 / 0.5145 GB, free: 4.301 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.495e-05/0.7737, allocations: 7.891 kB / 0.5145 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.487e-05/0.7737, allocations: 0 / 0.5145 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.7737, allocations: 0 / 0.5145 GB, free: 4.293 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.057e-05/0.7738, allocations: 87.31 kB / 0.5146 GB, free: 4.207 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7738, allocations: 0 / 0.5146 GB, free: 4.207 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008103/0.7746, allocations: 163.8 kB / 0.5147 GB, free: 4.047 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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.001674/0.7763, allocations: 0.8705 MB / 0.5156 GB, free: 3.168 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000105/0.7764, allocations: 59.41 kB / 0.5156 GB, free: 3.098 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.7764, allocations: 0 / 0.5156 GB, free: 3.098 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 4.811e-05/0.7765, allocations: 55.41 kB / 0.5157 GB, free: 3.031 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001047/0.7766, allocations: 7.891 kB / 0.5157 GB, free: 3.023 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004919/0.7771, allocations: 180.1 kB / 0.5159 GB, free: 2.805 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.7774, allocations: 0.6733 MB / 0.5165 GB, free: 2.105 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.272e-05/0.7774, allocations: 15.44 kB / 0.5165 GB, free: 2.09 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7774, allocations: 0 / 0.5165 GB, free: 2.09 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_TestMatrices2bCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:244:57: error: use of undeclared identifier '_omcQuot_24746D7056617236_'; did you mean '_omcQuot_24746D7056617237_'? _omcQuot_24746D7056617237_ = std::abs(_omcQuot_24746D7056617236_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617237_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:216:22: note: '_omcQuot_24746D7056617237_' declared here double _omcQuot_24746D7056617237_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:314:63: error: use of undeclared identifier '_omcQuot_24746D7056617239_'; did you mean '_omcQuot_24746D705661723130_'? _omcQuot_24746D705661723130_ = std::abs(_omcQuot_24746D7056617239_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723130_ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:286:26: note: '_omcQuot_24746D705661723130_' declared here double _omcQuot_24746D705661723130_; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bFMU.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 2 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o] Error 1