Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.798e-05, allocations: 4 kB / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 50.41 MB / 342.7 MB, free: 6.281 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5249/0.6386, allocations: 125.8 MB / 468.5 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/0.639, allocations: 97.88 kB / 468.5 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.001/1.64, allocations: 194.1 MB / 0.6471 GB, free: 43.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.64, allocations: 4 kB / 0.6471 GB, free: 43.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008278/1.641, allocations: 207.8 kB / 0.6473 GB, free: 43.29 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03431/1.675, allocations: 7.936 MB / 0.6551 GB, free: 35.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.675, allocations: 12.02 kB / 0.6551 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00493/1.68, allocations: 1.177 MB / 0.6562 GB, free: 34.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/1.696, allocations: 1.901 MB / 0.6581 GB, free: 32.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02536/1.722, allocations: 7.042 MB / 0.665 GB, free: 25.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008183/1.723, allocations: 0.6422 MB / 0.6656 GB, free: 24.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003629/1.726, allocations: 0.8436 MB / 0.6664 GB, free: 23.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03674/1.763, allocations: 10.81 MB / 0.677 GB, free: 12.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000388/1.763, allocations: 11.91 kB / 0.677 GB, free: 12.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003042/1.767, allocations: 375.9 kB / 0.6773 GB, free: 12.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004201/1.767, allocations: 373.5 kB / 0.6777 GB, free: 11.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02857/1.796, allocations: 8.645 MB / 0.6861 GB, free: 3.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4564/2.252, allocations: 36.03 MB / 0.7213 GB, free: 40.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0223/2.274, allocations: 16.76 MB / 0.7377 GB, free: 28.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008839/2.283, allocations: 3.39 MB / 0.741 GB, free: 28.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02599/2.309, allocations: 9.599 MB / 0.7504 GB, free: 26.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.531e-05/2.309, allocations: 65.2 kB / 0.7504 GB, free: 26.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=298): time 7.855e-06/2.309, allocations: 1.781 kB / 0.7504 GB, free: 26.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=350): time 0.03538/2.345, allocations: 11.59 MB / 0.7618 GB, free: 23.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/2.345, allocations: 90.08 kB / 0.7619 GB, free: 23.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009121/2.354, allocations: 3.834 MB / 0.7656 GB, free: 21.71 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007652/2.355, allocations: 86.98 kB / 0.7657 GB, free: 21.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002727/2.358, allocations: 3.613 MB / 0.7692 GB, free: 18.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001644/2.359, allocations: 1.194 MB / 0.7704 GB, free: 18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004481/2.36, allocations: 90.22 kB / 0.7705 GB, free: 17.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002734/2.36, allocations: 484.1 kB / 0.7709 GB, free: 17.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00429/2.364, allocations: 1.734 MB / 0.7726 GB, free: 16.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005306/2.37, allocations: 3.137 MB / 0.7757 GB, free: 14.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005674/2.375, allocations: 2.31 MB / 0.7779 GB, free: 13.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.063e-05/2.376, allocations: 11.09 kB / 0.7779 GB, free: 13.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01501/2.391, allocations: 5.73 MB / 0.7835 GB, free: 11.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.1e-05/2.391, allocations: 32.11 kB / 0.7836 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.617e-05/2.391, allocations: 47.88 kB / 0.7836 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003015/2.394, allocations: 0.7284 MB / 0.7843 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007731/2.402, allocations: 1.038 MB / 0.7853 GB, free: 11.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/2.416, allocations: 10.05 MB / 0.7952 GB, free: 3.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006744/2.422, allocations: 255.9 kB / 0.7954 GB, free: 3.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009611/2.423, allocations: 202.5 kB / 0.7956 GB, free: 3.035 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * 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.001025/2.425, allocations: 384.3 kB / 0.796 GB, free: 2.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/2.426, allocations: 485.3 kB / 0.7964 GB, free: 2.523 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01308/2.439, allocations: 5.107 MB / 0.8014 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-05/2.439, allocations: 38.62 kB / 0.8015 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-05/2.439, allocations: 12.5 kB / 0.8015 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.368e-05/2.439, allocations: 25.5 kB / 0.8015 GB, free: 264 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0367/2.476, allocations: 12.58 MB / 0.8138 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.842e-05/2.476, allocations: 9.047 kB / 0.8138 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005224/2.481, allocations: 0.6065 MB / 0.8144 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003804/2.485, allocations: 0.8892 MB / 0.8152 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006399/2.486, allocations: 80.03 kB / 0.8153 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02311/2.509, allocations: 13.98 MB / 0.829 GB, free: 4 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/2.509, allocations: 11.28 kB / 0.829 GB, free: 0 / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02046/2.53, allocations: 8.049 MB / 0.8368 GB, free: 8.348 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004238/2.534, allocations: 0.9596 MB / 0.8378 GB, free: 7.465 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001643/2.536, allocations: 68 kB / 0.8379 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005174/2.541, allocations: 214.1 kB / 0.8381 GB, free: 7.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000998/2.542, allocations: 266.8 kB / 0.8383 GB, free: 7.066 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003858/2.542, allocations: 102.5 kB / 0.8384 GB, free: 6.977 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007971/2.55, allocations: 2.893 MB / 0.8412 GB, free: 4.363 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.55, allocations: 0 / 0.8412 GB, free: 4.363 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009347/2.56, allocations: 1.535 MB / 0.8427 GB, free: 2.844 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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.02642/2.586, allocations: 10.32 MB / 0.8528 GB, free: 9.812 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01384/2.6, allocations: 5.158 MB / 0.8578 GB, free: 4.883 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/2.6, allocations: 4 kB / 0.8578 GB, free: 4.879 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008614/2.609, allocations: 3.156 MB / 0.8609 GB, free: 1.906 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00941/2.618, allocations: 1.054 MB / 0.862 GB, free: 1.066 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4085/3.027, allocations: 14.39 MB / 0.876 GB, free: 91.88 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01312/3.04, allocations: 5.102 MB / 0.881 GB, free: 91.04 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008172/3.048, allocations: 3.319 MB / 0.8842 GB, free: 91.04 MB / 490.7 MB Notification: Performance of SimCode: time 2.034e-06/3.048, allocations: 0 / 0.8842 GB, free: 91.04 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_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseFunctions.cpp:366:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseFunctions.cpp:343:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseFunctions.cpp:403:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseFunctions.cpp:380:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseFMU.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_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_PolyphaseCalcHelperMain.o] Error 1