Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.323/2.323, allocations: 233 MB / 245.6 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.069e-05, allocations: 0 / 301.4 MB, free: 7.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1289, allocations: 53.24 MB / 354.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4489/0.5779, allocations: 96.89 MB / 451.5 MB, free: 4.973 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002475/0.5804, allocations: 0.6831 MB / 452.2 MB, free: 4.289 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07799/0.6584, allocations: 16.11 MB / 468.3 MB, free: 4.016 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6585, allocations: 0 / 468.3 MB, free: 4.016 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.491e-05/0.6586, allocations: 15.98 kB / 468.3 MB, free: 4 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002524/0.6611, allocations: 0.7985 MB / 469.1 MB, free: 3.145 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/0.6612, allocations: 12.03 kB / 469.1 MB, free: 3.133 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001953/0.6614, allocations: 83.08 kB / 469.2 MB, free: 3.043 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.6616, allocations: 59.34 kB / 469.2 MB, free: 2.984 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.665, allocations: 0.7535 MB / 470 MB, free: 2.188 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.192e-05/0.6651, allocations: 33.52 kB / 470 MB, free: 2.156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.6653, allocations: 47.95 kB / 470.1 MB, free: 2.109 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.6671, allocations: 0.5052 MB / 470.6 MB, free: 1.559 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.791e-05/0.6672, allocations: 8.469 kB / 470.6 MB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.936e-05/0.6673, allocations: 20 kB / 470.6 MB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.85e-05/0.6674, allocations: 12 kB / 470.6 MB, free: 1.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.6686, allocations: 309.3 kB / 470.9 MB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00519/0.6739, allocations: 2.074 MB / 473 MB, free: 15.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008312/0.6747, allocations: 221.4 kB / 473.2 MB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.675, allocations: 82.91 kB / 473.3 MB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.266e-05/0.6751, allocations: 20.16 kB / 473.3 MB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004823/0.6756, allocations: 154.5 kB / 473.5 MB, free: 14.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 4.188e-06/0.6756, allocations: 0 / 473.5 MB, free: 14.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.003779/0.6794, allocations: 1.09 MB / 474.5 MB, free: 13.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.6796, allocations: 136.4 kB / 474.7 MB, free: 13.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000941/0.6805, allocations: 367 kB / 475 MB, free: 12.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.444e-05/0.6806, allocations: 33.7 kB / 475.1 MB, free: 12.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003474/0.6809, allocations: 330 kB / 475.4 MB, free: 12.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.6811, allocations: 94.72 kB / 475.5 MB, free: 12.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/0.6812, allocations: 12.06 kB / 475.5 MB, free: 12.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.6814, allocations: 330.8 kB / 475.8 MB, free: 12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.6818, allocations: 80.86 kB / 475.9 MB, free: 11.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005359/0.6823, allocations: 223.3 kB / 476.1 MB, free: 11.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004939/0.6828, allocations: 141.6 kB / 476.3 MB, free: 11.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.6829, allocations: 8 kB / 476.3 MB, free: 11.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001853/0.6847, allocations: 437.4 kB / 476.7 MB, free: 11.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.101e-05/0.6848, allocations: 37.69 kB / 476.7 MB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.6849, allocations: 4 kB / 476.7 MB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008477/0.6857, allocations: 96.72 kB / 476.8 MB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/0.6864, allocations: 67.91 kB / 476.9 MB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003734/0.6901, allocations: 1.687 MB / 478.6 MB, free: 9.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006847/0.6909, allocations: 23.91 kB / 478.6 MB, free: 9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-05/0.6909, allocations: 16 kB / 478.6 MB, free: 8.984 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (42): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.6912, allocations: 140.7 kB / 478.8 MB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.6913, allocations: 43.59 kB / 478.8 MB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.6926, allocations: 270 kB / 479.1 MB, free: 8.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.6926, allocations: 8 kB / 479.1 MB, free: 8.512 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.6926, allocations: 7.953 kB / 479.1 MB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.6926, allocations: 0 / 479.1 MB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002452/0.6951, allocations: 0.7876 MB / 479.9 MB, free: 7.656 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.6951, allocations: 4 kB / 479.9 MB, free: 7.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007224/0.6959, allocations: 39.98 kB / 479.9 MB, free: 7.613 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000457/0.6963, allocations: 56.78 kB / 480 MB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.6964, allocations: 8 kB / 480 MB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002357/0.6988, allocations: 1.433 MB / 481.4 MB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6988, allocations: 0 / 481.4 MB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.7004, allocations: 0.489 MB / 481.9 MB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.7007, allocations: 140.5 kB / 482 MB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.7008, allocations: 8 kB / 482 MB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005248/0.7014, allocations: 15.98 kB / 482.1 MB, free: 5.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.7015, allocations: 27.91 kB / 482.1 MB, free: 5.242 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.752e-05/0.7016, allocations: 8 kB / 482.1 MB, free: 5.234 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006774/0.7023, allocations: 281.2 kB / 482.4 MB, free: 4.965 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.7023, allocations: 0 / 482.4 MB, free: 4.965 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00115/0.7034, allocations: 132 kB / 482.5 MB, free: 4.836 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,dcm_par.motor.i,dcm_par.motor.i_f,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 (23): * Single equations (assignments): 21 * 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.003336/0.7068, allocations: 1.404 MB / 483.9 MB, free: 3.453 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.7084, allocations: 424.8 kB / 484.3 MB, free: 3.016 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.7084, allocations: 0 / 484.3 MB, free: 3.016 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007718/0.7092, allocations: 242.5 kB / 484.6 MB, free: 2.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.7106, allocations: 110.5 kB / 484.7 MB, free: 2.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0039/0.7145, allocations: 1.072 MB / 485.7 MB, free: 1.539 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006343/0.7152, allocations: 0.8896 MB / 486.6 MB, free: 0.625 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004019/0.7156, allocations: 171.4 kB / 486.8 MB, free: 468 kB / 410.7 MB Notification: Performance of SimCode: time 1.113e-06/0.7156, allocations: 0 / 486.8 MB, free: 468 kB / 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_parCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitializeParameter.cpp:116:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp64; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitializeParameter.cpp:117: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/", tmp64); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:109:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:110: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_parInitialize.cpp:813:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:814: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_parCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.cpp:1055: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_parCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parFMU.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_parCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.o] Error 1