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.868/1.868, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.811e-05/2.817e-05, allocations: 0 / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08744/0.08749, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4493/0.5368, allocations: 116.9 MB / 416.9 MB, free: 7.238 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5372, allocations: 84.08 kB / 416.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9757/1.513, allocations: 192.8 MB / 0.5955 GB, free: 55.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.513, allocations: 0 / 0.5955 GB, free: 55.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008566/1.514, allocations: 202.4 kB / 0.5957 GB, free: 55.56 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.0336/1.547, allocations: 7.9 MB / 0.6034 GB, free: 52.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/1.547, allocations: 7.781 kB / 0.6034 GB, free: 52.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004887/1.552, allocations: 1.163 MB / 0.6045 GB, free: 52.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/1.568, allocations: 1.905 MB / 0.6064 GB, free: 52.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02639/1.595, allocations: 7.045 MB / 0.6133 GB, free: 48.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008722/1.596, allocations: 0.6323 MB / 0.6139 GB, free: 48.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003656/1.599, allocations: 0.8432 MB / 0.6147 GB, free: 48.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03724/1.637, allocations: 10.8 MB / 0.6253 GB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005098/1.637, allocations: 7.531 kB / 0.6253 GB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003145/1.64, allocations: 372.3 kB / 0.6256 GB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000442/1.641, allocations: 374.5 kB / 0.626 GB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/1.67, allocations: 8.604 MB / 0.6344 GB, free: 35.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08949/1.759, allocations: 35.98 MB / 0.6695 GB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3234/2.083, allocations: 16.68 MB / 0.6858 GB, free: 36.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009814/2.093, allocations: 3.365 MB / 0.6891 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02771/2.12, allocations: 9.499 MB / 0.6984 GB, free: 34.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.827e-05/2.12, allocations: 67.36 kB / 0.6984 GB, free: 34.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 6.622e-06/2.12, allocations: 0 / 0.6984 GB, free: 34.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=345): time 0.03679/2.157, allocations: 11.51 MB / 0.7097 GB, free: 33.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/2.157, allocations: 90.77 kB / 0.7098 GB, free: 33.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009254/2.167, allocations: 3.822 MB / 0.7135 GB, free: 32.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007147/2.167, allocations: 84.95 kB / 0.7136 GB, free: 32.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0028/2.17, allocations: 3.624 MB / 0.7171 GB, free: 30.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001577/2.172, allocations: 1.178 MB / 0.7183 GB, free: 30.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004482/2.172, allocations: 89.16 kB / 0.7183 GB, free: 30.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002828/2.173, allocations: 489.3 kB / 0.7188 GB, free: 29.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004359/2.177, allocations: 1.712 MB / 0.7205 GB, free: 29.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005595/2.183, allocations: 3.12 MB / 0.7235 GB, free: 28.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005729/2.188, allocations: 2.298 MB / 0.7258 GB, free: 27.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.423e-05/2.189, allocations: 13.22 kB / 0.7258 GB, free: 27.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=571) (initialization): time 0.015/2.204, allocations: 5.693 MB / 0.7314 GB, free: 26.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.357e-05/2.204, allocations: 23.41 kB / 0.7314 GB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.09e-05/2.204, allocations: 48.84 kB / 0.7314 GB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002986/2.207, allocations: 0.7371 MB / 0.7321 GB, free: 26.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007607/2.214, allocations: 1.046 MB / 0.7332 GB, free: 26.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/2.23, allocations: 10.03 MB / 0.743 GB, free: 34.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006358/2.236, allocations: 257 kB / 0.7432 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008855/2.237, allocations: 199.2 kB / 0.7434 GB, free: 34.55 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.001003/2.238, allocations: 382.5 kB / 0.7438 GB, free: 34.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/2.24, allocations: 486.1 kB / 0.7442 GB, free: 34.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/2.253, allocations: 5.057 MB / 0.7492 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/2.253, allocations: 40.55 kB / 0.7492 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/2.253, allocations: 11.31 kB / 0.7492 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.164e-05/2.253, allocations: 14.44 kB / 0.7492 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03433/2.287, allocations: 12.39 MB / 0.7613 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.244e-05/2.287, allocations: 4.5 kB / 0.7613 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005147/2.293, allocations: 0.5995 MB / 0.7619 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003599/2.296, allocations: 0.9043 MB / 0.7628 GB, free: 26.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005585/2.297, allocations: 84.39 kB / 0.7629 GB, free: 26.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0213/2.318, allocations: 13.95 MB / 0.7765 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.862e-06/2.318, allocations: 10.19 kB / 0.7765 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01677/2.335, allocations: 8.057 MB / 0.7844 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003332/2.338, allocations: 0.9525 MB / 0.7853 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001226/2.34, allocations: 69.78 kB / 0.7854 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004893/2.344, allocations: 209.2 kB / 0.7856 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008699/2.345, allocations: 271.2 kB / 0.7858 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003267/2.346, allocations: 98.11 kB / 0.7859 GB, free: 10.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006451/2.352, allocations: 2.893 MB / 0.7888 GB, free: 9.191 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.352, allocations: 0 / 0.7888 GB, free: 9.191 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008017/2.36, allocations: 1.532 MB / 0.7903 GB, free: 9.035 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.01978/2.38, allocations: 10.15 MB / 0.8002 GB, free: 2.141 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01958/2.4, allocations: 5.485 MB / 0.8055 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/2.4, allocations: 1.812 kB / 0.8055 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008443/2.408, allocations: 3.163 MB / 0.8086 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008536/2.417, allocations: 1.053 MB / 0.8096 GB, free: 10.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05437/2.471, allocations: 14.02 MB / 0.8233 GB, free: 14.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01465/2.486, allocations: 5.089 MB / 0.8283 GB, free: 10.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01172/2.498, allocations: 3.329 MB / 0.8316 GB, free: 7.16 MB / 458.7 MB Notification: Performance of SimCode: time 1.853e-06/2.498, allocations: 0 / 0.8316 GB, free: 7.16 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:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:343:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:403:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:380:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 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