Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.957e-05/3.969e-05, allocations: 5.25 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 44.51 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5533/0.6557, allocations: 130 MB / 429.9 MB, free: 14.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/0.6561, allocations: 100.8 kB / 430 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.608/2.264, allocations: 332.6 MB / 0.7448 GB, free: 35.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/2.264, allocations: 0 / 0.7448 GB, free: 35.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006631/2.265, allocations: 212.8 kB / 0.745 GB, free: 35.25 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04122/2.306, allocations: 8.752 MB / 0.7535 GB, free: 32.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/2.306, allocations: 12.81 kB / 0.7535 GB, free: 32.44 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006587/2.313, allocations: 1.415 MB / 0.7549 GB, free: 32.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04801/2.361, allocations: 5.849 MB / 0.7606 GB, free: 31.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.027/2.388, allocations: 7.441 MB / 0.7679 GB, free: 30.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001202/2.389, allocations: 0.7255 MB / 0.7686 GB, free: 30.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005119/2.394, allocations: 0.9353 MB / 0.7695 GB, free: 30.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05606/2.451, allocations: 16.83 MB / 0.786 GB, free: 26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007173/2.451, allocations: 22.44 kB / 0.786 GB, free: 25.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005011/2.456, allocations: 412.3 kB / 0.7864 GB, free: 25.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001205/2.458, allocations: 0.7161 MB / 0.7871 GB, free: 25.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04737/2.505, allocations: 15.67 MB / 0.8024 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5191/3.024, allocations: 52.78 MB / 0.8539 GB, free: 33.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05321/3.078, allocations: 41.39 MB / 0.8943 GB, free: 32.44 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0177/3.095, allocations: 7.009 MB / 0.9012 GB, free: 32.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06479/3.16, allocations: 21.72 MB / 0.9224 GB, free: 31.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/3.16, allocations: 94.62 kB / 0.9225 GB, free: 31.42 MB / 458.7 MB Notification: Performance of pre-optimization done (n=688): time 1.162e-05/3.16, allocations: 0 / 0.9225 GB, free: 31.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=696): time 0.06927/3.23, allocations: 22.73 MB / 0.9447 GB, free: 26.65 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/3.23, allocations: 110.9 kB / 0.9448 GB, free: 26.58 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006554/3.236, allocations: 2.44 MB / 0.9472 GB, free: 25.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001623/3.238, allocations: 117.4 kB / 0.9473 GB, free: 25.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002658/3.241, allocations: 3.522 MB / 0.9507 GB, free: 22.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003917/3.245, allocations: 2.298 MB / 0.953 GB, free: 21.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/3.247, allocations: 127.1 kB / 0.9531 GB, free: 21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001042/3.248, allocations: 0.6109 MB / 0.9537 GB, free: 20.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01214/3.26, allocations: 4.458 MB / 0.958 GB, free: 18.72 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01406/3.274, allocations: 6.265 MB / 0.9642 GB, free: 14.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01474/3.289, allocations: 5.559 MB / 0.9696 GB, free: 12.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.488e-05/3.289, allocations: 19.06 kB / 0.9696 GB, free: 12.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.0409/3.33, allocations: 13.38 MB / 0.9827 GB, free: 7.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/3.33, allocations: 28.84 kB / 0.9827 GB, free: 7.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/3.33, allocations: 55.19 kB / 0.9827 GB, free: 7.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01357/3.344, allocations: 3.981 MB / 0.9866 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009964/3.354, allocations: 1.216 MB / 0.9878 GB, free: 6.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/3.375, allocations: 9.641 MB / 0.9972 GB, free: 14.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008299/3.383, allocations: 349.9 kB / 0.9976 GB, free: 14.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002346/3.386, allocations: 319 kB / 0.9979 GB, free: 13.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.003875/3.389, allocations: 486.2 kB / 0.9983 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002873/3.392, allocations: 451.7 kB / 0.9988 GB, free: 13.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04428/3.437, allocations: 12.83 MB / 1.011 GB, free: 2.035 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003701/3.437, allocations: 183.4 kB / 1.011 GB, free: 1.879 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/3.437, allocations: 0 / 1.011 GB, free: 1.879 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001435/3.437, allocations: 30.14 kB / 1.012 GB, free: 1.879 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4543/3.892, allocations: 24.9 MB / 1.036 GB, free: 92.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.078e-05/3.892, allocations: 3.219 kB / 1.036 GB, free: 92.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00749/3.899, allocations: 0.8093 MB / 1.037 GB, free: 92.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/3.912, allocations: 3.892 MB / 1.04 GB, free: 91.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001715/3.913, allocations: 149 kB / 1.041 GB, free: 91.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01733/3.931, allocations: 9.505 MB / 1.05 GB, free: 89.88 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/3.931, allocations: 4.656 kB / 1.05 GB, free: 89.88 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04847/3.979, allocations: 19.39 MB / 1.069 GB, free: 88.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005836/3.985, allocations: 1.476 MB / 1.07 GB, free: 88.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002572/3.988, allocations: 106.2 kB / 1.07 GB, free: 88.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006418/3.994, allocations: 268.5 kB / 1.071 GB, free: 88.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002562/3.997, allocations: 0.5079 MB / 1.071 GB, free: 88.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001562/3.998, allocations: 192.1 kB / 1.071 GB, free: 88.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004744/4.003, allocations: 1.831 MB / 1.073 GB, free: 87.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.22e-07/4.003, allocations: 3.562 kB / 1.073 GB, free: 87.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01073/4.014, allocations: 1.72 MB / 1.075 GB, free: 87.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0529/4.067, allocations: 21.33 MB / 1.096 GB, free: 77.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03092/4.098, allocations: 11.03 MB / 1.106 GB, free: 73.21 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/4.098, allocations: 0 / 1.106 GB, free: 73.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01713/4.115, allocations: 5.659 MB / 1.112 GB, free: 71.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008454/4.124, allocations: 0.8462 MB / 1.113 GB, free: 70.79 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06208/4.186, allocations: 20.43 MB / 1.133 GB, free: 54.66 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01196/4.198, allocations: 6.345 MB / 1.139 GB, free: 49.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008674/4.207, allocations: 3.425 MB / 1.142 GB, free: 46.71 MB / 474.7 MB Notification: Performance of SimCode: time 1.072e-06/4.207, allocations: 0 / 1.142 GB, free: 46.71 MB / 474.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 OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:476:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:476:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFMU.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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o] Error 1