Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.526e-05, allocations: 5.406 kB / 255.4 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09769/0.09776, allocations: 44.51 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5305/0.6283, allocations: 151.8 MB / 451.7 MB, free: 8.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004725/0.6288, allocations: 97.83 kB / 451.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.848/2.476, allocations: 389.6 MB / 0.8218 GB, free: 25.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/2.476, allocations: 0 / 0.8218 GB, free: 25.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000956/2.477, allocations: 291.4 kB / 0.822 GB, free: 24.85 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05199/2.529, allocations: 11.23 MB / 0.833 GB, free: 13.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/2.53, allocations: 11.97 kB / 0.833 GB, free: 13.51 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009826/2.539, allocations: 1.955 MB / 0.8349 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04654/2.586, allocations: 5.202 MB / 0.84 GB, free: 6.316 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4014/2.987, allocations: 9.616 MB / 0.8494 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001804/2.989, allocations: 0.899 MB / 0.8503 GB, free: 26.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006608/2.996, allocations: 1.173 MB / 0.8514 GB, free: 26.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06791/3.064, allocations: 19.34 MB / 0.8703 GB, free: 25.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008117/3.065, allocations: 20.41 kB / 0.8703 GB, free: 25.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005252/3.07, allocations: 0.5056 MB / 0.8708 GB, free: 25.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001253/3.071, allocations: 0.7662 MB / 0.8716 GB, free: 25.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05205/3.123, allocations: 17.07 MB / 0.8882 GB, free: 25.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1618/3.285, allocations: 63.22 MB / 0.95 GB, free: 0.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0417/3.327, allocations: 22.24 MB / 0.9717 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02693/3.354, allocations: 7.723 MB / 0.9792 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07348/3.427, allocations: 22.93 MB / 1.002 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001187/3.428, allocations: 105.3 kB / 1.002 GB, free: 13.83 MB / 474.7 MB Notification: Performance of pre-optimization done (n=746): time 1.215e-05/3.428, allocations: 0 / 1.002 GB, free: 13.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=756): time 0.4495/3.877, allocations: 26 MB / 1.027 GB, free: 69.41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/3.877, allocations: 147.1 kB / 1.027 GB, free: 69.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01254/3.89, allocations: 3.867 MB / 1.031 GB, free: 68.97 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001755/3.892, allocations: 131 kB / 1.031 GB, free: 68.94 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004128/3.896, allocations: 4.519 MB / 1.036 GB, free: 66.68 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00419/3.9, allocations: 2.512 MB / 1.038 GB, free: 65.05 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00195/3.902, allocations: 143.8 kB / 1.038 GB, free: 65.05 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009966/3.903, allocations: 0.6369 MB / 1.039 GB, free: 64.72 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01272/3.916, allocations: 4.722 MB / 1.043 GB, free: 64.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01458/3.93, allocations: 6.577 MB / 1.05 GB, free: 62.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01501/3.946, allocations: 5.877 MB / 1.056 GB, free: 62.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/3.946, allocations: 13.59 kB / 1.056 GB, free: 62.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.0398/3.986, allocations: 13.94 MB / 1.069 GB, free: 61.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.842e-05/3.986, allocations: 25.34 kB / 1.069 GB, free: 61.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/3.986, allocations: 54.41 kB / 1.069 GB, free: 61.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/3.997, allocations: 3.358 MB / 1.073 GB, free: 61.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01163/4.009, allocations: 1.477 MB / 1.074 GB, free: 61.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01926/4.028, allocations: 13.82 MB / 1.087 GB, free: 54.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009553/4.038, allocations: 404.2 kB / 1.088 GB, free: 54.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002332/4.04, allocations: 334.1 kB / 1.088 GB, free: 54.85 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 (785): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.004195/4.044, allocations: 0.5192 MB / 1.089 GB, free: 54.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00237/4.047, allocations: 0.5862 MB / 1.089 GB, free: 54.39 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03652/4.083, allocations: 13.47 MB / 1.102 GB, free: 52.67 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02599/4.109, allocations: 10.31 MB / 1.112 GB, free: 48.31 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.855e-05/4.109, allocations: 3.844 kB / 1.112 GB, free: 48.31 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001646/4.11, allocations: 33.42 kB / 1.113 GB, free: 48.31 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07819/4.188, allocations: 27.91 MB / 1.14 GB, free: 36.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.213e-05/4.188, allocations: 7.25 kB / 1.14 GB, free: 36.01 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008498/4.196, allocations: 0.9392 MB / 1.141 GB, free: 35.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01165/4.208, allocations: 3.453 MB / 1.144 GB, free: 34.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001888/4.21, allocations: 170.2 kB / 1.144 GB, free: 34.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0242/4.234, allocations: 18.21 MB / 1.162 GB, free: 17.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/4.234, allocations: 7.844 kB / 1.162 GB, free: 17.26 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05962/4.294, allocations: 21.13 MB / 1.183 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007216/4.301, allocations: 1.73 MB / 1.184 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003208/4.304, allocations: 119.7 kB / 1.184 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008105/4.313, allocations: 310.7 kB / 1.185 GB, free: 13.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00321/4.316, allocations: 0.552 MB / 1.185 GB, free: 13.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001996/4.318, allocations: 207.8 kB / 1.185 GB, free: 13.39 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009152/4.327, allocations: 2.903 MB / 1.188 GB, free: 10.78 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.51e-07/4.327, allocations: 0 / 1.188 GB, free: 10.78 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01409/4.341, allocations: 2.145 MB / 1.19 GB, free: 8.648 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (504): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.4737/4.815, allocations: 23.89 MB / 1.214 GB, free: 80.19 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03283/4.848, allocations: 11.98 MB / 1.225 GB, free: 79.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/4.848, allocations: 0 / 1.225 GB, free: 79.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01846/4.866, allocations: 6.562 MB / 1.232 GB, free: 78.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01213/4.879, allocations: 1.309 MB / 1.233 GB, free: 78.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07936/4.958, allocations: 24.19 MB / 1.257 GB, free: 75.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01674/4.975, allocations: 7.536 MB / 1.264 GB, free: 74.01 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01196/4.987, allocations: 4.488 MB / 1.269 GB, free: 74 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/4.987, allocations: 4 kB / 1.269 GB, free: 74 MB / 490.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_MainsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = 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_MainsFunctions.cpp:637:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = 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_MainsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFMU.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_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o] Error 1