Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2",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.001064/0.001063, allocations: 175.3 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0008811/0.0008811, allocations: 95.89 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2949/0.2949, allocations: 43.56 MB / 363.1 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003717, allocations: 15.98 kB / 432.1 MB, free: 5.742 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09312/0.09351, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0005594/0.09412, allocations: 232.3 kB / 491.1 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006109/0.1003, allocations: 4.802 MB / 495.9 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.657e-05/0.1003, allocations: 0 / 495.9 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.786e-06/0.1003, allocations: 0 / 495.9 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.102e-06/0.1003, allocations: 0 / 495.9 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00602/0.1064, allocations: 2.602 MB / 498.5 MB, free: 3.148 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.92e-05/0.1064, allocations: 0 / 498.5 MB, free: 3.148 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.861e-05/0.1064, allocations: 4 kB / 498.6 MB, free: 3.145 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.413e-05/0.1065, allocations: 0 / 498.6 MB, free: 3.145 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.746e-05/0.1065, allocations: 3.984 kB / 498.6 MB, free: 3.141 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.849e-06/0.1065, allocations: 4 kB / 498.6 MB, free: 3.137 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1954/0.3019, allocations: 19.82 MB / 0.5062 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.302, allocations: 0 / 0.5062 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.302, allocations: 26.41 kB / 0.5063 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02948/0.3315, allocations: 20.49 MB / 0.5263 GB, free: 34.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3316, allocations: 0 / 0.5263 GB, free: 34.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3316, allocations: 0 / 0.5263 GB, free: 34.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3316, allocations: 1.719 kB / 0.5263 GB, free: 34.91 MB / 378.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.01341/0.345, allocations: 0.6612 MB / 0.5269 GB, free: 34.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.3451, allocations: 10 kB / 0.5269 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.445e-05/0.3451, allocations: 37.2 kB / 0.527 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.611e-05/0.3451, allocations: 6.531 kB / 0.527 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.124e-05/0.3452, allocations: 163 kB / 0.5271 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.3452, allocations: 1.25 kB / 0.5271 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.3452, allocations: 0.75 kB / 0.5271 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.753e-05/0.3453, allocations: 33.64 kB / 0.5271 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.3453, allocations: 0 / 0.5271 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.3453, allocations: 0 / 0.5271 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.3453, allocations: 1.156 kB / 0.5272 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.529e-05/0.3454, allocations: 1.094 kB / 0.5272 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.811e-05/0.3455, allocations: 152.4 kB / 0.5273 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.131e-05/0.3455, allocations: 25.2 kB / 0.5273 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.18e-05/0.3455, allocations: 8.734 kB / 0.5273 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-06/0.3455, allocations: 1.031 kB / 0.5273 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.3456, allocations: 57.42 kB / 0.5274 GB, free: 33.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.665e-06/0.3456, allocations: 0.7031 kB / 0.5274 GB, free: 33.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001456/0.3457, allocations: 70.55 kB / 0.5275 GB, free: 33.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.3458, allocations: 78.2 kB / 0.5275 GB, free: 33.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.072e-05/0.3458, allocations: 91.7 kB / 0.5276 GB, free: 33.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.802e-06/0.3458, allocations: 25.7 kB / 0.5276 GB, free: 33.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.069e-05/0.3458, allocations: 81.3 kB / 0.5277 GB, free: 33.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.3459, allocations: 0 / 0.5277 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.3459, allocations: 1.125 kB / 0.5277 GB, free: 33.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.481e-05/0.3459, allocations: 319.4 kB / 0.528 GB, free: 33.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.3459, allocations: 1.094 kB / 0.528 GB, free: 33.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.191e-06/0.346, allocations: 5.344 kB / 0.528 GB, free: 33.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.351e-05/0.346, allocations: 63.56 kB / 0.5281 GB, free: 32.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.346, allocations: 3.938 kB / 0.5281 GB, free: 32.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.15e-05/0.3461, allocations: 64.53 kB / 0.5282 GB, free: 32.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.3461, allocations: 31.14 kB / 0.5282 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3461, allocations: 0 / 0.5282 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3461, allocations: 1.438 kB / 0.5282 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3461, allocations: 0 / 0.5282 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.3462, allocations: 4.078 kB / 0.5282 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.3462, allocations: 5.375 kB / 0.5282 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-06/0.3462, allocations: 0 / 0.5282 GB, free: 32.87 MB / 378.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 5.365e-05/0.3462, allocations: 139.4 kB / 0.5283 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.474e-06/0.3463, allocations: 1.344 kB / 0.5283 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.938e-06/0.3463, allocations: 3.641 kB / 0.5283 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.3463, allocations: 0 / 0.5283 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3463, allocations: 1.25 kB / 0.5283 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.3463, allocations: 0 / 0.5283 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.083e-05/0.3463, allocations: 154 kB / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3464, allocations: 6.062 kB / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.3464, allocations: 0 / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3464, allocations: 1.078 kB / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.3464, allocations: 1.344 kB / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3464, allocations: 0.5625 kB / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3464, allocations: 3.469 kB / 0.5285 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.747e-05/0.3465, allocations: 95.2 kB / 0.5286 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.307e-05/0.3465, allocations: 81.14 kB / 0.5287 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.3465, allocations: 5.031 kB / 0.5287 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.3465, allocations: 4 kB / 0.5287 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.3465, allocations: 1.031 kB / 0.5287 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.3466, allocations: 1.094 kB / 0.5287 GB, free: 32.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.279e-05/0.3466, allocations: 78.09 kB / 0.5287 GB, free: 32.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3466, allocations: 0 / 0.5287 GB, free: 32.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01628/0.3629, allocations: 3.822 MB / 0.5325 GB, free: 28.64 MB / 378.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.03455/0.3974, allocations: 1.534 MB / 0.534 GB, free: 27.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.3976, allocations: 55.41 kB / 0.534 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3976, allocations: 0 / 0.534 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.761e-05/0.3976, allocations: 61.92 kB / 0.5341 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.3978, allocations: 4 kB / 0.5341 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.4102, allocations: 365 kB / 0.5344 GB, free: 26.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.215e-05/0.4103, allocations: 0.6694 MB / 0.5351 GB, free: 25.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.455e-05/0.4104, allocations: 15.44 kB / 0.5351 GB, free: 25.97 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.4104, allocations: 0 / 0.5351 GB, free: 25.97 MB / 378.7 MB Error: Error building simulator. Build log: clang++ -std=c++14 -Winvalid-pch -O2 -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/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2CalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2Functions.cpp:4010:3: error: unknown type name 'scalarRetType' scalarRetType tmp525; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2Functions.cpp:5942:5: warning: expression result unused [-Wunused-value] tmp920; ^~~~~~ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2Functions.cpp:5979:5: warning: expression result unused [-Wunused-value] tmp930; ^~~~~~ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2FMU.cpp:11: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to local temporary object [-Wreturn-stack-address] virtual const string& getVariableFilter() { return "";} ^~ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2FMU.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) { ^ 4 warnings and 1 error generated. make: *** [: OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2CalcHelperMain.o] Error 1