Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001745/0.001744, allocations: 187.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3124/0.3124, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006389/0.0006391, allocations: 12 kB / 431.4 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1222, allocations: 58.86 MB / 490.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.0006277/0.1229, allocations: 224.7 kB / 490.5 MB, free: 9.031 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004112/0.127, allocations: 1.915 MB / 492.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.13e-06/0.1271, allocations: 0 / 492.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 4.909e-06/0.1271, allocations: 0 / 492.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 1.633e-06/0.1271, allocations: 0 / 492.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002259/0.1294, allocations: 439 kB / 492.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 1.462e-05/0.1294, allocations: 0 / 492.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.353e-05/0.1294, allocations: 3.938 kB / 492.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.025e-06/0.1295, allocations: 4 kB / 492.9 MB, free: 6.664 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.957e-05/0.1295, allocations: 3.984 kB / 492.9 MB, free: 6.66 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.1295, allocations: 4 kB / 492.9 MB, free: 6.656 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.1312, allocations: 0.7096 MB / 493.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.422e-06/0.1313, allocations: 0 / 493.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.1313, allocations: 25.7 kB / 493.6 MB, free: 5.914 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1325, allocations: 0.5147 MB / 494.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1325, allocations: 0 / 494.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1325, allocations: 0 / 494.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1325, allocations: 8 kB / 494.1 MB, free: 5.391 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004717/0.133, allocations: 375.4 kB / 494.5 MB, free: 4.977 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.1331, allocations: 8.031 kB / 494.5 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.641e-05/0.1331, allocations: 105.8 kB / 494.6 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.908e-05/0.1332, allocations: 79.23 kB / 494.7 MB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.1334, allocations: 234.4 kB / 494.9 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.1334, allocations: 150.6 kB / 495.1 MB, free: 4.359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/0.1335, allocations: 158.6 kB / 495.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.769e-05/0.1336, allocations: 112.9 kB / 495.3 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.549e-05/0.1337, allocations: 75.28 kB / 495.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.1337, allocations: 150.6 kB / 495.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-05/0.1338, allocations: 154.5 kB / 495.7 MB, free: 3.711 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.416e-05/0.1339, allocations: 158.5 kB / 495.9 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003173/0.1342, allocations: 445.9 kB / 496.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.1343, allocations: 173.1 kB / 496.5 MB, free: 2.891 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.1344, allocations: 75.28 kB / 496.5 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.604e-05/0.1344, allocations: 109.8 kB / 496.7 MB, free: 2.699 MB / 330.7 MB Notification: Performance of pre-optimization done (n=0): time 1.683e-06/0.1344, allocations: 0 / 496.7 MB, free: 2.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=0): time 8.334e-05/0.1345, allocations: 25.7 kB / 496.7 MB, free: 2.668 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.596e-05/0.1346, allocations: 152.4 kB / 496.8 MB, free: 2.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.521e-05/0.1347, allocations: 93.86 kB / 496.9 MB, free: 2.398 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1347, allocations: 29.7 kB / 496.9 MB, free: 2.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.487e-05/0.1348, allocations: 154.5 kB / 497.1 MB, free: 2.211 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.994e-06/0.1348, allocations: 0 / 497.1 MB, free: 2.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-07/0.1348, allocations: 0 / 497.1 MB, free: 2.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.135, allocations: 318.8 kB / 497.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.712e-06/0.135, allocations: 0 / 497.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.293e-05/0.135, allocations: 3.938 kB / 497.4 MB, free: 1.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.75e-05/0.1351, allocations: 79.28 kB / 497.5 MB, free: 1.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.019e-05/0.1351, allocations: 75.28 kB / 497.6 MB, free: 1.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.226e-05/0.1352, allocations: 25.7 kB / 497.6 MB, free: 1.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.1352, allocations: 79.28 kB / 497.7 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.119e-05/0.1353, allocations: 91.19 kB / 497.8 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.449e-05/0.1354, allocations: 150.6 kB / 497.9 MB, free: 1.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.049e-05/0.1354, allocations: 83.27 kB / 498 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.866e-05/0.1355, allocations: 158.5 kB / 498.1 MB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.195e-05/0.1356, allocations: 79.28 kB / 498.2 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.1356, allocations: 83.22 kB / 498.3 MB, free: 0.9883 MB / 330.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001515/0.1358, allocations: 268.3 kB / 498.6 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-05/0.1359, allocations: 105 kB / 498.7 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.898e-05/0.136, allocations: 108.1 kB / 498.8 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.399e-05/0.136, allocations: 184.2 kB / 498.9 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-05/0.1361, allocations: 176.3 kB / 499.1 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/0.1362, allocations: 188.2 kB / 499.3 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.1366, allocations: 401.2 kB / 499.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.544e-05/0.1366, allocations: 101 kB / 499.8 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.248e-05/0.1367, allocations: 109.2 kB / 499.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.852e-05/0.1368, allocations: 184.2 kB / 0.4884 GB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.932e-05/0.1369, allocations: 180.2 kB / 0.4885 GB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.8e-05/0.137, allocations: 184.3 kB / 0.4887 GB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-05/0.137, allocations: 180.2 kB / 0.4889 GB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.1372, allocations: 311.7 kB / 0.4892 GB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.135e-05/0.1373, allocations: 186 kB / 0.4894 GB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.395e-05/0.1374, allocations: 184.2 kB / 0.4895 GB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.71e-05/0.1375, allocations: 101 kB / 0.4896 GB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.621e-05/0.1376, allocations: 184.2 kB / 0.4898 GB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.472e-05/0.1377, allocations: 105 kB / 0.4899 GB, free: 13.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.147e-05/0.1377, allocations: 75.28 kB / 0.49 GB, free: 13.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1377, allocations: 0 / 0.49 GB, free: 13.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008007/0.1385, allocations: 140 kB / 0.4901 GB, free: 13.19 MB / 346.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001284/0.1398, allocations: 0.9697 MB / 0.4911 GB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 4.959e-05/0.1399, allocations: 0 / 0.4911 GB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1399, allocations: 0 / 0.4911 GB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.665e-06/0.1399, allocations: 0 / 0.4911 GB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.1403, allocations: 0.5302 MB / 0.4916 GB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005355/0.1408, allocations: 245.3 kB / 0.4918 GB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.1411, allocations: 0.6731 MB / 0.4925 GB, free: 10.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.705e-05/0.1412, allocations: 7.438 kB / 0.4925 GB, free: 10.67 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1412, allocations: 0 / 0.4925 GB, free: 10.67 MB / 346.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsFunctions.cpp:258:50: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar6_ = std::abs(A_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsFunctions.cpp:333:57: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar4_ = std::abs(A_(i_,_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsFunctions.cpp:967:49: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar10_ = std::abs(v_(_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsFunctions.cpp:1015:50: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar8_ = std::abs(v_(_omcQ_24i1_)); ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsFMU.cpp:11: /var/lib/jenkins1/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_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquationsCalcHelperMain.o] Error 1