Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.432/2.432, allocations: 233 MB / 245.6 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.968e-05/3.98e-05, allocations: 7.938 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.116, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4836/0.5996, allocations: 96.38 MB / 451 MB, free: 5.504 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002575/0.6023, allocations: 0.6869 MB / 451.7 MB, free: 4.816 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06828/0.6706, allocations: 14.53 MB / 466.2 MB, free: 6.148 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6706, allocations: 0 / 466.2 MB, free: 6.148 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.306e-05/0.6707, allocations: 19.88 kB / 466.2 MB, free: 6.129 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001964/0.6727, allocations: 0.7555 MB / 467 MB, free: 5.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.6728, allocations: 12.03 kB / 467 MB, free: 5.309 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/0.6729, allocations: 70.53 kB / 467 MB, free: 5.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.6731, allocations: 55.34 kB / 467.1 MB, free: 5.176 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002521/0.6757, allocations: 0.6795 MB / 467.8 MB, free: 4.453 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.821e-05/0.6757, allocations: 29.3 kB / 467.8 MB, free: 4.426 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.6759, allocations: 40 kB / 467.8 MB, free: 4.387 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.677, allocations: 458.6 kB / 468.3 MB, free: 3.891 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.677, allocations: 3.906 kB / 468.3 MB, free: 3.887 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.036e-05/0.6771, allocations: 12 kB / 468.3 MB, free: 3.875 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.6771, allocations: 8 kB / 468.3 MB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007381/0.6779, allocations: 262.6 kB / 468.6 MB, free: 3.613 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.6816, allocations: 1.864 MB / 470.4 MB, free: 1.637 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007885/0.6825, allocations: 249.2 kB / 470.7 MB, free: 1.367 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.6827, allocations: 86.94 kB / 470.8 MB, free: 1.273 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.6828, allocations: 4.188 kB / 470.8 MB, free: 1.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004174/0.6832, allocations: 166.5 kB / 470.9 MB, free: 1.086 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 3.546e-06/0.6832, allocations: 0 / 470.9 MB, free: 1.086 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.003005/0.6862, allocations: 1.072 MB / 472 MB, free: 15.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.673e-05/0.6864, allocations: 136.6 kB / 472.1 MB, free: 15.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006573/0.687, allocations: 342.8 kB / 472.5 MB, free: 15.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/0.6871, allocations: 29.7 kB / 472.5 MB, free: 15.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.6874, allocations: 310.2 kB / 472.8 MB, free: 15.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.6875, allocations: 95.3 kB / 472.9 MB, free: 14.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.6876, allocations: 8 kB / 472.9 MB, free: 14.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6877, allocations: 322.8 kB / 473.2 MB, free: 14.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.688, allocations: 84.73 kB / 473.3 MB, free: 14.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003662/0.6884, allocations: 209.6 kB / 473.5 MB, free: 14.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.6888, allocations: 146.8 kB / 473.7 MB, free: 14.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.6888, allocations: 4 kB / 473.7 MB, free: 14.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001439/0.6903, allocations: 431.2 kB / 474.1 MB, free: 13.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.344e-05/0.6904, allocations: 33.7 kB / 474.1 MB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.6904, allocations: 4.531 kB / 474.1 MB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006925/0.6911, allocations: 92.78 kB / 474.2 MB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005348/0.6917, allocations: 67.84 kB / 474.3 MB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003402/0.6951, allocations: 1.807 MB / 476.1 MB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005682/0.6957, allocations: 19.98 kB / 476.1 MB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.599e-05/0.6958, allocations: 23.94 kB / 476.1 MB, free: 11.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.6959, allocations: 123.6 kB / 476.2 MB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.996e-05/0.6961, allocations: 47.5 kB / 476.3 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.6971, allocations: 297.7 kB / 476.6 MB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.6972, allocations: 4 kB / 476.6 MB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.6972, allocations: 4 kB / 476.6 MB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.6972, allocations: 3.984 kB / 476.6 MB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/0.6991, allocations: 0.7767 MB / 477.4 MB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.6992, allocations: 4 kB / 477.4 MB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005159/0.6998, allocations: 51.91 kB / 477.4 MB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003692/0.7001, allocations: 48.81 kB / 477.5 MB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.928e-05/0.7002, allocations: 4 kB / 477.5 MB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.7022, allocations: 1.433 MB / 478.9 MB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.7022, allocations: 4.031 kB / 478.9 MB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.7037, allocations: 0.5127 MB / 479.4 MB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.704, allocations: 136.6 kB / 479.6 MB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.806e-05/0.7041, allocations: 8 kB / 479.6 MB, free: 7.824 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004068/0.7045, allocations: 15.98 kB / 479.6 MB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.7047, allocations: 31.91 kB / 479.6 MB, free: 7.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.7047, allocations: 4 kB / 479.6 MB, free: 7.773 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005175/0.7052, allocations: 269.2 kB / 479.9 MB, free: 7.512 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7052, allocations: 0 / 479.9 MB, free: 7.512 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000925/0.7062, allocations: 127.9 kB / 480 MB, free: 7.387 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002787/0.709, allocations: 1.447 MB / 481.5 MB, free: 5.957 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.7106, allocations: 433 kB / 481.9 MB, free: 5.512 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/0.7107, allocations: 4 kB / 481.9 MB, free: 5.508 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007667/0.7114, allocations: 234.5 kB / 482.1 MB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.7125, allocations: 105.5 kB / 482.2 MB, free: 5.164 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.7157, allocations: 0.9657 MB / 483.2 MB, free: 4.152 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006159/0.7164, allocations: 0.8665 MB / 484 MB, free: 3.258 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000386/0.7168, allocations: 155.4 kB / 484.2 MB, free: 3.105 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7168, allocations: 4 kB / 484.2 MB, free: 3.102 MB / 410.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 OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitializeParameter.cpp:110:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp61; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitializeParameter.cpp:111:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Resources/Tables/", tmp61); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:110:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:111:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Resources/Tables/", tmp14); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:770:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:771:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT3, tmp20); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.cpp:1053:27: error: use of undeclared identifier 'tmp2' _tabLoad_P_fileName_ = (tmp2 + "hNormProfile.tab"); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serFMU.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 and 7 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o] Error 1