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.392/2.392, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005966/0.0005968, allocations: 12 kB / 314.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3412, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0006813/0.342, allocations: 220.4 kB / 369.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003926/0.3459, allocations: 1.982 MB / 371.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.061e-05/0.346, allocations: 0 / 371.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.346, allocations: 4 kB / 371.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.346, allocations: 4 kB / 371.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002763/0.3488, allocations: 0.6158 MB / 372.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.141e-05/0.3488, allocations: 0 / 372.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.98e-05/0.3489, allocations: 0 / 372.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.552e-05/0.349, allocations: 3.938 kB / 372.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.538e-05/0.349, allocations: 0 / 372.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.349, allocations: 0 / 372.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002769/0.3518, allocations: 1.291 MB / 373.4 MB, free: 6.566 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.3518, allocations: 3.984 kB / 373.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.624e-05/0.3519, allocations: 29.7 kB / 373.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.3537, allocations: 1.166 MB / 374.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3537, allocations: 0 / 374.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3538, allocations: 0 / 374.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.3538, allocations: 0 / 374.6 MB, free: 5.359 MB / 298.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.0007296/0.3545, allocations: 409.1 kB / 375 MB, free: 4.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.3546, allocations: 12.03 kB / 375 MB, free: 4.895 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.3546, allocations: 34.56 kB / 375 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.3547, allocations: 0 / 375 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.3548, allocations: 159.1 kB / 375.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.3548, allocations: 0 / 375.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.3548, allocations: 4 kB / 375.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.396e-05/0.3549, allocations: 29.66 kB / 375.2 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3549, allocations: 0 / 375.2 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-06/0.355, allocations: 0 / 375.2 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.355, allocations: 0 / 375.2 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.719e-05/0.355, allocations: 11.92 kB / 375.2 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.3552, allocations: 149.7 kB / 375.4 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.301e-05/0.3552, allocations: 14.58 kB / 375.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.3552, allocations: 4.094 kB / 375.4 MB, free: 4.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.655e-05/0.3553, allocations: 60.2 kB / 375.5 MB, free: 4.309 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.607e-06/0.3553, allocations: 3.984 kB / 375.5 MB, free: 4.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001866/0.3555, allocations: 75.28 kB / 375.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.3556, allocations: 81.23 kB / 375.6 MB, free: 4.121 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.606e-05/0.3556, allocations: 89.86 kB / 375.7 MB, free: 4.023 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.3557, allocations: 25.7 kB / 375.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.3557, allocations: 150.6 kB / 375.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.3557, allocations: 0 / 375.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/0.3558, allocations: 4 kB / 375.9 MB, free: 3.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3559, allocations: 310.8 kB / 376.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.3559, allocations: 0 / 376.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-06/0.3559, allocations: 0 / 376.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.637e-05/0.356, allocations: 41.75 kB / 376.2 MB, free: 3.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.356, allocations: 0 / 376.2 MB, free: 3.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.676e-05/0.3561, allocations: 55.41 kB / 376.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.3561, allocations: 33.7 kB / 376.3 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3561, allocations: 3.938 kB / 376.3 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3562, allocations: 3.938 kB / 376.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.887e-06/0.3562, allocations: 3.953 kB / 376.3 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.3562, allocations: 3.984 kB / 376.3 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.3562, allocations: 4 kB / 376.3 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.3562, allocations: 8.031 kB / 376.3 MB, free: 3.348 MB / 298.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 () * Number of clocked 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 9.766e-05/0.3564, allocations: 131.5 kB / 376.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-06/0.3564, allocations: 0 / 376.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-06/0.3564, allocations: 3.125 kB / 376.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3564, allocations: 4 kB / 376.5 MB, free: 3.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3564, allocations: 3.953 kB / 376.5 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3564, allocations: 0 / 376.5 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.3565, allocations: 149.7 kB / 376.6 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3566, allocations: 0 / 376.6 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.3566, allocations: 4 kB / 376.6 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3566, allocations: 0 / 376.6 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.3566, allocations: 4 kB / 376.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3566, allocations: 0 / 376.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3566, allocations: 0 / 376.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001205/0.3567, allocations: 98.72 kB / 376.7 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.203e-05/0.3568, allocations: 81.05 kB / 376.8 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.3568, allocations: 0 / 376.8 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.157e-05/0.3568, allocations: 4.031 kB / 376.8 MB, free: 2.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.3569, allocations: 0 / 376.8 MB, free: 2.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3569, allocations: 4 kB / 376.8 MB, free: 2.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.3569, allocations: 75.28 kB / 376.9 MB, free: 2.691 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3569, allocations: 0 / 376.9 MB, free: 2.691 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001406/0.3583, allocations: 275.9 kB / 377.2 MB, free: 2.422 MB / 298.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) * Number of clocked states: 0 () * 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.002282/0.3606, allocations: 0.931 MB / 378.1 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001291/0.3608, allocations: 63.33 kB / 378.1 MB, free: 1.402 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3608, allocations: 4 kB / 378.2 MB, free: 1.398 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.126e-05/0.3609, allocations: 51.41 kB / 378.2 MB, free: 1.336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.361, allocations: 4 kB / 378.2 MB, free: 1.332 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006998/0.3617, allocations: 194 kB / 378.4 MB, free: 1.098 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.362, allocations: 0.677 MB / 379.1 MB, free: 404 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.833e-05/0.362, allocations: 19.5 kB / 379.1 MB, free: 384 kB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.362, allocations: 0 / 379.1 MB, free: 384 kB / 298.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=5 -DSUNDIALS_MINOR_VERSION=4 -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:181:49: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar12_ = std::abs(B_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:227:52: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar14_ = std::abs(B_(i_,_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:456:49: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar4_ = std::abs(As_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:498:49: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar6_ = std::abs(Cs_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:544:52: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar8_ = std::abs(As_(i_,_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:586:53: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar10_ = std::abs(Bs_(i_,_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:835:50: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar2_ = std::abs(A_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:910:57: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar0_ = std::abs(A_(i_,_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:1452:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp151; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:1465:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp170; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:1576:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp293; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:1685:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp412; ^ 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 12 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