Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.872e-05/4.879e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3973, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1566/0.5539, allocations: 83.69 MB / 448.3 MB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.5543, allocations: 64.75 kB / 448.4 MB, free: 12.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1149/0.6692, allocations: 25.69 MB / 474.1 MB, free: 3.051 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6693, allocations: 0 / 474.1 MB, free: 3.051 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.6693, allocations: 0 / 474.1 MB, free: 3.051 MB / 394.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.0008624/0.6702, allocations: 443.9 kB / 474.5 MB, free: 2.566 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.6702, allocations: 12.03 kB / 474.5 MB, free: 2.555 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.883e-05/0.6703, allocations: 30.56 kB / 474.5 MB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.681e-05/0.6703, allocations: 0 / 474.5 MB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.6704, allocations: 159.1 kB / 474.7 MB, free: 2.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.6705, allocations: 4 kB / 474.7 MB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.6705, allocations: 0 / 474.7 MB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.6706, allocations: 29.7 kB / 474.7 MB, free: 2.281 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.6706, allocations: 0 / 474.7 MB, free: 2.281 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.6706, allocations: 10.2 kB / 474.7 MB, free: 2.273 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.6707, allocations: 0 / 474.7 MB, free: 2.273 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.229e-05/0.6707, allocations: 4 kB / 474.7 MB, free: 2.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.6709, allocations: 149.7 kB / 474.9 MB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.312e-05/0.6709, allocations: 22.52 kB / 474.9 MB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.671, allocations: 8.953 kB / 474.9 MB, free: 2.031 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.671, allocations: 0 / 474.9 MB, free: 2.031 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.589e-05/0.671, allocations: 60.27 kB / 475 MB, free: 1.957 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.6711, allocations: 0 / 475 MB, free: 1.957 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001847/0.6712, allocations: 67.34 kB / 475 MB, free: 1.879 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.6713, allocations: 81.05 kB / 475.1 MB, free: 1.781 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.109e-05/0.6714, allocations: 89.03 kB / 475.2 MB, free: 1.688 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.6714, allocations: 25.7 kB / 475.2 MB, free: 1.656 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.6715, allocations: 150.6 kB / 475.4 MB, free: 1.508 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.6715, allocations: 3.984 kB / 475.4 MB, free: 1.504 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.6715, allocations: 4 kB / 475.4 MB, free: 1.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.6717, allocations: 310.8 kB / 475.7 MB, free: 1.188 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.6717, allocations: 0 / 475.7 MB, free: 1.188 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.193e-05/0.6717, allocations: 4 kB / 475.7 MB, free: 1.184 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.024e-05/0.6718, allocations: 33.77 kB / 475.7 MB, free: 1.145 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6718, allocations: 0 / 475.7 MB, free: 1.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001015/0.6719, allocations: 59.39 kB / 475.8 MB, free: 1.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.672, allocations: 33.7 kB / 475.8 MB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.672, allocations: 0 / 475.8 MB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.667e-05/0.6721, allocations: 0.6562 kB / 475.8 MB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-06/0.6721, allocations: 3.938 kB / 475.8 MB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.6721, allocations: 0 / 475.8 MB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.5e-05/0.6721, allocations: 3.953 kB / 475.8 MB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.6721, allocations: 7.938 kB / 475.8 MB, free: 1.02 MB / 394.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 0.0001132/0.6723, allocations: 134.7 kB / 476 MB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.6723, allocations: 0 / 476 MB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.753e-05/0.6723, allocations: 7.062 kB / 476 MB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.423e-06/0.6723, allocations: 7.984 kB / 476 MB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.6723, allocations: 0 / 476 MB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.6724, allocations: 0 / 476 MB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.6725, allocations: 149.6 kB / 476.1 MB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.6725, allocations: 3.984 kB / 476.1 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-06/0.6725, allocations: 0 / 476.1 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.6725, allocations: 0 / 476.1 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.6726, allocations: 8 kB / 476.1 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.6726, allocations: 0 / 476.1 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.6726, allocations: 0 / 476.1 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.6727, allocations: 90.8 kB / 476.2 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.6728, allocations: 81.09 kB / 476.3 MB, free: 452 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.6728, allocations: 0 / 476.3 MB, free: 452 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.6728, allocations: 0 / 476.3 MB, free: 452 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.6729, allocations: 7.969 kB / 476.3 MB, free: 444 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.6729, allocations: 4 kB / 476.3 MB, free: 440 kB / 394.7 MB Notification: Performance of sorting global known variables: time 4.219e-05/0.6729, allocations: 78.52 kB / 476.4 MB, free: 364 kB / 394.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6729, allocations: 0 / 476.4 MB, free: 364 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009071/0.6738, allocations: 155.9 kB / 476.5 MB, free: 208 kB / 394.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.001989/0.6759, allocations: 0.8762 MB / 477.4 MB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001758/0.6761, allocations: 71.33 kB / 477.5 MB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.6761, allocations: 0 / 477.5 MB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.394e-05/0.6761, allocations: 55.41 kB / 477.5 MB, free: 15.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001039/0.6763, allocations: 0 / 477.5 MB, free: 15.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006493/0.6769, allocations: 160.2 kB / 477.7 MB, free: 14.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.6773, allocations: 0.6772 MB / 478.4 MB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.447e-05/0.6773, allocations: 11.44 kB / 478.4 MB, free: 14.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6773, allocations: 0 / 478.4 MB, free: 14.25 MB / 410.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_TestMatrices2bCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:226:43: error: use of undeclared identifier 'D_24tmpVar6_'; did you mean 'D_24tmpVar7_'? D_24tmpVar7_ = std::abs(D_24tmpVar6_); ^~~~~~~~~~~~ D_24tmpVar7_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:198:22: note: 'D_24tmpVar7_' declared here double D_24tmpVar7_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:296:48: error: use of undeclared identifier 'D_24tmpVar9_'; did you mean 'D_24tmpVar10_'? D_24tmpVar10_ = std::abs(D_24tmpVar9_); ^~~~~~~~~~~~ D_24tmpVar10_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:268:26: note: 'D_24tmpVar10_' declared here double D_24tmpVar10_; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o] Error 1