Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b",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.002426/0.002426, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.156/2.156, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001089/0.001088, allocations: 90.7 kB / 267.5 MB, free: 14.04 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.2942/0.2942, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.653e-05/4.666e-05, allocations: 11.98 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5034/0.6315, allocations: 88.6 MB / 0.5594 GB, free: 14.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.6318, allocations: 61.81 kB / 0.5594 GB, free: 14.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1225/0.7543, allocations: 25.7 MB / 0.5845 GB, free: 8.738 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7544, allocations: 0 / 0.5845 GB, free: 8.738 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.7544, allocations: 0 / 0.5845 GB, free: 8.738 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.0008531/0.7552, allocations: 447.2 kB / 0.585 GB, free: 8.254 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.7553, allocations: 11.97 kB / 0.585 GB, free: 8.242 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.853e-05/0.7554, allocations: 30.56 kB / 0.585 GB, free: 8.203 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/0.7554, allocations: 7.938 kB / 0.585 GB, free: 8.195 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.7555, allocations: 159.1 kB / 0.5852 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.7556, allocations: 4 kB / 0.5852 GB, free: 7.996 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.7556, allocations: 0 / 0.5852 GB, free: 7.996 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.569e-05/0.7557, allocations: 25.7 kB / 0.5852 GB, free: 7.965 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.7557, allocations: 4 kB / 0.5852 GB, free: 7.961 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.7557, allocations: 4 kB / 0.5852 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.7557, allocations: 0 / 0.5852 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.246e-05/0.7558, allocations: 3.984 kB / 0.5852 GB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.7559, allocations: 149.6 kB / 0.5854 GB, free: 7.762 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.006e-05/0.756, allocations: 22.55 kB / 0.5854 GB, free: 7.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.808e-05/0.756, allocations: 4.859 kB / 0.5854 GB, free: 7.723 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.757e-06/0.7561, allocations: 0 / 0.5854 GB, free: 7.723 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.254e-05/0.7561, allocations: 68.33 kB / 0.5854 GB, free: 7.641 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.623e-06/0.7561, allocations: 0 / 0.5854 GB, free: 7.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001832/0.7563, allocations: 63.2 kB / 0.5855 GB, free: 7.57 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.7564, allocations: 81.05 kB / 0.5856 GB, free: 7.473 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.678e-05/0.7565, allocations: 89 kB / 0.5857 GB, free: 7.379 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.7565, allocations: 25.7 kB / 0.5857 GB, free: 7.348 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.7566, allocations: 150.6 kB / 0.5858 GB, free: 7.199 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.7566, allocations: 0 / 0.5858 GB, free: 7.199 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.7566, allocations: 4.031 kB / 0.5858 GB, free: 7.195 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.7568, allocations: 314.8 kB / 0.5861 GB, free: 6.879 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.7568, allocations: 3.938 kB / 0.5861 GB, free: 6.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.024e-05/0.7568, allocations: 4 kB / 0.5861 GB, free: 6.871 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.892e-05/0.7569, allocations: 25.7 kB / 0.5862 GB, free: 6.84 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.7569, allocations: 0 / 0.5862 GB, free: 6.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.638e-05/0.757, allocations: 66.2 kB / 0.5862 GB, free: 6.766 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.394e-05/0.7571, allocations: 29.7 kB / 0.5863 GB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.7571, allocations: 4.094 kB / 0.5863 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.7571, allocations: 0 / 0.5863 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.7571, allocations: 4 kB / 0.5863 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.7571, allocations: 0.625 kB / 0.5863 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.107e-05/0.7572, allocations: 3.938 kB / 0.5863 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.7572, allocations: 0 / 0.5863 GB, free: 6.719 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.0001031/0.7573, allocations: 142.6 kB / 0.5864 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.7573, allocations: 0 / 0.5864 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.711e-05/0.7573, allocations: 6.625 kB / 0.5864 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.7574, allocations: 4 kB / 0.5864 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.7574, allocations: 0 / 0.5864 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.7574, allocations: 0 / 0.5864 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.7575, allocations: 153.6 kB / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7575, allocations: 0 / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.333e-06/0.7575, allocations: 0 / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.7576, allocations: 0 / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.7576, allocations: 0 / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.7576, allocations: 0 / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.7576, allocations: 0 / 0.5866 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.7577, allocations: 98.59 kB / 0.5867 GB, free: 6.238 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.7578, allocations: 77.73 kB / 0.5867 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.7578, allocations: 0 / 0.5867 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.245e-05/0.7578, allocations: 4 kB / 0.5867 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.145e-05/0.7579, allocations: 0 / 0.5867 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.7579, allocations: 3.938 kB / 0.5867 GB, free: 6.137 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.7579, allocations: 78.44 kB / 0.5868 GB, free: 6.062 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7579, allocations: 0 / 0.5868 GB, free: 6.062 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009458/0.7589, allocations: 159.1 kB / 0.587 GB, free: 5.91 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) * 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.001832/0.7607, allocations: 0.8789 MB / 0.5878 GB, free: 5.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001403/0.7609, allocations: 70.89 kB / 0.5879 GB, free: 4.941 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.7609, allocations: 4.062 kB / 0.5879 GB, free: 4.938 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.261e-05/0.761, allocations: 55.41 kB / 0.588 GB, free: 4.871 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001014/0.7611, allocations: 0 / 0.588 GB, free: 4.871 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005838/0.7617, allocations: 160.2 kB / 0.5881 GB, free: 4.672 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.762, allocations: 0.677 MB / 0.5888 GB, free: 3.969 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.122e-05/0.7621, allocations: 11.44 kB / 0.5888 GB, free: 3.957 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7621, allocations: 0 / 0.5888 GB, free: 3.957 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/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_TestMatrices2bCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:226:43: error: use of undeclared identifier 'D_24tmpVar8_'; did you mean 'D_24tmpVar9_'? D_24tmpVar9_ = std::abs(D_24tmpVar8_); ^~~~~~~~~~~~ D_24tmpVar9_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:198:22: note: 'D_24tmpVar9_' declared here double D_24tmpVar9_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:296:48: error: use of undeclared identifier 'D_24tmpVar11_'; did you mean 'D_24tmpVar12_'? D_24tmpVar12_ = std::abs(D_24tmpVar11_); ^~~~~~~~~~~~~ D_24tmpVar12_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:268:26: note: 'D_24tmpVar12_' declared here double D_24tmpVar12_; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFMU.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 2 errors generated. : recipe for target 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o] Error 1