Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestNonlinear.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.TestNonlinear,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.235/2.235, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.000423, allocations: 16 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3282, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0006035/0.3289, allocations: 212.5 kB / 369.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003896/0.3328, allocations: 2.049 MB / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.338e-06/0.3328, allocations: 0 / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.787e-06/0.3328, allocations: 0 / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.313e-06/0.3328, allocations: 0 / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002836/0.3357, allocations: 0.5026 MB / 372 MB, free: 7.945 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.728e-05/0.3357, allocations: 7.984 kB / 372 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.327e-05/0.3358, allocations: 0 / 372 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.849e-05/0.3359, allocations: 11.98 kB / 372 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.202e-05/0.3359, allocations: 4 kB / 372.1 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.3359, allocations: 0 / 372.1 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.3371, allocations: 0.5383 MB / 372.6 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.049e-06/0.3372, allocations: 7.938 kB / 372.6 MB, free: 7.375 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.931e-05/0.3372, allocations: 29.7 kB / 372.6 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006155/0.3378, allocations: 287.6 kB / 372.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.3378, allocations: 0 / 372.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3378, allocations: 0 / 372.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.3379, allocations: 0 / 372.9 MB, free: 7.059 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000422/0.3383, allocations: 417 kB / 373.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3383, allocations: 12.03 kB / 373.3 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.035e-05/0.3384, allocations: 105.8 kB / 373.4 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.482e-05/0.3385, allocations: 79.28 kB / 373.5 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.3386, allocations: 234.4 kB / 373.7 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.3387, allocations: 158.5 kB / 373.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.3387, allocations: 150.6 kB / 374 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.873e-05/0.3388, allocations: 112.9 kB / 374.1 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.3389, allocations: 75.28 kB / 374.2 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.409e-05/0.3389, allocations: 162.5 kB / 374.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-05/0.339, allocations: 150.6 kB / 374.5 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.441e-05/0.3391, allocations: 150.6 kB / 374.7 MB, free: 5.172 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002777/0.3394, allocations: 449.9 kB / 375.1 MB, free: 4.684 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.379e-05/0.3394, allocations: 169.1 kB / 375.3 MB, free: 4.508 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.3395, allocations: 75.28 kB / 375.4 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.203e-05/0.3396, allocations: 131.5 kB / 375.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of pre-optimization done (n=0): time 1.423e-06/0.3396, allocations: 0 / 375.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=0): time 8.218e-05/0.3397, allocations: 41.58 kB / 375.5 MB, free: 4.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.3397, allocations: 156.4 kB / 375.7 MB, free: 4.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.843e-05/0.3398, allocations: 93.86 kB / 375.8 MB, free: 3.969 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3398, allocations: 25.7 kB / 375.8 MB, free: 3.938 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.056e-05/0.3399, allocations: 150.6 kB / 375.9 MB, free: 3.789 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.909e-06/0.3399, allocations: 4 kB / 375.9 MB, free: 3.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.31e-07/0.3399, allocations: 0 / 375.9 MB, free: 3.785 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.34, allocations: 310.8 kB / 376.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.968e-06/0.34, allocations: 0 / 376.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.318e-05/0.3401, allocations: 0 / 376.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.781e-05/0.3401, allocations: 83.25 kB / 376.3 MB, free: 3.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-05/0.3402, allocations: 79.28 kB / 376.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.982e-05/0.3402, allocations: 25.7 kB / 376.4 MB, free: 3.281 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.3403, allocations: 87.2 kB / 376.5 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.039e-05/0.3403, allocations: 79.28 kB / 376.6 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.266e-05/0.3404, allocations: 150.6 kB / 376.7 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.24e-05/0.3405, allocations: 87.22 kB / 376.8 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.512e-05/0.3405, allocations: 158.5 kB / 377 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.209e-05/0.3407, allocations: 83.22 kB / 377.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.3407, allocations: 79.22 kB / 377.1 MB, free: 2.566 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: 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.0001279/0.3408, allocations: 260.4 kB / 377.4 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.847e-05/0.3409, allocations: 105 kB / 377.5 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.616e-05/0.341, allocations: 119.8 kB / 377.6 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.749e-05/0.341, allocations: 180.3 kB / 377.8 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.536e-05/0.3411, allocations: 180.2 kB / 378 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.757e-05/0.3412, allocations: 180.2 kB / 378.1 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.3414, allocations: 401.2 kB / 378.5 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.375e-05/0.3415, allocations: 108.9 kB / 378.6 MB, free: 0.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.3416, allocations: 105.3 kB / 378.7 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.516e-05/0.3416, allocations: 180.2 kB / 378.9 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.269e-05/0.3417, allocations: 188.3 kB / 379.1 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-05/0.3418, allocations: 176.3 kB / 379.3 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.83e-05/0.3419, allocations: 180.2 kB / 379.5 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.342, allocations: 315.7 kB / 379.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.3421, allocations: 182.1 kB / 379.9 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.3422, allocations: 180.3 kB / 380.1 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.293e-05/0.3423, allocations: 104.9 kB / 380.2 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.3424, allocations: 180.3 kB / 380.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.3425, allocations: 116.9 kB / 380.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.178e-05/0.3425, allocations: 75.28 kB / 380.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3425, allocations: 0 / 380.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006728/0.3432, allocations: 124 kB / 380.7 MB, free: 14.78 MB / 314.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.001416/0.3446, allocations: 1.059 MB / 381.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 4.421e-05/0.3447, allocations: 3.938 kB / 381.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3447, allocations: 0 / 381.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.194e-06/0.3447, allocations: 0 / 381.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.345, allocations: 0.5302 MB / 382.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004886/0.3455, allocations: 245.4 kB / 382.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3458, allocations: 0.6731 MB / 383.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.406e-05/0.3458, allocations: 7.438 kB / 383.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of SimCode: time 2.675e-06/0.3458, allocations: 0 / 383.2 MB, free: 12.18 MB / 314.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_TestNonlinearCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:216:56: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, a_, b_, fa_, fb_, is_,tmp7); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:562:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:840:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:1298:58: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, a_, mll_, fa_, fmll_, is_,tmp77); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:1299:58: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, mll_, ml_, fmll_, fml_, is_,tmp78); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:1300:58: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, ml_, m_, fml_, fm_, is_,tmp79); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:1301:58: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, m_, mr_, fm_, fmr_, is_,tmp80); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:1302:58: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, mr_, mrr_, fmr_, fmrr_, is_,tmp81); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFunctions.cpp:1303:58: error: use of undeclared identifier 'f_' Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, mrr_, b_, fmrr_, fb_, is_,tmp82); ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearFMU.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 9 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestNonlinearCalcHelperMain.o] Error 1