Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000462/0.0004622, allocations: 12 kB / 314.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3387, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0006465/0.3394, allocations: 224.4 kB / 369.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.342, allocations: 1.471 MB / 371 MB, free: 9.016 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.777e-05/0.342, allocations: 0 / 371 MB, free: 9.016 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.37e-05/0.3421, allocations: 0 / 371 MB, free: 9.016 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.149e-06/0.3421, allocations: 0 / 371 MB, free: 9.016 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009308/0.343, allocations: 195.5 kB / 371.1 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.536e-05/0.3431, allocations: 0 / 371.1 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.296e-05/0.3431, allocations: 7.984 kB / 371.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.508e-05/0.3431, allocations: 0 / 371.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.607e-05/0.3432, allocations: 0 / 371.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.3432, allocations: 0 / 371.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.3445, allocations: 0.6558 MB / 371.8 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-06/0.3445, allocations: 0 / 371.8 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.175e-05/0.3445, allocations: 25.7 kB / 371.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006813/0.3452, allocations: 459.3 kB / 372.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.3452, allocations: 0 / 372.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3453, allocations: 0 / 372.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.3453, allocations: 0 / 372.3 MB, free: 7.68 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.0004741/0.3457, allocations: 357.1 kB / 372.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3458, allocations: 8.031 kB / 372.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.186e-05/0.3459, allocations: 42.55 kB / 372.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.426e-05/0.3459, allocations: 3.906 kB / 372.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.951e-05/0.346, allocations: 159.1 kB / 372.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.346, allocations: 4 kB / 372.8 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.346, allocations: 0 / 372.8 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.917e-05/0.3461, allocations: 41.58 kB / 372.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.3462, allocations: 0 / 372.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.3462, allocations: 3.938 kB / 372.9 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3462, allocations: 0 / 372.9 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.796e-05/0.3462, allocations: 0 / 372.9 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.3464, allocations: 145.7 kB / 373 MB, free: 6.773 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.9e-05/0.3464, allocations: 26.58 kB / 373.1 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.3464, allocations: 0 / 373.1 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.3465, allocations: 68.3 kB / 373.1 MB, free: 6.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.156e-06/0.3465, allocations: 0 / 373.1 MB, free: 6.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001711/0.3467, allocations: 67.28 kB / 373.2 MB, free: 6.578 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.3468, allocations: 81.11 kB / 373.3 MB, free: 6.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.582e-05/0.3468, allocations: 89.86 kB / 373.4 MB, free: 6.383 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3468, allocations: 29.7 kB / 373.4 MB, free: 6.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/0.3469, allocations: 154.7 kB / 373.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.3469, allocations: 3.984 kB / 373.5 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.3469, allocations: 0 / 373.5 MB, free: 6.191 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3471, allocations: 314.8 kB / 373.8 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.263e-05/0.3471, allocations: 4 kB / 373.9 MB, free: 5.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-06/0.3471, allocations: 0 / 373.9 MB, free: 5.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.377e-05/0.3472, allocations: 25.7 kB / 373.9 MB, free: 5.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3472, allocations: 3.938 kB / 373.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.23e-05/0.3473, allocations: 63.47 kB / 373.9 MB, free: 5.762 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.3473, allocations: 33.7 kB / 374 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3473, allocations: 3.984 kB / 374 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3474, allocations: 4 kB / 374 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.3474, allocations: 0 / 374 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.3474, allocations: 3.953 kB / 374 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.889e-05/0.3474, allocations: 0 / 374 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.3474, allocations: 0 / 374 MB, free: 5.711 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 0.0001003/0.3475, allocations: 135.5 kB / 374.1 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.3476, allocations: 4.031 kB / 374.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.766e-06/0.3476, allocations: 3.125 kB / 374.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3476, allocations: 0 / 374.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3476, allocations: 0 / 374.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3476, allocations: 3.953 kB / 374.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.3477, allocations: 149.7 kB / 374.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3477, allocations: 0 / 374.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.3477, allocations: 0 / 374.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3478, allocations: 0 / 374.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.3478, allocations: 0 / 374.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3478, allocations: 0 / 374.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.3478, allocations: 11.94 kB / 374.3 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.3479, allocations: 90.78 kB / 374.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.578e-05/0.348, allocations: 81.05 kB / 374.5 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.348, allocations: 4 kB / 374.5 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.348, allocations: 3.938 kB / 374.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.739e-05/0.348, allocations: 4 kB / 374.5 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.3481, allocations: 3.984 kB / 374.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.156e-05/0.3481, allocations: 79.31 kB / 374.5 MB, free: 5.043 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3481, allocations: 0 / 374.5 MB, free: 5.043 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005565/0.3487, allocations: 116 kB / 374.7 MB, free: 4.93 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.001285/0.35, allocations: 0.7134 MB / 375.4 MB, free: 4.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.781e-05/0.3501, allocations: 59.39 kB / 375.4 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3501, allocations: 0 / 375.4 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.281e-05/0.3502, allocations: 55.41 kB / 375.5 MB, free: 4.055 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.434e-05/0.3503, allocations: 8.125 kB / 375.5 MB, free: 4.047 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.3507, allocations: 147.1 kB / 375.6 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.351, allocations: 0.6809 MB / 376.3 MB, free: 3.152 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.786e-05/0.351, allocations: 7.438 kB / 376.3 MB, free: 3.145 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.351, allocations: 7.875 kB / 376.3 MB, free: 3.137 MB / 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_TestMatrices3CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3CalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3Functions.cpp:123:50: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar2_ = std::abs(A_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3Functions.cpp:198:57: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar0_ = std::abs(A_(i_,_omcQ_24i1_)); ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3FMU.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_TestMatrices3CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices3CalcHelperMain.o] Error 1