Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.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.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.683/2.683, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004473, allocations: 15.98 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3519, allocations: 54.87 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.5376, allocations: 90.15 MB / 459.5 MB, free: 448 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5379, allocations: 63.97 kB / 459.6 MB, free: 384 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4604/0.9983, allocations: 27.63 MB / 487.2 MB, free: 93.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.9984, allocations: 0 / 487.2 MB, free: 93.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.419e-05/0.9985, allocations: 18.12 kB / 487.2 MB, free: 93.73 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.003571/1.002, allocations: 1.064 MB / 488.3 MB, free: 93.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/1.002, allocations: 11.56 kB / 488.3 MB, free: 93.04 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003112/1.002, allocations: 83.34 kB / 488.4 MB, free: 92.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002968/1.003, allocations: 80.31 kB / 488.5 MB, free: 92.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00212/1.005, allocations: 0.5593 MB / 489 MB, free: 92.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.536e-05/1.005, allocations: 37.47 kB / 489 MB, free: 92.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/1.005, allocations: 56.52 kB / 489.1 MB, free: 92.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/1.007, allocations: 0.5294 MB / 489.6 MB, free: 92.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/1.007, allocations: 3.938 kB / 489.6 MB, free: 92.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/1.007, allocations: 13.41 kB / 489.7 MB, free: 92.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/1.007, allocations: 10.31 kB / 489.7 MB, free: 92.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/1.009, allocations: 450.2 kB / 490.1 MB, free: 92.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004901/1.014, allocations: 1.935 MB / 492 MB, free: 90.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/1.015, allocations: 0.5157 MB / 492.6 MB, free: 90.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.542e-05/1.016, allocations: 7.906 kB / 492.6 MB, free: 90.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/1.016, allocations: 42.08 kB / 492.6 MB, free: 90.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=44): time 4.017e-06/1.016, allocations: 7.906 kB / 492.6 MB, free: 90.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.004123/1.02, allocations: 1.137 MB / 493.7 MB, free: 89.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/1.02, allocations: 106.8 kB / 493.8 MB, free: 89.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/1.021, allocations: 0.5204 MB / 494.4 MB, free: 89.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/1.021, allocations: 37.48 kB / 494.4 MB, free: 89.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/1.021, allocations: 333.5 kB / 494.7 MB, free: 89.17 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/1.022, allocations: 176.8 kB / 494.9 MB, free: 89.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/1.022, allocations: 11.91 kB / 494.9 MB, free: 89.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.771e-05/1.022, allocations: 334.7 kB / 495.2 MB, free: 88.68 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/1.023, allocations: 272 kB / 495.5 MB, free: 88.56 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/1.024, allocations: 369.5 kB / 495.9 MB, free: 88.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/1.025, allocations: 312.2 kB / 496.2 MB, free: 88.19 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/1.025, allocations: 0 / 496.2 MB, free: 88.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002513/1.028, allocations: 0.7192 MB / 496.9 MB, free: 87.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002362/1.028, allocations: 1.052 MB / 497.9 MB, free: 86.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/1.028, allocations: 4 kB / 497.9 MB, free: 86.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/1.028, allocations: 8 kB / 498 MB, free: 86.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/1.03, allocations: 191.8 kB / 498.1 MB, free: 86.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.122e-05/1.03, allocations: 11.92 kB / 498.2 MB, free: 86.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/1.031, allocations: 79.64 kB / 498.2 MB, free: 86.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/1.031, allocations: 27.98 kB / 498.3 MB, free: 86.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/1.031, allocations: 7.938 kB / 498.3 MB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002254/1.034, allocations: 0.6613 MB / 498.9 MB, free: 85.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/1.034, allocations: 4 kB / 498.9 MB, free: 85.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/1.034, allocations: 4 kB / 498.9 MB, free: 85.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/1.035, allocations: 192 kB / 499.1 MB, free: 85.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/1.035, allocations: 7.984 kB / 499.1 MB, free: 85.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006428/1.036, allocations: 71.56 kB / 499.2 MB, free: 85.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.958e-05/1.036, allocations: 28 kB / 499.2 MB, free: 85.16 MB / 394.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.0005275/1.037, allocations: 280.9 kB / 499.5 MB, free: 84.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002632/1.037, allocations: 67.16 kB / 499.6 MB, free: 84.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/1.037, allocations: 81.64 kB / 499.7 MB, free: 84.71 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/1.037, allocations: 4 kB / 499.7 MB, free: 84.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/1.037, allocations: 4 kB / 499.7 MB, free: 84.71 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/1.037, allocations: 7.984 kB / 499.7 MB, free: 84.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/1.04, allocations: 1.228 MB / 0.4892 GB, free: 83.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/1.04, allocations: 4 kB / 0.4892 GB, free: 83.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/1.042, allocations: 115.9 kB / 0.4893 GB, free: 83.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/1.042, allocations: 0 / 0.4893 GB, free: 83.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.631e-05/1.042, allocations: 15.98 kB / 0.4893 GB, free: 83.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/1.042, allocations: 7.953 kB / 0.4893 GB, free: 83.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.042, allocations: 0 / 0.4893 GB, free: 83.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003267/1.045, allocations: 1.232 MB / 0.4905 GB, free: 82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/1.045, allocations: 188.3 kB / 0.4907 GB, free: 81.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/1.046, allocations: 23.31 kB / 0.4907 GB, free: 81.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009806/1.047, allocations: 55.94 kB / 0.4907 GB, free: 81.72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/1.047, allocations: 35.94 kB / 0.4908 GB, free: 81.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/1.047, allocations: 16 kB / 0.4908 GB, free: 81.67 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009203/1.048, allocations: 427 kB / 0.4912 GB, free: 81.26 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.048, allocations: 0 / 0.4912 GB, free: 81.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001269/1.049, allocations: 219.9 kB / 0.4914 GB, free: 81.04 MB / 394.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.003826/1.053, allocations: 2.109 MB / 0.4935 GB, free: 78.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003423/1.056, allocations: 0.9573 MB / 0.4944 GB, free: 77.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/1.056, allocations: 4 kB / 0.4944 GB, free: 77.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/1.058, allocations: 302.1 kB / 0.4947 GB, free: 77.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/1.059, allocations: 152 kB / 0.4948 GB, free: 77.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/1.071, allocations: 6.252 MB / 0.501 GB, free: 71.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/1.072, allocations: 0.9492 MB / 0.5019 GB, free: 70.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007176/1.072, allocations: 243.3 kB / 0.5021 GB, free: 69.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.293e-06/1.072, allocations: 0 / 0.5021 GB, free: 69.91 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_Blocks_Continuous_InitialOutputCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.so OMCppModelicaTest_3_2_2_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.2" -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelicaTest_3_2_2_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.2_cpp_ModelicaTest.Blocks.Continuous_InitialOutput/./OMCppModelicaTest_3_2_2_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_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu] Error 1