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 2.006/2.006, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.176e-05, allocations: 4 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09303, allocations: 44.5 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5182/0.6113, allocations: 161.1 MB / 461.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.6117, allocations: 103 kB / 461.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813/2.425, allocations: 394.9 MB / 0.8361 GB, free: 10.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/2.425, allocations: 3.938 kB / 0.8361 GB, free: 10.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001024/2.426, allocations: 255.8 kB / 0.8363 GB, free: 10.54 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.05209/2.478, allocations: 10.27 MB / 0.8464 GB, free: 172 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/2.478, allocations: 8.031 kB / 0.8464 GB, free: 164 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3453/2.823, allocations: 1.769 MB / 0.8481 GB, free: 29.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03852/2.862, allocations: 4.389 MB / 0.8524 GB, free: 29.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03493/2.897, allocations: 8.847 MB / 0.861 GB, free: 28.65 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001743/2.899, allocations: 0.8286 MB / 0.8618 GB, free: 28.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005855/2.905, allocations: 1.082 MB / 0.8629 GB, free: 28.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05805/2.963, allocations: 17.11 MB / 0.8796 GB, free: 27.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007509/2.963, allocations: 10.31 kB / 0.8796 GB, free: 27.33 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005041/2.969, allocations: 477.3 kB / 0.8801 GB, free: 27.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001158/2.97, allocations: 0.693 MB / 0.8807 GB, free: 27.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04586/3.016, allocations: 14.82 MB / 0.8952 GB, free: 27.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1506/3.166, allocations: 58.11 MB / 0.952 GB, free: 2.438 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03069/3.197, allocations: 16.98 MB / 0.9685 GB, free: 6.477 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01623/3.213, allocations: 6.179 MB / 0.9746 GB, free: 3.887 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06193/3.275, allocations: 19.16 MB / 0.9933 GB, free: 8.793 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/3.275, allocations: 86.94 kB / 0.9934 GB, free: 8.699 MB / 458.7 MB Notification: Performance of pre-optimization done (n=625): time 1.081e-05/3.276, allocations: 0 / 0.9934 GB, free: 8.699 MB / 458.7 MB Notification: Performance of matching and sorting (n=658): time 0.09633/3.372, allocations: 24.33 MB / 1.017 GB, free: 5.895 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005924/3.378, allocations: 2.936 MB / 1.02 GB, free: 2.996 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3708/3.749, allocations: 3.961 MB / 1.024 GB, free: 72.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001692/3.75, allocations: 117.4 kB / 1.024 GB, free: 72.05 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004169/3.755, allocations: 4.382 MB / 1.028 GB, free: 71.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00427/3.759, allocations: 2.202 MB / 1.03 GB, free: 69.74 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/3.761, allocations: 141.4 kB / 1.031 GB, free: 69.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00107/3.762, allocations: 0.6208 MB / 1.031 GB, free: 69.42 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01338/3.775, allocations: 4.362 MB / 1.035 GB, free: 69.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01483/3.79, allocations: 6.346 MB / 1.042 GB, free: 67.14 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01473/3.805, allocations: 5.502 MB / 1.047 GB, free: 67.03 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001474/3.805, allocations: 21.2 kB / 1.047 GB, free: 67.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=996) (initialization): time 0.03879/3.844, allocations: 12.66 MB / 1.059 GB, free: 66.51 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.536e-05/3.844, allocations: 37.77 kB / 1.059 GB, free: 66.51 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/3.844, allocations: 60.06 kB / 1.059 GB, free: 66.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008302/3.853, allocations: 2.391 MB / 1.062 GB, free: 66.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/3.865, allocations: 1.525 MB / 1.063 GB, free: 66.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01543/3.881, allocations: 10.39 MB / 1.073 GB, free: 61.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01168/3.893, allocations: 0.5373 MB / 1.074 GB, free: 61.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002374/3.895, allocations: 347.1 kB / 1.074 GB, free: 61.62 MB / 474.7 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.004047/3.899, allocations: 0.5085 MB / 1.075 GB, free: 61.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002884/3.902, allocations: 0.5415 MB / 1.075 GB, free: 61.19 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0365/3.938, allocations: 11.72 MB / 1.087 GB, free: 60.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0295/3.968, allocations: 10.36 MB / 1.097 GB, free: 60.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.195e-05/3.968, allocations: 5.25 kB / 1.097 GB, free: 60.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001559/3.968, allocations: 30.44 kB / 1.097 GB, free: 60.06 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08403/4.052, allocations: 30.41 MB / 1.127 GB, free: 46.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.111e-05/4.053, allocations: 10.09 kB / 1.127 GB, free: 46.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008088/4.061, allocations: 0.8771 MB / 1.127 GB, free: 46.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009454/4.07, allocations: 2.655 MB / 1.13 GB, free: 46.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001786/4.072, allocations: 143.9 kB / 1.13 GB, free: 46.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02414/4.096, allocations: 15.88 MB / 1.146 GB, free: 34.74 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004845/4.101, allocations: 2.804 MB / 1.148 GB, free: 32.59 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04425/4.145, allocations: 18.33 MB / 1.166 GB, free: 20.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005881/4.151, allocations: 1.569 MB / 1.168 GB, free: 19.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002652/4.154, allocations: 103.4 kB / 1.168 GB, free: 19.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007976/4.162, allocations: 345.6 kB / 1.168 GB, free: 18.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002412/4.164, allocations: 0.5032 MB / 1.169 GB, free: 18.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001043/4.165, allocations: 182.2 kB / 1.169 GB, free: 18.35 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007337/4.173, allocations: 2.878 MB / 1.172 GB, free: 15.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.363e-06/4.173, allocations: 6.812 kB / 1.172 GB, free: 15.76 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01297/4.186, allocations: 2.097 MB / 1.174 GB, free: 13.68 MB / 474.7 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.4274/4.613, allocations: 22.11 MB / 1.195 GB, free: 66.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03153/4.645, allocations: 10.74 MB / 1.206 GB, free: 66.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/4.645, allocations: 4.5 kB / 1.206 GB, free: 66.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01663/4.662, allocations: 5.815 MB / 1.212 GB, free: 65.88 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01035/4.672, allocations: 1.075 MB / 1.213 GB, free: 65.86 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06922/4.741, allocations: 21.53 MB / 1.234 GB, free: 62.41 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/4.755, allocations: 6.803 MB / 1.24 GB, free: 61.53 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01163/4.767, allocations: 4.202 MB / 1.244 GB, free: 61.52 MB / 474.7 MB Notification: Performance of SimCode: time 1.983e-06/4.767, allocations: 0 / 1.244 GB, free: 61.52 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=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