Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.313e-05/3.315e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1167, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5355/0.6522, allocations: 137.6 MB / 480.2 MB, free: 5.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.6527, allocations: 96 kB / 480.3 MB, free: 5.629 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8185/1.471, allocations: 131.6 MB / 0.5975 GB, free: 93.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.471, allocations: 0 / 0.5975 GB, free: 93.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006032/1.472, allocations: 148.1 kB / 0.5977 GB, free: 93.36 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02432/1.496, allocations: 5.434 MB / 0.603 GB, free: 89.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/1.496, allocations: 8.031 kB / 0.603 GB, free: 89.52 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003876/1.5, allocations: 0.7707 MB / 0.6037 GB, free: 88.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/1.511, allocations: 1.148 MB / 0.6049 GB, free: 87.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02041/1.531, allocations: 4.917 MB / 0.6097 GB, free: 82.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006042/1.532, allocations: 425.3 kB / 0.6101 GB, free: 82.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002718/1.534, allocations: 0.5531 MB / 0.6106 GB, free: 81.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02365/1.558, allocations: 6.989 MB / 0.6174 GB, free: 74.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002608/1.558, allocations: 11.91 kB / 0.6174 GB, free: 74.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001509/1.56, allocations: 240 kB / 0.6177 GB, free: 74.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002886/1.56, allocations: 255.2 kB / 0.6179 GB, free: 74.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/1.579, allocations: 5.532 MB / 0.6233 GB, free: 68.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06331/1.642, allocations: 23.92 MB / 0.6467 GB, free: 44.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/1.654, allocations: 8.611 MB / 0.6551 GB, free: 34.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006017/1.661, allocations: 2.227 MB / 0.6573 GB, free: 32.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02105/1.682, allocations: 6.961 MB / 0.6641 GB, free: 25.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/1.682, allocations: 56.56 kB / 0.6641 GB, free: 25.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=237): time 5.651e-06/1.682, allocations: 4 kB / 0.6641 GB, free: 25.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=288): time 0.04887/1.731, allocations: 12.12 MB / 0.676 GB, free: 13.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/1.731, allocations: 85.64 kB / 0.676 GB, free: 12.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007197/1.738, allocations: 2.941 MB / 0.6789 GB, free: 10.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006676/1.739, allocations: 73.7 kB / 0.679 GB, free: 9.957 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00206/1.741, allocations: 2.485 MB / 0.6814 GB, free: 7.457 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001357/1.742, allocations: 0.9811 MB / 0.6824 GB, free: 6.484 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003647/1.743, allocations: 76 kB / 0.6824 GB, free: 6.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/1.743, allocations: 454.7 kB / 0.6829 GB, free: 5.957 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003592/1.746, allocations: 1.472 MB / 0.6843 GB, free: 4.484 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004134/1.751, allocations: 2.636 MB / 0.6869 GB, free: 1.328 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3586/2.109, allocations: 1.948 MB / 0.6888 GB, free: 83.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.358e-05/2.109, allocations: 10.41 kB / 0.6888 GB, free: 83.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.01601/2.125, allocations: 5.056 MB / 0.6937 GB, free: 83.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/2.125, allocations: 20.75 kB / 0.6937 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/2.126, allocations: 47.72 kB / 0.6938 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004062/2.13, allocations: 0.8697 MB / 0.6946 GB, free: 83.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006955/2.137, allocations: 0.8557 MB / 0.6955 GB, free: 83.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01842/2.155, allocations: 9.782 MB / 0.705 GB, free: 79.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005739/2.161, allocations: 245.8 kB / 0.7053 GB, free: 79.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008665/2.162, allocations: 164.8 kB / 0.7054 GB, free: 79.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009279/2.163, allocations: 329.2 kB / 0.7057 GB, free: 79.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/2.164, allocations: 391.5 kB / 0.7061 GB, free: 79.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/2.176, allocations: 4.553 MB / 0.7106 GB, free: 79.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.147e-05/2.176, allocations: 31.42 kB / 0.7106 GB, free: 79.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/2.176, allocations: 11.06 kB / 0.7106 GB, free: 79.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.803e-05/2.176, allocations: 15.28 kB / 0.7106 GB, free: 79.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03968/2.216, allocations: 9.978 MB / 0.7204 GB, free: 78.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01354/2.23, allocations: 3.824 MB / 0.7241 GB, free: 77.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004476/2.234, allocations: 0.4909 MB / 0.7246 GB, free: 77.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004389/2.239, allocations: 0.9784 MB / 0.7255 GB, free: 77.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006298/2.239, allocations: 73.83 kB / 0.7256 GB, free: 77.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02114/2.26, allocations: 14.78 MB / 0.74 GB, free: 66.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/2.26, allocations: 6.344 kB / 0.74 GB, free: 66.88 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01642/2.277, allocations: 7.152 MB / 0.747 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003002/2.28, allocations: 0.7742 MB / 0.7478 GB, free: 62.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/2.281, allocations: 66.53 kB / 0.7478 GB, free: 62.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004509/2.286, allocations: 191.1 kB / 0.748 GB, free: 62.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009168/2.287, allocations: 211.6 kB / 0.7482 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003162/2.287, allocations: 87.2 kB / 0.7483 GB, free: 62.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005523/2.293, allocations: 2.213 MB / 0.7505 GB, free: 61.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.293, allocations: 0 / 0.7505 GB, free: 61.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007067/2.3, allocations: 1.207 MB / 0.7516 GB, free: 61.66 MB / 442.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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01796/2.318, allocations: 9.056 MB / 0.7605 GB, free: 56.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01144/2.329, allocations: 4.549 MB / 0.7649 GB, free: 54.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/2.329, allocations: 3.812 kB / 0.7649 GB, free: 54.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007462/2.337, allocations: 2.909 MB / 0.7678 GB, free: 52.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006778/2.344, allocations: 0.8313 MB / 0.7686 GB, free: 52.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/2.375, allocations: 9.889 MB / 0.7782 GB, free: 44.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006103/2.381, allocations: 3.539 MB / 0.7817 GB, free: 41.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005441/2.386, allocations: 2.258 MB / 0.7839 GB, free: 39.73 MB / 442.7 MB Notification: Performance of SimCode: time 2.124e-06/2.386, allocations: 0 / 0.7839 GB, free: 39.73 MB / 442.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_SMEE_GeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:375: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_SMEE_GeneratorFunctions.cpp:352:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:412: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_SMEE_GeneratorFunctions.cpp:389:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFMU.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_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1