Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.644/2.644, allocations: 270 MB / 282.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.449e-05/3.457e-05, allocations: 4 kB / 347 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4023, allocations: 61.87 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2002/0.6026, allocations: 96.89 MB / 0.494 GB, free: 9.629 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003999/0.6031, allocations: 63.97 kB / 0.494 GB, free: 9.566 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5196/1.123, allocations: 29.25 MB / 0.5226 GB, free: 105.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.123, allocations: 0 / 0.5226 GB, free: 105.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000107/1.123, allocations: 23.47 kB / 0.5226 GB, free: 105.8 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003232/1.126, allocations: 0.9603 MB / 0.5235 GB, free: 105.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/1.126, allocations: 9.094 kB / 0.5235 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002664/1.126, allocations: 84.12 kB / 0.5236 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000404/1.127, allocations: 95.56 kB / 0.5237 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/1.129, allocations: 0.5739 MB / 0.5243 GB, free: 104.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.062e-05/1.129, allocations: 40.66 kB / 0.5243 GB, free: 104.9 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/1.129, allocations: 60.22 kB / 0.5244 GB, free: 104.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/1.131, allocations: 0.5434 MB / 0.5249 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/1.131, allocations: 1.375 kB / 0.5249 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.053e-05/1.131, allocations: 21.75 kB / 0.5249 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/1.131, allocations: 11.19 kB / 0.5249 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/1.132, allocations: 360.1 kB / 0.5253 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005653/1.138, allocations: 2.663 MB / 0.5279 GB, free: 103.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000942/1.139, allocations: 430.8 kB / 0.5283 GB, free: 103.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004637/1.139, allocations: 201.5 kB / 0.5285 GB, free: 103.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/1.139, allocations: 6.703 kB / 0.5285 GB, free: 103.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/1.139, allocations: 42.39 kB / 0.5285 GB, free: 103.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.968e-06/1.139, allocations: 0 / 0.5285 GB, free: 103.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.002163/1.141, allocations: 0.8068 MB / 0.5293 GB, free: 102.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/1.141, allocations: 106.3 kB / 0.5294 GB, free: 102.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000908/1.142, allocations: 0.536 MB / 0.5299 GB, free: 102.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/1.142, allocations: 41.23 kB / 0.53 GB, free: 102.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/1.143, allocations: 375.4 kB / 0.5303 GB, free: 102.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/1.143, allocations: 175.1 kB / 0.5305 GB, free: 102.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/1.143, allocations: 15.94 kB / 0.5305 GB, free: 102.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.806e-05/1.143, allocations: 337.8 kB / 0.5308 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005456/1.144, allocations: 206.9 kB / 0.531 GB, free: 101.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006341/1.144, allocations: 351.5 kB / 0.5314 GB, free: 101.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006105/1.145, allocations: 255.9 kB / 0.5316 GB, free: 101.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/1.145, allocations: 0 / 0.5316 GB, free: 101.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002025/1.147, allocations: 0.6253 MB / 0.5322 GB, free: 101.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005379/1.148, allocations: 1.747 MB / 0.5339 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/1.148, allocations: 3.969 kB / 0.5339 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.215e-05/1.148, allocations: 7.781 kB / 0.534 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003201/1.151, allocations: 208.7 kB / 0.5342 GB, free: 99.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.381e-05/1.151, allocations: 11.56 kB / 0.5342 GB, free: 99.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/1.153, allocations: 83.58 kB / 0.5342 GB, free: 99.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002122/1.153, allocations: 31.09 kB / 0.5343 GB, free: 99.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/1.153, allocations: 3.906 kB / 0.5343 GB, free: 99.39 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002414/1.156, allocations: 0.562 MB / 0.5348 GB, free: 99.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/1.156, allocations: 11.91 kB / 0.5348 GB, free: 99.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/1.156, allocations: 10.72 kB / 0.5348 GB, free: 99.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/1.158, allocations: 212 kB / 0.535 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.25e-05/1.158, allocations: 7.812 kB / 0.5351 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008651/1.159, allocations: 75.81 kB / 0.5351 GB, free: 99.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.385e-05/1.159, allocations: 30.25 kB / 0.5352 GB, free: 99.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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.0002221/1.16, allocations: 148 kB / 0.5353 GB, free: 98.99 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/1.16, allocations: 77.41 kB / 0.5354 GB, free: 98.95 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/1.16, allocations: 85.14 kB / 0.5355 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/1.16, allocations: 7.641 kB / 0.5355 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.16, allocations: 3.562 kB / 0.5355 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/1.16, allocations: 3.688 kB / 0.5355 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/1.163, allocations: 1.193 MB / 0.5366 GB, free: 98.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/1.163, allocations: 4.062 kB / 0.5366 GB, free: 98.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/1.164, allocations: 117.9 kB / 0.5367 GB, free: 98.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/1.164, allocations: 0 / 0.5367 GB, free: 98.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.452e-05/1.164, allocations: 16.25 kB / 0.5368 GB, free: 98.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-06/1.164, allocations: 10.62 kB / 0.5368 GB, free: 98.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.164, allocations: 4 kB / 0.5368 GB, free: 98.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/1.166, allocations: 1.02 MB / 0.5378 GB, free: 97.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004098/1.167, allocations: 198.4 kB / 0.538 GB, free: 97.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/1.167, allocations: 11.31 kB / 0.538 GB, free: 97.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.168, allocations: 67.88 kB / 0.538 GB, free: 97.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/1.168, allocations: 33.06 kB / 0.5381 GB, free: 97.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-05/1.168, allocations: 19.64 kB / 0.5381 GB, free: 97.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007417/1.169, allocations: 429 kB / 0.5385 GB, free: 97.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.169, allocations: 0 / 0.5385 GB, free: 97.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001325/1.17, allocations: 232 kB / 0.5387 GB, free: 97.14 MB / 442.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 (46): * Single equations (assignments): 46 * 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.002362/1.173, allocations: 1.909 MB / 0.5406 GB, free: 95.67 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/1.175, allocations: 0.7946 MB / 0.5414 GB, free: 95.41 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.175, allocations: 0.75 kB / 0.5414 GB, free: 95.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005705/1.175, allocations: 220.7 kB / 0.5416 GB, free: 95.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/1.177, allocations: 176.2 kB / 0.5417 GB, free: 95.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/1.181, allocations: 1.422 MB / 0.5431 GB, free: 94.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/1.181, allocations: 0.9644 MB / 0.5441 GB, free: 93.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006559/1.182, allocations: 261.1 kB / 0.5443 GB, free: 93.58 MB / 442.7 MB Notification: Performance of SimCode: time 1.603e-06/1.182, allocations: 0 / 0.5443 GB, free: 93.58 MB / 442.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_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.so OMCppModelicaTest_trunk_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 trunk" -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput/./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutput_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu] Error 1