Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.293e-05, allocations: 4 kB / 292.3 MB, free: 8.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 50.41 MB / 342.7 MB, free: 6.273 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5236/0.6311, allocations: 137.2 MB / 479.8 MB, free: 5.316 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003786/0.6315, allocations: 97.81 kB / 479.9 MB, free: 5.266 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.652/2.284, allocations: 321.5 MB / 0.7826 GB, free: 45.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.091e-06/2.284, allocations: 0 / 0.7826 GB, free: 45.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006613/2.285, allocations: 211.1 kB / 0.7828 GB, free: 45.16 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.04022/2.325, allocations: 8.423 MB / 0.791 GB, free: 42.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/2.325, allocations: 10.81 kB / 0.7911 GB, free: 42.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007255/2.332, allocations: 1.525 MB / 0.7925 GB, free: 41.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03265/2.365, allocations: 3.916 MB / 0.7964 GB, free: 40.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02572/2.391, allocations: 7.34 MB / 0.8035 GB, free: 36.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008742/2.392, allocations: 0.6728 MB / 0.8042 GB, free: 36.65 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004126/2.396, allocations: 0.8854 MB / 0.8051 GB, free: 36.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0457/2.442, allocations: 14.62 MB / 0.8193 GB, free: 26.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000501/2.442, allocations: 19.8 kB / 0.8194 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003609/2.446, allocations: 395.4 kB / 0.8197 GB, free: 25.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001029/2.447, allocations: 0.6854 MB / 0.8204 GB, free: 25.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03785/2.485, allocations: 12.4 MB / 0.8325 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.483/2.968, allocations: 47.97 MB / 0.8794 GB, free: 36.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03243/3, allocations: 28.4 MB / 0.9071 GB, free: 27.35 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00768/3.008, allocations: 2.992 MB / 0.91 GB, free: 27.31 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007032/3.009, allocations: 245.4 kB / 0.9102 GB, free: 27.12 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.867e-05/3.009, allocations: 77.66 kB / 0.9103 GB, free: 27.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.802e-06/3.009, allocations: 0 / 0.9103 GB, free: 27.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03058/3.039, allocations: 11.3 MB / 0.9214 GB, free: 25.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/3.039, allocations: 93.78 kB / 0.9214 GB, free: 25.43 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008478/3.048, allocations: 3.127 MB / 0.9245 GB, free: 41.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000856/3.049, allocations: 86.64 kB / 0.9246 GB, free: 41.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003098/3.052, allocations: 3.922 MB / 0.9284 GB, free: 38.99 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001959/3.054, allocations: 1.346 MB / 0.9297 GB, free: 38.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006838/3.055, allocations: 124.1 kB / 0.9298 GB, free: 38.14 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005191/3.055, allocations: 0.5535 MB / 0.9304 GB, free: 37.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006206/3.061, allocations: 2.505 MB / 0.9328 GB, free: 37.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008362/3.07, allocations: 4.929 MB / 0.9376 GB, free: 34.78 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008505/3.078, allocations: 3.719 MB / 0.9413 GB, free: 34.72 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/3.079, allocations: 23.25 kB / 0.9413 GB, free: 34.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02241/3.101, allocations: 8.093 MB / 0.9492 GB, free: 34.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.048e-05/3.101, allocations: 39.66 kB / 0.9492 GB, free: 34.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001616/3.101, allocations: 85.28 kB / 0.9493 GB, free: 34.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00386/3.105, allocations: 0.8939 MB / 0.9502 GB, free: 34.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009484/3.115, allocations: 1.353 MB / 0.9515 GB, free: 34.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01681/3.132, allocations: 7.52 MB / 0.9589 GB, free: 32.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007267/3.139, allocations: 331.2 kB / 0.9592 GB, free: 32.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001484/3.14, allocations: 307.6 kB / 0.9595 GB, free: 32.81 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001555/3.142, allocations: 0.4954 MB / 0.9599 GB, free: 32.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/3.143, allocations: 407.2 kB / 0.9603 GB, free: 32.44 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/3.16, allocations: 5.856 MB / 0.9661 GB, free: 32.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.422e-05/3.16, allocations: 39.91 kB / 0.9661 GB, free: 32.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/3.16, allocations: 7.125 kB / 0.9661 GB, free: 32.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.747e-05/3.16, allocations: 26.86 kB / 0.9661 GB, free: 32.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04339/3.203, allocations: 15.31 MB / 0.9811 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.814e-05/3.203, allocations: 7.062 kB / 0.9811 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005793/3.209, allocations: 0.6868 MB / 0.9818 GB, free: 27.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003326/3.213, allocations: 0.6823 MB / 0.9824 GB, free: 26.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006944/3.213, allocations: 89.78 kB / 0.9825 GB, free: 26.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/3.227, allocations: 6.148 MB / 0.9885 GB, free: 23.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.189e-05/3.227, allocations: 9.156 kB / 0.9885 GB, free: 23.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02069/3.247, allocations: 8.922 MB / 0.9972 GB, free: 19.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003344/3.251, allocations: 0.8798 MB / 0.9981 GB, free: 18.63 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001226/3.252, allocations: 76.5 kB / 0.9982 GB, free: 18.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004234/3.256, allocations: 190.2 kB / 0.9983 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009008/3.257, allocations: 266.9 kB / 0.9986 GB, free: 18.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003645/3.258, allocations: 116.4 kB / 0.9987 GB, free: 18.45 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005637/3.263, allocations: 2.329 MB / 1.001 GB, free: 17.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.483e-06/3.263, allocations: 0 / 1.001 GB, free: 17.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009344/3.273, allocations: 1.599 MB / 1.003 GB, free: 17.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02277/3.296, allocations: 11.22 MB / 1.014 GB, free: 10.17 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01752/3.313, allocations: 6.216 MB / 1.02 GB, free: 4.637 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/3.313, allocations: 4 kB / 1.02 GB, free: 4.633 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01056/3.324, allocations: 2.794 MB / 1.022 GB, free: 2.094 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01048/3.334, allocations: 0.8496 MB / 1.023 GB, free: 1.422 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06214/3.396, allocations: 16.17 MB / 1.039 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01292/3.409, allocations: 5.943 MB / 1.045 GB, free: 284 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3729/3.782, allocations: 3.887 MB / 1.049 GB, free: 98.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.044e-06/3.782, allocations: 0 / 1.049 GB, free: 98.8 MB / 0.4948 GB 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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:524:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp134 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:524:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp134 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o] Error 1