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.892/1.892, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.922e-05/2.928e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0922/0.09225, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.479/0.5713, allocations: 130 MB / 430 MB, free: 14.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003638/0.5717, allocations: 103.4 kB / 430.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.577/2.149, allocations: 332.6 MB / 0.7448 GB, free: 35.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/2.149, allocations: 3 kB / 0.7448 GB, free: 35.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006799/2.15, allocations: 218.1 kB / 0.745 GB, free: 35.34 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.0424/2.192, allocations: 8.747 MB / 0.7536 GB, free: 32.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/2.192, allocations: 7.469 kB / 0.7536 GB, free: 32.53 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007457/2.2, allocations: 1.418 MB / 0.755 GB, free: 32.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07366/2.273, allocations: 5.853 MB / 0.7607 GB, free: 31.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02685/2.3, allocations: 7.441 MB / 0.7679 GB, free: 30.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001184/2.301, allocations: 0.721 MB / 0.7686 GB, free: 30.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005015/2.306, allocations: 0.9326 MB / 0.7696 GB, free: 30.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05414/2.361, allocations: 16.72 MB / 0.7859 GB, free: 26.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005494/2.361, allocations: 15.09 kB / 0.7859 GB, free: 26.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004193/2.365, allocations: 418.2 kB / 0.7863 GB, free: 25.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00115/2.367, allocations: 0.718 MB / 0.787 GB, free: 25.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04608/2.413, allocations: 15.54 MB / 0.8022 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4727/2.885, allocations: 52.78 MB / 0.8537 GB, free: 33.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04953/2.935, allocations: 41.33 MB / 0.8941 GB, free: 32.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01673/2.952, allocations: 7.004 MB / 0.9009 GB, free: 32.85 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06219/3.014, allocations: 21.73 MB / 0.9221 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.354e-05/3.014, allocations: 91.92 kB / 0.9222 GB, free: 31.94 MB / 458.7 MB Notification: Performance of pre-optimization done (n=688): time 1.121e-05/3.014, allocations: 2.969 kB / 0.9222 GB, free: 31.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=696): time 0.0675/3.082, allocations: 22.72 MB / 0.9444 GB, free: 27.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/3.082, allocations: 113.3 kB / 0.9445 GB, free: 27.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006162/3.088, allocations: 2.439 MB / 0.9469 GB, free: 26.32 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001607/3.09, allocations: 116.2 kB / 0.947 GB, free: 26.22 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0026/3.092, allocations: 3.521 MB / 0.9504 GB, free: 23.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003817/3.096, allocations: 2.299 MB / 0.9527 GB, free: 21.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001503/3.098, allocations: 129.5 kB / 0.9528 GB, free: 21.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009429/3.099, allocations: 0.6103 MB / 0.9534 GB, free: 21.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01174/3.111, allocations: 4.458 MB / 0.9578 GB, free: 19.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01362/3.124, allocations: 6.226 MB / 0.9638 GB, free: 15.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/3.139, allocations: 5.56 MB / 0.9693 GB, free: 13.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.157e-05/3.139, allocations: 14.91 kB / 0.9693 GB, free: 13.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.0389/3.178, allocations: 13.23 MB / 0.9822 GB, free: 8.043 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/3.178, allocations: 30.11 kB / 0.9822 GB, free: 8.043 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/3.178, allocations: 54.86 kB / 0.9823 GB, free: 8.039 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01308/3.191, allocations: 3.979 MB / 0.9862 GB, free: 6.848 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00981/3.201, allocations: 1.22 MB / 0.9874 GB, free: 6.812 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01999/3.221, allocations: 9.656 MB / 0.9968 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008048/3.229, allocations: 356.8 kB / 0.9971 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002256/3.231, allocations: 312.5 kB / 0.9974 GB, free: 14.8 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.003071/3.234, allocations: 479.9 kB / 0.9979 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002066/3.236, allocations: 455.3 kB / 0.9983 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04096/3.277, allocations: 12.84 MB / 1.011 GB, free: 2.957 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003245/3.278, allocations: 182.2 kB / 1.011 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.739e-05/3.278, allocations: 0 / 1.011 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001348/3.278, allocations: 28.83 kB / 1.011 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.415/3.693, allocations: 25.06 MB / 1.036 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.619e-05/3.693, allocations: 7.016 kB / 1.036 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007564/3.701, allocations: 0.8064 MB / 1.036 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01282/3.714, allocations: 3.889 MB / 1.04 GB, free: 91.82 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001833/3.715, allocations: 157.9 kB / 1.04 GB, free: 91.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01769/3.733, allocations: 9.492 MB / 1.05 GB, free: 89.72 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.748e-06/3.733, allocations: 9.266 kB / 1.05 GB, free: 89.72 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05016/3.783, allocations: 19.4 MB / 1.068 GB, free: 88.65 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005632/3.789, allocations: 1.474 MB / 1.07 GB, free: 88.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002593/3.792, allocations: 104.9 kB / 1.07 GB, free: 88.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006541/3.798, allocations: 268 kB / 1.07 GB, free: 88.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002611/3.801, allocations: 0.5113 MB / 1.071 GB, free: 88.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001642/3.803, allocations: 190.1 kB / 1.071 GB, free: 88.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004807/3.808, allocations: 1.827 MB / 1.073 GB, free: 88.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.252e-06/3.808, allocations: 0 / 1.073 GB, free: 88.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0111/3.819, allocations: 1.723 MB / 1.074 GB, free: 88.29 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.05233/3.871, allocations: 21.35 MB / 1.095 GB, free: 78.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03036/3.901, allocations: 10.9 MB / 1.106 GB, free: 73.94 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/3.902, allocations: 1.562 kB / 1.106 GB, free: 73.94 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01711/3.919, allocations: 5.623 MB / 1.111 GB, free: 71.78 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008586/3.927, allocations: 0.8387 MB / 1.112 GB, free: 71.54 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06707/3.994, allocations: 20.41 MB / 1.132 GB, free: 56.35 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01356/4.008, allocations: 6.341 MB / 1.138 GB, free: 51.59 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009025/4.017, allocations: 3.422 MB / 1.142 GB, free: 48.42 MB / 474.7 MB Notification: Performance of SimCode: time 2.024e-06/4.017, allocations: 0 / 1.142 GB, free: 48.42 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