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.924/1.924, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.439e-05/4.45e-05, allocations: 4 kB / 273.1 MB, free: 0.6562 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/0.5262, allocations: 83.83 MB / 405.7 MB, free: 6.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.5264, allocations: 59.3 kB / 405.7 MB, free: 6.035 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1502/0.6766, allocations: 29.3 MB / 435 MB, free: 8.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6767, allocations: 0 / 435 MB, free: 8.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.61e-05/0.6768, allocations: 24 kB / 435 MB, free: 8.629 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.002888/0.6797, allocations: 0.9311 MB / 436 MB, free: 7.652 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.6798, allocations: 12.03 kB / 436 MB, free: 7.641 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001712/0.6799, allocations: 82.52 kB / 436.1 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002574/0.6802, allocations: 86.97 kB / 436.1 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.682, allocations: 0.546 MB / 436.7 MB, free: 6.879 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.05e-05/0.6821, allocations: 40.77 kB / 436.7 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.6823, allocations: 51.91 kB / 436.8 MB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.6835, allocations: 483.5 kB / 437.3 MB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.6836, allocations: 4 kB / 437.3 MB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.647e-05/0.6837, allocations: 16 kB / 437.3 MB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.6837, allocations: 12 kB / 437.3 MB, free: 6.254 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.6847, allocations: 334.1 kB / 437.6 MB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005411/0.6902, allocations: 1.932 MB / 439.5 MB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.6914, allocations: 423.8 kB / 440 MB, free: 3.477 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005329/0.6919, allocations: 195.9 kB / 440.1 MB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.44e-05/0.692, allocations: 8 kB / 440.2 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.6921, allocations: 46.48 kB / 440.2 MB, free: 3.215 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.707e-06/0.6921, allocations: 0 / 440.2 MB, free: 3.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002197/0.6943, allocations: 0.7575 MB / 441 MB, free: 2.445 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.749e-05/0.6944, allocations: 106.8 kB / 441.1 MB, free: 2.316 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009622/0.6953, allocations: 0.4957 MB / 441.6 MB, free: 1.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/0.6954, allocations: 41.8 kB / 441.6 MB, free: 1.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/0.6958, allocations: 346.8 kB / 441.9 MB, free: 1.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.696, allocations: 165.6 kB / 442.1 MB, free: 1.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.6961, allocations: 15.94 kB / 442.1 MB, free: 1.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.6962, allocations: 338.8 kB / 442.4 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.6968, allocations: 197.1 kB / 442.6 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006745/0.6975, allocations: 296.1 kB / 442.9 MB, free: 400 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006597/0.6982, allocations: 227.2 kB / 443.2 MB, free: 176 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.6982, allocations: 4 kB / 443.2 MB, free: 172 kB / 362.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00165/0.6999, allocations: 0.5756 MB / 443.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.6999, allocations: 8.25 kB / 443.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.7, allocations: 8 kB / 443.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/0.7, allocations: 11.94 kB / 443.8 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.7019, allocations: 191.8 kB / 443.9 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.126e-05/0.7019, allocations: 11.94 kB / 444 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009847/0.7029, allocations: 75.64 kB / 444 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/0.703, allocations: 23.98 kB / 444.1 MB, free: 15.27 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.0001966/0.7032, allocations: 144.8 kB / 444.2 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.7034, allocations: 67.16 kB / 444.3 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002708/0.7037, allocations: 81.42 kB / 444.3 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.7037, allocations: 4 kB / 444.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.7038, allocations: 4 kB / 444.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.7038, allocations: 3.984 kB / 444.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.7064, allocations: 1.162 MB / 445.5 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.7065, allocations: 0 / 445.5 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.7078, allocations: 111.9 kB / 445.6 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.7078, allocations: 4 kB / 445.6 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.637e-05/0.7079, allocations: 24.05 kB / 445.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.708, allocations: 0 / 445.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.708, allocations: 4 kB / 445.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.7101, allocations: 1.008 MB / 446.7 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.7105, allocations: 192.2 kB / 446.9 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.7106, allocations: 19.98 kB / 446.9 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009846/0.7116, allocations: 55.95 kB / 446.9 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.7118, allocations: 39.94 kB / 447 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.702e-05/0.7119, allocations: 19.92 kB / 447 MB, free: 12.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007582/0.7127, allocations: 391.2 kB / 447.4 MB, free: 11.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7127, allocations: 0 / 447.4 MB, free: 11.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008866/0.7136, allocations: 147.9 kB / 447.5 MB, free: 11.67 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.002795/0.7164, allocations: 1.891 MB / 449.4 MB, free: 9.734 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.7178, allocations: 468.1 kB / 449.9 MB, free: 9.277 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.7179, allocations: 0.625 kB / 449.9 MB, free: 9.277 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006423/0.7185, allocations: 235.3 kB / 450.1 MB, free: 9.051 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.7199, allocations: 157.8 kB / 450.2 MB, free: 8.902 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.724, allocations: 1.39 MB / 451.6 MB, free: 7.445 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006863/0.7247, allocations: 0.945 MB / 452.6 MB, free: 6.473 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006877/0.7254, allocations: 239.4 kB / 452.8 MB, free: 6.242 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7254, allocations: 0 / 452.8 MB, free: 6.242 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