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 2.036/2.036, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.916e-05/2.934e-05, allocations: 4 kB / 249.7 MB, free: 15.17 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3254, allocations: 44.49 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2605/0.586, allocations: 129.3 MB / 423.5 MB, free: 476 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003936/0.5864, allocations: 99.92 kB / 423.6 MB, free: 376 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.999/2.585, allocations: 328.8 MB / 0.7348 GB, free: 45.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.045e-06/2.585, allocations: 0 / 0.7348 GB, free: 45.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001067/2.587, allocations: 217 kB / 0.735 GB, free: 45.09 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.04442/2.631, allocations: 8.738 MB / 0.7435 GB, free: 42.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/2.631, allocations: 13.78 kB / 0.7436 GB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04929/2.68, allocations: 5.836 MB / 0.7493 GB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02778/2.708, allocations: 7.441 MB / 0.7565 GB, free: 40.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000955/2.709, allocations: 324.1 kB / 0.7568 GB, free: 40.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005015/2.714, allocations: 0.5572 MB / 0.7574 GB, free: 40.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04146/2.756, allocations: 13.64 MB / 0.7707 GB, free: 40.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05339/2.809, allocations: 15.25 MB / 0.7856 GB, free: 39.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006627/2.81, allocations: 16.39 kB / 0.7856 GB, free: 39.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004302/2.814, allocations: 3.688 kB / 0.7856 GB, free: 39.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001233/2.816, allocations: 0.715 MB / 0.7863 GB, free: 38.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1632/2.979, allocations: 52.25 MB / 0.8373 GB, free: 3.543 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4068/3.386, allocations: 41.25 MB / 0.8776 GB, free: 24.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01858/3.404, allocations: 7.005 MB / 0.8845 GB, free: 23.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06537/3.47, allocations: 22.35 MB / 0.9063 GB, free: 23.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001089/3.47, allocations: 97.38 kB / 0.9064 GB, free: 23.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=688): time 1.165e-05/3.47, allocations: 2.625 kB / 0.9064 GB, free: 23.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=696): time 0.08411/3.554, allocations: 25.5 MB / 0.9313 GB, free: 20.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/3.554, allocations: 110.6 kB / 0.9314 GB, free: 20.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005494/3.56, allocations: 2.145 MB / 0.9335 GB, free: 19.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001639/3.561, allocations: 33.02 kB / 0.9335 GB, free: 19.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002723/3.564, allocations: 3.542 MB / 0.937 GB, free: 17.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003855/3.568, allocations: 2.223 MB / 0.9391 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001677/3.57, allocations: 0 / 0.9391 GB, free: 15.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009008/3.571, allocations: 0.6081 MB / 0.9397 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01455/3.585, allocations: 4.543 MB / 0.9442 GB, free: 12.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01548/3.601, allocations: 6.306 MB / 0.9503 GB, free: 8.855 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01938/3.62, allocations: 6.665 MB / 0.9568 GB, free: 6.379 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-05/3.62, allocations: 17.78 kB / 0.9569 GB, free: 6.379 MB / 426.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04247/3.663, allocations: 14.16 MB / 0.9707 GB, free: 1.094 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.257e-05/3.663, allocations: 30.44 kB / 0.9707 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/3.663, allocations: 54.69 kB / 0.9708 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01239/3.676, allocations: 3.961 MB / 0.9746 GB, free: 0 / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01038/3.686, allocations: 1.275 MB / 0.9759 GB, free: 0 / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01913/3.705, allocations: 9.957 MB / 0.9856 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008311/3.714, allocations: 267.8 kB / 0.9859 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002323/3.716, allocations: 322.1 kB / 0.9862 GB, free: 10.43 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starMQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpmQS.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real smpmQS.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real resistorQS.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] currentRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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.003253/3.719, allocations: 379.8 kB / 0.9865 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04251/3.762, allocations: 12.64 MB / 0.9989 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003067/3.765, allocations: 434.5 kB / 0.9993 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04783/3.813, allocations: 13.71 MB / 1.013 GB, free: 3.594 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003434/3.813, allocations: 188.4 kB / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/3.813, allocations: 0 / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001485/3.813, allocations: 31.27 kB / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4407/4.254, allocations: 24.65 MB / 1.037 GB, free: 99.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-05/4.254, allocations: 6.984 kB / 1.037 GB, free: 99.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00845/4.263, allocations: 0.8611 MB / 1.038 GB, free: 99.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01271/4.275, allocations: 3.847 MB / 1.042 GB, free: 99.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001719/4.277, allocations: 87.05 kB / 1.042 GB, free: 99.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01646/4.294, allocations: 9.822 MB / 1.051 GB, free: 97.09 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/4.294, allocations: 6.578 kB / 1.051 GB, free: 97.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05012/4.344, allocations: 20.53 MB / 1.071 GB, free: 96.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005851/4.35, allocations: 1.51 MB / 1.073 GB, free: 95.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003047/4.353, allocations: 11 kB / 1.073 GB, free: 95.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006806/4.36, allocations: 221.7 kB / 1.073 GB, free: 95.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002782/4.363, allocations: 0.5047 MB / 1.073 GB, free: 95.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001842/4.364, allocations: 194.1 kB / 1.074 GB, free: 95.92 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003974/4.368, allocations: 1.58 MB / 1.075 GB, free: 95.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.12e-07/4.368, allocations: 0 / 1.075 GB, free: 95.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01096/4.379, allocations: 1.502 MB / 1.077 GB, free: 95.77 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.05513/4.435, allocations: 22.32 MB / 1.098 GB, free: 92.58 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02915/4.464, allocations: 11.11 MB / 1.109 GB, free: 88.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/4.464, allocations: 3.031 kB / 1.109 GB, free: 88.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01674/4.481, allocations: 5.723 MB / 1.115 GB, free: 86.06 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008114/4.489, allocations: 0.6915 MB / 1.116 GB, free: 85.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06799/4.557, allocations: 20.23 MB / 1.135 GB, free: 78.21 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01372/4.571, allocations: 6.346 MB / 1.142 GB, free: 73.49 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01013/4.581, allocations: 3.419 MB / 1.145 GB, free: 70.33 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/4.581, allocations: 0 / 1.145 GB, free: 70.33 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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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/OMCompiler/build/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