Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.18e-05, allocations: 0 / 255.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09402, allocations: 44.5 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5229/0.6169, allocations: 161.1 MB / 461.1 MB, free: 28 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003871/0.6174, allocations: 96.31 kB / 461.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863/2.48, allocations: 394.9 MB / 0.8361 GB, free: 11.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.295e-06/2.48, allocations: 0 / 0.8361 GB, free: 11.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001058/2.481, allocations: 267.6 kB / 0.8363 GB, free: 10.8 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.05143/2.533, allocations: 10.27 MB / 0.8463 GB, free: 476 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/2.533, allocations: 8.031 kB / 0.8463 GB, free: 468 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.6841/3.217, allocations: 1.771 MB / 0.8481 GB, free: 27.82 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03986/3.257, allocations: 4.388 MB / 0.8524 GB, free: 27.24 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03543/3.292, allocations: 8.851 MB / 0.861 GB, free: 26.72 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001585/3.294, allocations: 0.8286 MB / 0.8618 GB, free: 26.7 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005828/3.3, allocations: 1.084 MB / 0.8629 GB, free: 26.69 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05805/3.358, allocations: 17.23 MB / 0.8797 GB, free: 25.36 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007103/3.359, allocations: 17.66 kB / 0.8797 GB, free: 25.35 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00467/3.363, allocations: 473.7 kB / 0.8802 GB, free: 25.35 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001092/3.364, allocations: 0.6947 MB / 0.8808 GB, free: 25.32 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04762/3.412, allocations: 14.96 MB / 0.8955 GB, free: 25.21 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1547/3.567, allocations: 58.1 MB / 0.9522 GB, free: 496 kB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03271/3.6, allocations: 17.08 MB / 0.9689 GB, free: 4.656 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01725/3.617, allocations: 6.178 MB / 0.9749 GB, free: 2.066 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0613/3.678, allocations: 18.96 MB / 0.9934 GB, free: 5.91 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001086/3.678, allocations: 90.69 kB / 0.9935 GB, free: 5.816 MB / 458.8 MB Notification: Performance of pre-optimization done (n=625): time 1.023e-05/3.678, allocations: 4 kB / 0.9935 GB, free: 5.812 MB / 458.8 MB Notification: Performance of matching and sorting (n=658): time 0.09053/3.769, allocations: 24.1 MB / 1.017 GB, free: 2.402 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3701/4.139, allocations: 2.932 MB / 1.02 GB, free: 70.8 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01242/4.151, allocations: 3.883 MB / 1.024 GB, free: 70.51 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002009/4.154, allocations: 113.2 kB / 1.024 GB, free: 70.48 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005126/4.159, allocations: 4.388 MB / 1.028 GB, free: 69.55 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00448/4.163, allocations: 2.198 MB / 1.03 GB, free: 68.14 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002047/4.165, allocations: 141.4 kB / 1.03 GB, free: 68.14 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001017/4.166, allocations: 0.6205 MB / 1.031 GB, free: 67.82 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0127/4.179, allocations: 4.362 MB / 1.035 GB, free: 67.8 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01472/4.194, allocations: 6.39 MB / 1.041 GB, free: 65.53 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01519/4.209, allocations: 5.499 MB / 1.047 GB, free: 65.41 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001162/4.209, allocations: 14.66 kB / 1.047 GB, free: 65.41 MB / 474.8 MB Notification: Performance of matching and sorting (n=996) (initialization): time 0.03863/4.248, allocations: 12.84 MB / 1.059 GB, free: 64.89 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8e-05/4.248, allocations: 31.88 kB / 1.059 GB, free: 64.89 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/4.248, allocations: 59.78 kB / 1.06 GB, free: 64.89 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008256/4.256, allocations: 2.399 MB / 1.062 GB, free: 64.84 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01217/4.269, allocations: 1.525 MB / 1.063 GB, free: 64.84 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/4.284, allocations: 10.4 MB / 1.073 GB, free: 60.05 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/4.296, allocations: 0.533 MB / 1.074 GB, free: 60.03 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002424/4.298, allocations: 347.5 kB / 1.074 GB, free: 60.02 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 722 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.003937/4.302, allocations: 0.5048 MB / 1.075 GB, free: 59.88 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002429/4.305, allocations: 0.5473 MB / 1.075 GB, free: 59.59 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03332/4.338, allocations: 11.73 MB / 1.087 GB, free: 58.97 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02881/4.367, allocations: 10.36 MB / 1.097 GB, free: 57.8 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.183e-05/4.367, allocations: 8.438 kB / 1.097 GB, free: 57.8 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000172/4.367, allocations: 30.52 kB / 1.097 GB, free: 57.8 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08384/4.451, allocations: 30.41 MB / 1.127 GB, free: 44.21 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.949e-05/4.451, allocations: 7.281 kB / 1.127 GB, free: 44.21 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008063/4.459, allocations: 0.8771 MB / 1.128 GB, free: 44.19 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009508/4.469, allocations: 2.657 MB / 1.13 GB, free: 43.39 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001743/4.471, allocations: 147.7 kB / 1.13 GB, free: 43.31 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02462/4.495, allocations: 15.88 MB / 1.146 GB, free: 32.04 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004925/4.5, allocations: 2.806 MB / 1.149 GB, free: 29.89 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04554/4.546, allocations: 18.34 MB / 1.166 GB, free: 14.68 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00651/4.552, allocations: 1.572 MB / 1.168 GB, free: 13.25 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003041/4.556, allocations: 100 kB / 1.168 GB, free: 13.15 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008225/4.564, allocations: 345.8 kB / 1.168 GB, free: 12.91 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002672/4.567, allocations: 0.5033 MB / 1.169 GB, free: 12.59 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001695/4.568, allocations: 185.5 kB / 1.169 GB, free: 12.43 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.008192/4.577, allocations: 2.876 MB / 1.172 GB, free: 9.848 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.012e-06/4.577, allocations: 0 / 1.172 GB, free: 9.848 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01289/4.589, allocations: 2.096 MB / 1.174 GB, free: 7.77 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (460): * Single equations (assignments): 392 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {5 12,6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.4342/5.024, allocations: 21.47 MB / 1.195 GB, free: 63.04 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02917/5.053, allocations: 10.88 MB / 1.206 GB, free: 62.47 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/5.053, allocations: 7.141 kB / 1.206 GB, free: 62.47 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01716/5.07, allocations: 5.879 MB / 1.211 GB, free: 61.89 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01005/5.08, allocations: 1.082 MB / 1.212 GB, free: 61.87 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06779/5.148, allocations: 21.57 MB / 1.233 GB, free: 58.39 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/5.162, allocations: 6.812 MB / 1.24 GB, free: 57.52 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01085/5.173, allocations: 4.198 MB / 1.244 GB, free: 57.51 MB / 474.8 MB Notification: Performance of SimCode: time 2.325e-06/5.173, allocations: 3.406 kB / 1.244 GB, free: 57.51 MB / 474.8 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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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_SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1