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 1.88/1.88, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.654e-05/3.662e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09921/0.09927, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4007/0.5, allocations: 83.83 MB / 405.7 MB, free: 5.969 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.5004, allocations: 63.97 kB / 405.7 MB, free: 5.906 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1457/0.6461, allocations: 29.29 MB / 435 MB, free: 8.535 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.997e-06/0.6462, allocations: 7.984 kB / 435 MB, free: 8.527 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.491e-05/0.6463, allocations: 20.44 kB / 435.1 MB, free: 8.508 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.00295/0.6493, allocations: 0.9346 MB / 436 MB, free: 7.527 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.6493, allocations: 12.03 kB / 436 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.6495, allocations: 78.53 kB / 436.1 MB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002535/0.6498, allocations: 86.97 kB / 436.2 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.6515, allocations: 0.5499 MB / 436.7 MB, free: 6.754 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.606e-05/0.6516, allocations: 28.78 kB / 436.8 MB, free: 6.727 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.6518, allocations: 59.91 kB / 436.8 MB, free: 6.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.653, allocations: 477.9 kB / 437.3 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.653, allocations: 3.984 kB / 437.3 MB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.997e-05/0.6531, allocations: 20 kB / 437.3 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.6532, allocations: 12 kB / 437.3 MB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000986/0.6542, allocations: 333 kB / 437.6 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005389/0.6596, allocations: 1.928 MB / 439.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.6608, allocations: 411.8 kB / 440 MB, free: 3.371 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005182/0.6613, allocations: 207.8 kB / 440.2 MB, free: 3.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.972e-05/0.6614, allocations: 4 kB / 440.2 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.6614, allocations: 42.56 kB / 440.2 MB, free: 3.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.557e-06/0.6614, allocations: 0 / 440.2 MB, free: 3.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002128/0.6636, allocations: 0.7575 MB / 441 MB, free: 2.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.6637, allocations: 110.8 kB / 441.1 MB, free: 2.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009438/0.6646, allocations: 0.4956 MB / 441.6 MB, free: 1.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.425e-05/0.6647, allocations: 41.73 kB / 441.6 MB, free: 1.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.665, allocations: 342.9 kB / 442 MB, free: 1.316 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.6652, allocations: 173.5 kB / 442.1 MB, free: 1.145 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.6653, allocations: 12 kB / 442.1 MB, free: 1.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.6654, allocations: 334.8 kB / 442.5 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005814/0.666, allocations: 197.1 kB / 442.7 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006499/0.6667, allocations: 299 kB / 442.9 MB, free: 288 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.6674, allocations: 230.9 kB / 443.2 MB, free: 60 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.6674, allocations: 0 / 443.2 MB, free: 60 kB / 362.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001582/0.669, allocations: 0.5602 MB / 443.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.669, allocations: 12.3 kB / 443.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.669, allocations: 8 kB / 443.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.6691, allocations: 8 kB / 443.8 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.671, allocations: 191.8 kB / 443.9 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.231e-05/0.671, allocations: 15.98 kB / 444 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009937/0.672, allocations: 79.62 kB / 444 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/0.6721, allocations: 20 kB / 444.1 MB, free: 15.17 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 () * 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.0002031/0.6723, allocations: 140.8 kB / 444.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.6725, allocations: 67.16 kB / 444.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002742/0.6728, allocations: 81.42 kB / 444.3 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.6729, allocations: 8 kB / 444.3 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.6729, allocations: 3.984 kB / 444.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.6729, allocations: 4.031 kB / 444.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.6755, allocations: 1.162 MB / 445.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.6755, allocations: 0 / 445.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.6769, allocations: 111.9 kB / 445.6 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.224e-05/0.6769, allocations: 4 kB / 445.6 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-05/0.677, allocations: 20.05 kB / 445.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.361e-06/0.677, allocations: 0 / 445.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.677, allocations: 4 kB / 445.7 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.679, allocations: 1.008 MB / 446.7 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.6794, allocations: 196.2 kB / 446.9 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.6796, allocations: 19.94 kB / 446.9 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.6806, allocations: 55.94 kB / 446.9 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.6808, allocations: 43.94 kB / 447 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.924e-05/0.6808, allocations: 8 kB / 447 MB, free: 12.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007452/0.6816, allocations: 399.2 kB / 447.4 MB, free: 11.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6816, allocations: 0 / 447.4 MB, free: 11.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009108/0.6825, allocations: 143.9 kB / 447.5 MB, free: 11.57 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 () * 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.002671/0.6852, allocations: 1.884 MB / 449.4 MB, free: 9.641 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.6866, allocations: 463.8 kB / 449.8 MB, free: 9.188 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6866, allocations: 3.938 kB / 449.9 MB, free: 9.184 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006117/0.6872, allocations: 216.5 kB / 450.1 MB, free: 8.973 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.6887, allocations: 162.2 kB / 450.2 MB, free: 8.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.6926, allocations: 1.379 MB / 451.6 MB, free: 7.379 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006616/0.6933, allocations: 0.9528 MB / 452.6 MB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006586/0.694, allocations: 243.3 kB / 452.8 MB, free: 6.168 MB / 378.7 MB Notification: Performance of SimCode: time 1.243e-06/0.694, allocations: 0 / 452.8 MB, free: 6.168 MB / 378.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 -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1" -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