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.485/2.485, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004552/0.0004551, allocations: 16 kB / 314.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3612, allocations: 54.86 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.5173, allocations: 83.79 MB / 453.1 MB, free: 6.828 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/0.5177, allocations: 63.97 kB / 453.2 MB, free: 6.766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4363/0.954, allocations: 25.7 MB / 478.9 MB, free: 98.74 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.954, allocations: 1.219 kB / 478.9 MB, free: 98.74 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.433e-06/0.9541, allocations: 0 / 478.9 MB, free: 98.74 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.0007791/0.9549, allocations: 449.7 kB / 479.3 MB, free: 98.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.9549, allocations: 9.156 kB / 479.3 MB, free: 98.33 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.715e-05/0.955, allocations: 30.56 kB / 479.4 MB, free: 98.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.821e-05/0.955, allocations: 1.125 kB / 479.4 MB, free: 98.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.174e-05/0.9551, allocations: 161.6 kB / 479.5 MB, free: 98.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.9551, allocations: 1.188 kB / 479.5 MB, free: 98.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.9551, allocations: 0 / 479.5 MB, free: 98.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.007e-05/0.9552, allocations: 32.95 kB / 479.6 MB, free: 98.06 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.9552, allocations: 4.594 kB / 479.6 MB, free: 98.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.9553, allocations: 3.953 kB / 479.6 MB, free: 98.06 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.9553, allocations: 3.75 kB / 479.6 MB, free: 98.06 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.101e-05/0.9553, allocations: 1.891 kB / 479.6 MB, free: 98.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001154/0.9554, allocations: 148.9 kB / 479.7 MB, free: 97.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.221e-05/0.9555, allocations: 15.58 kB / 479.7 MB, free: 97.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.9555, allocations: 1.031 kB / 479.7 MB, free: 97.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.9556, allocations: 65.03 kB / 479.8 MB, free: 97.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.9556, allocations: 3.281 kB / 479.8 MB, free: 97.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001823/0.9558, allocations: 63.95 kB / 479.9 MB, free: 97.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.9558, allocations: 82.03 kB / 479.9 MB, free: 97.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.335e-05/0.9558, allocations: 87.36 kB / 480 MB, free: 97.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.9559, allocations: 25.7 kB / 480.1 MB, free: 97.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.628e-05/0.9559, allocations: 154.5 kB / 480.2 MB, free: 97.35 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.9559, allocations: 4.875 kB / 480.2 MB, free: 97.35 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.9559, allocations: 0 / 480.2 MB, free: 97.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/0.956, allocations: 312 kB / 480.5 MB, free: 97.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.151e-05/0.956, allocations: 1 kB / 480.5 MB, free: 97.04 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-06/0.956, allocations: 5.469 kB / 480.5 MB, free: 97.04 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.138e-05/0.9561, allocations: 27.67 kB / 480.6 MB, free: 97 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.9561, allocations: 0 / 480.6 MB, free: 97 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.32e-05/0.9562, allocations: 63.09 kB / 480.6 MB, free: 96.94 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.9562, allocations: 32.11 kB / 480.6 MB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.9562, allocations: 2.062 kB / 480.6 MB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.9563, allocations: 0 / 480.6 MB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.9563, allocations: 0 / 480.6 MB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.9563, allocations: 2.672 kB / 480.7 MB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.162e-05/0.9563, allocations: 3.953 kB / 480.7 MB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.9563, allocations: 0 / 480.7 MB, free: 96.91 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 () * 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 7.796e-05/0.9564, allocations: 142.9 kB / 480.8 MB, free: 96.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.9564, allocations: 4.938 kB / 480.8 MB, free: 96.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.464e-05/0.9565, allocations: 4.438 kB / 480.8 MB, free: 96.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.9565, allocations: 1.312 kB / 480.8 MB, free: 96.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.9565, allocations: 1.594 kB / 480.8 MB, free: 96.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.9565, allocations: 0 / 480.8 MB, free: 96.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.671e-05/0.9566, allocations: 153.1 kB / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.9566, allocations: 1.156 kB / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.9566, allocations: 0.75 kB / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.9566, allocations: 0 / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.9566, allocations: 2.172 kB / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.9567, allocations: 7.672 kB / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.9567, allocations: 1.25 kB / 481 MB, free: 96.56 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.9568, allocations: 93.84 kB / 481.1 MB, free: 96.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.522e-05/0.9568, allocations: 78.86 kB / 481.1 MB, free: 96.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.9569, allocations: 2.125 kB / 481.1 MB, free: 96.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.9569, allocations: 0 / 481.1 MB, free: 96.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.023e-05/0.9569, allocations: 9.219 kB / 481.1 MB, free: 96.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.9569, allocations: 1.375 kB / 481.2 MB, free: 96.37 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.751e-05/0.9569, allocations: 75.28 kB / 481.2 MB, free: 96.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9569, allocations: 0 / 481.2 MB, free: 96.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009391/0.9579, allocations: 158.3 kB / 481.4 MB, free: 96.27 MB / 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) * 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.001794/0.9597, allocations: 0.8804 MB / 482.3 MB, free: 95.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.9599, allocations: 61.12 kB / 482.3 MB, free: 95.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.9599, allocations: 0 / 482.3 MB, free: 95.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.26e-05/0.9599, allocations: 62.42 kB / 482.4 MB, free: 95.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001087/0.9601, allocations: 1.281 kB / 482.4 MB, free: 95.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007245/0.9608, allocations: 199.2 kB / 482.6 MB, free: 95.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.961, allocations: 0.674 MB / 483.2 MB, free: 94.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.197e-05/0.961, allocations: 9.203 kB / 483.3 MB, free: 94.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.961, allocations: 1.125 kB / 483.3 MB, free: 94.6 MB / 394.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:47: error: use of undeclared identifier '_omcQ_24tmpVar6_'; did you mean '_omcQ_24tmpVar7_'? _omcQ_24tmpVar7_ = std::abs(_omcQ_24tmpVar6_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar7_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:198:22: note: '_omcQ_24tmpVar7_' declared here double _omcQ_24tmpVar7_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:296:52: error: use of undeclared identifier '_omcQ_24tmpVar9_'; did you mean '_omcQ_24tmpVar10_'? _omcQ_24tmpVar10_ = std::abs(_omcQ_24tmpVar9_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar10_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:268:26: note: '_omcQ_24tmpVar10_' declared here double _omcQ_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