Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.229/2.229, allocations: 209.2 MB / 224.8 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004664, allocations: 16 kB / 282.7 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1252, allocations: 48.71 MB / 331.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4805/0.6057, allocations: 83.92 MB / 415.3 MB, free: 1.203 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.606, allocations: 69.31 kB / 415.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1601/0.7662, allocations: 29.37 MB / 444.7 MB, free: 3.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.7662, allocations: 0 / 444.7 MB, free: 3.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001383/0.7664, allocations: 24.38 kB / 444.7 MB, free: 3.668 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.005485/0.7719, allocations: 1.067 MB / 445.8 MB, free: 2.551 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.402e-05/0.772, allocations: 12.03 kB / 445.8 MB, free: 2.539 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003826/0.7724, allocations: 78.52 kB / 445.9 MB, free: 2.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003837/0.7728, allocations: 83.06 kB / 446 MB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/0.7757, allocations: 0.5774 MB / 446.6 MB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.7759, allocations: 33 kB / 446.6 MB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.7762, allocations: 59.89 kB / 446.7 MB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.7786, allocations: 0.5412 MB / 447.2 MB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/0.7787, allocations: 3.938 kB / 447.2 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.7789, allocations: 16 kB / 447.2 MB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.7789, allocations: 12 kB / 447.2 MB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002674/0.7816, allocations: 453.9 kB / 447.7 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00805/0.7897, allocations: 1.928 MB / 449.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.7926, allocations: 0.5095 MB / 450.1 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.867e-05/0.7927, allocations: 9.375 kB / 450.1 MB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.7928, allocations: 42.72 kB / 450.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 4.949e-06/0.7928, allocations: 0 / 450.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.006273/0.7991, allocations: 1.132 MB / 451.3 MB, free: 12.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.7993, allocations: 118.7 kB / 451.4 MB, free: 12.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.801, allocations: 0.5229 MB / 451.9 MB, free: 12.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/0.8012, allocations: 33.7 kB / 452 MB, free: 12.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.8016, allocations: 342.9 kB / 452.3 MB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.8018, allocations: 177.4 kB / 452.5 MB, free: 11.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.8019, allocations: 8 kB / 452.5 MB, free: 11.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.8021, allocations: 338.8 kB / 452.8 MB, free: 11.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.8032, allocations: 269 kB / 453.1 MB, free: 11.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.8045, allocations: 373.1 kB / 453.4 MB, free: 10.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.8057, allocations: 304.5 kB / 453.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.8057, allocations: 7.938 kB / 453.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002653/0.8084, allocations: 0.7089 MB / 454.4 MB, free: 9.621 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.8084, allocations: 8 kB / 454.5 MB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.8084, allocations: 4.281 kB / 454.5 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.8085, allocations: 8 kB / 454.5 MB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.8103, allocations: 191.7 kB / 454.7 MB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.8103, allocations: 8 kB / 454.7 MB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009723/0.8113, allocations: 87.55 kB / 454.7 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.739e-05/0.8114, allocations: 23.98 kB / 454.8 MB, free: 9.297 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (69): * Single equations (assignments): 68 * Array equations: 1 * 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.0004741/0.8119, allocations: 197.7 kB / 455 MB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.8121, allocations: 71.16 kB / 455 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.8124, allocations: 85.62 kB / 455.1 MB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.8124, allocations: 8 kB / 455.1 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.8124, allocations: 0 / 455.1 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.8124, allocations: 0 / 455.1 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.8155, allocations: 1.231 MB / 456.4 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.8156, allocations: 8.062 kB / 456.4 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.8169, allocations: 111.9 kB / 456.5 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.8169, allocations: 7.938 kB / 456.5 MB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.907e-05/0.817, allocations: 19.98 kB / 456.5 MB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.817, allocations: 0 / 456.5 MB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.817, allocations: 8 kB / 456.5 MB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003675/0.8207, allocations: 1.219 MB / 457.7 MB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004002/0.8212, allocations: 192.3 kB / 457.9 MB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.8213, allocations: 19.94 kB / 457.9 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009522/0.8223, allocations: 55.94 kB / 458 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.8225, allocations: 43.94 kB / 458 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.8225, allocations: 8 kB / 458 MB, free: 5.879 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001019/0.8236, allocations: 427 kB / 458.5 MB, free: 5.465 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8236, allocations: 3.938 kB / 458.5 MB, free: 5.461 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009649/0.8246, allocations: 147.9 kB / 458.6 MB, free: 5.316 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * 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 (45): * Single equations (assignments): 45 * 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.004478/0.8291, allocations: 2.102 MB / 460.7 MB, free: 3.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002429/0.8315, allocations: 0.6059 MB / 461.3 MB, free: 2.562 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8316, allocations: 4.125 kB / 461.3 MB, free: 2.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.8328, allocations: 304.3 kB / 461.6 MB, free: 2.262 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.8342, allocations: 146.3 kB / 461.8 MB, free: 2.121 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/0.8475, allocations: 6.262 MB / 468 MB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007104/0.8483, allocations: 0.945 MB / 469 MB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007488/0.8491, allocations: 235.4 kB / 469.2 MB, free: 10.54 MB / 394.7 MB Notification: Performance of SimCode: time 1.333e-06/0.8491, allocations: 0 / 469.2 MB, free: 10.54 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_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputFMU.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 generated. clang++ -shared -o ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1" -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgglse__vec(BaseArray&, BaseArray&, BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgglse__vecType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Continuous_InitialOutput/./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutputFunctions.cpp:108: undefined reference to `dgglse_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutput_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu] Error 1