Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.798/1.798, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.093e-05/3.098e-05, allocations: 7.984 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.5596, allocations: 116.9 MB / 416.8 MB, free: 7.609 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.5599, allocations: 86.8 kB / 416.9 MB, free: 7.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9639/1.524, allocations: 192.8 MB / 0.5954 GB, free: 55.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.245e-06/1.524, allocations: 0 / 0.5954 GB, free: 55.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008075/1.525, allocations: 210.7 kB / 0.5956 GB, free: 55.87 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03355/1.558, allocations: 7.895 MB / 0.6034 GB, free: 53.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.379e-05/1.558, allocations: 11.38 kB / 0.6034 GB, free: 53.03 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004781/1.563, allocations: 1.167 MB / 0.6045 GB, free: 52.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01583/1.579, allocations: 1.9 MB / 0.6064 GB, free: 52.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02627/1.605, allocations: 7.036 MB / 0.6132 GB, free: 49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008312/1.606, allocations: 0.6383 MB / 0.6139 GB, free: 48.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003674/1.61, allocations: 0.8391 MB / 0.6147 GB, free: 48.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03733/1.647, allocations: 10.91 MB / 0.6253 GB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005023/1.648, allocations: 6.688 kB / 0.6253 GB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00309/1.651, allocations: 377.8 kB / 0.6257 GB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004862/1.651, allocations: 366.9 kB / 0.626 GB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0299/1.681, allocations: 8.713 MB / 0.6346 GB, free: 35.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09486/1.776, allocations: 35.99 MB / 0.6697 GB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3324/2.109, allocations: 16.72 MB / 0.686 GB, free: 36.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01004/2.119, allocations: 3.359 MB / 0.6893 GB, free: 36.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02977/2.149, allocations: 9.5 MB / 0.6986 GB, free: 35.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/2.149, allocations: 63.2 kB / 0.6986 GB, free: 35.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 6.582e-06/2.149, allocations: 1.219 kB / 0.6986 GB, free: 35.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=345): time 0.03638/2.185, allocations: 11.51 MB / 0.7099 GB, free: 33.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/2.185, allocations: 93.55 kB / 0.71 GB, free: 33.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008512/2.194, allocations: 3.82 MB / 0.7137 GB, free: 33.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007114/2.194, allocations: 88.05 kB / 0.7138 GB, free: 32.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002602/2.197, allocations: 3.624 MB / 0.7173 GB, free: 31.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001567/2.199, allocations: 1.173 MB / 0.7185 GB, free: 30.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004353/2.199, allocations: 87.41 kB / 0.7186 GB, free: 30.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002736/2.199, allocations: 498.8 kB / 0.719 GB, free: 30.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004363/2.204, allocations: 1.708 MB / 0.7207 GB, free: 30.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00557/2.209, allocations: 3.148 MB / 0.7238 GB, free: 28.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005778/2.215, allocations: 2.301 MB / 0.726 GB, free: 28.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-05/2.215, allocations: 17.48 kB / 0.726 GB, free: 28.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=571) (initialization): time 0.0157/2.231, allocations: 5.814 MB / 0.7317 GB, free: 26.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.533e-05/2.231, allocations: 24.12 kB / 0.7317 GB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-05/2.231, allocations: 51.53 kB / 0.7318 GB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003052/2.234, allocations: 0.7386 MB / 0.7325 GB, free: 26.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007685/2.242, allocations: 1.042 MB / 0.7335 GB, free: 26.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01616/2.258, allocations: 10.04 MB / 0.7433 GB, free: 34.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006707/2.265, allocations: 254.8 kB / 0.7436 GB, free: 34.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/2.266, allocations: 209 kB / 0.7438 GB, free: 34.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (518): * Single equations (assignments): 510 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00116/2.267, allocations: 383.3 kB / 0.7441 GB, free: 34.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001577/2.269, allocations: 484.3 kB / 0.7446 GB, free: 34.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/2.283, allocations: 5.051 MB / 0.7495 GB, free: 31.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.739e-05/2.284, allocations: 36.33 kB / 0.7496 GB, free: 31.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.991e-05/2.284, allocations: 14.44 kB / 0.7496 GB, free: 31.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.598e-05/2.284, allocations: 17.39 kB / 0.7496 GB, free: 31.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03118/2.315, allocations: 12.41 MB / 0.7617 GB, free: 26.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.242e-05/2.315, allocations: 8.812 kB / 0.7617 GB, free: 26.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00506/2.32, allocations: 0.59 MB / 0.7623 GB, free: 26.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00362/2.324, allocations: 0.8996 MB / 0.7632 GB, free: 26.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004699/2.324, allocations: 88.52 kB / 0.7633 GB, free: 26.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02112/2.345, allocations: 13.95 MB / 0.7769 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/2.345, allocations: 5.156 kB / 0.7769 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01705/2.362, allocations: 8.058 MB / 0.7848 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003466/2.366, allocations: 0.9578 MB / 0.7857 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00134/2.367, allocations: 69.75 kB / 0.7858 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004569/2.372, allocations: 203.7 kB / 0.786 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000843/2.373, allocations: 273 kB / 0.7862 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003286/2.373, allocations: 97 kB / 0.7863 GB, free: 10.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007311/2.38, allocations: 2.894 MB / 0.7891 GB, free: 9.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.213e-06/2.38, allocations: 0 / 0.7891 GB, free: 9.277 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008477/2.389, allocations: 1.527 MB / 0.7906 GB, free: 9.129 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02151/2.41, allocations: 10.16 MB / 0.8006 GB, free: 2.152 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02036/2.431, allocations: 5.618 MB / 0.806 GB, free: 14.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/2.431, allocations: 0.75 kB / 0.806 GB, free: 14.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009156/2.44, allocations: 3.245 MB / 0.8092 GB, free: 11.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008898/2.449, allocations: 1.053 MB / 0.8102 GB, free: 10.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05038/2.499, allocations: 14.07 MB / 0.824 GB, free: 13.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/2.511, allocations: 5.084 MB / 0.8289 GB, free: 10.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009029/2.52, allocations: 3.33 MB / 0.8322 GB, free: 7.004 MB / 458.7 MB Notification: Performance of SimCode: time 1.834e-06/2.52, allocations: 0 / 0.8322 GB, free: 7.004 MB / 458.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_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:366:34: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::cos(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:343:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:403:34: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? D_24tmpVar14_ = std::sin(D_24tmpVar13_); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:380:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFMU.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_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1