Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.515e-05/3.534e-05, allocations: 5.547 kB / 292.3 MB, free: 8.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1262, allocations: 50.41 MB / 342.7 MB, free: 6.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5988/0.7251, allocations: 167.9 MB / 0.4986 GB, free: 7.297 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003854/0.7255, allocations: 105.1 kB / 0.4987 GB, free: 7.238 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.241/2.967, allocations: 391.4 MB / 0.8809 GB, free: 45.61 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.185e-06/2.967, allocations: 0 / 0.8809 GB, free: 45.61 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001445/2.968, allocations: 261.7 kB / 0.8812 GB, free: 45.58 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.05193/3.02, allocations: 10.15 MB / 0.8911 GB, free: 42.36 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/3.02, allocations: 8.438 kB / 0.8911 GB, free: 42.36 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009258/3.03, allocations: 1.736 MB / 0.8928 GB, free: 42.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03169/3.061, allocations: 3.735 MB / 0.8964 GB, free: 41.6 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03453/3.096, allocations: 8.893 MB / 0.9051 GB, free: 40.48 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001087/3.097, allocations: 0.8115 MB / 0.9059 GB, free: 40.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00508/3.102, allocations: 1.056 MB / 0.9069 GB, free: 40.45 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05322/3.155, allocations: 16.05 MB / 0.9226 GB, free: 39.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006688/3.156, allocations: 14.94 kB / 0.9226 GB, free: 39.16 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004535/3.161, allocations: 473.9 kB / 0.9231 GB, free: 39.15 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001102/3.162, allocations: 0.7073 MB / 0.9238 GB, free: 39.12 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04254/3.204, allocations: 13.27 MB / 0.9367 GB, free: 39.07 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1365/3.341, allocations: 55.51 MB / 0.9909 GB, free: 13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03337/3.374, allocations: 21.08 MB / 1.012 GB, free: 10.49 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008767/3.383, allocations: 3.252 MB / 1.015 GB, free: 9.254 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/3.413, allocations: 9.64 MB / 1.024 GB, free: 2.418 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/3.413, allocations: 72.94 kB / 1.024 GB, free: 2.336 MB / 490.7 MB Notification: Performance of pre-optimization done (n=314): time 6.873e-06/3.413, allocations: 0 / 1.024 GB, free: 2.336 MB / 490.7 MB Notification: Performance of matching and sorting (n=347): time 0.04563/3.459, allocations: 14.05 MB / 1.038 GB, free: 5.605 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005889/3.464, allocations: 2.91 MB / 1.041 GB, free: 2.715 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4044/3.869, allocations: 4.451 MB / 1.045 GB, free: 73.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009908/3.87, allocations: 81.45 kB / 1.045 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00535/3.875, allocations: 4.925 MB / 1.05 GB, free: 72.87 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002076/3.877, allocations: 1.218 MB / 1.051 GB, free: 72.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/3.879, allocations: 126.4 kB / 1.051 GB, free: 72.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006819/3.879, allocations: 0.5551 MB / 1.052 GB, free: 71.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008326/3.888, allocations: 2.64 MB / 1.054 GB, free: 71.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01078/3.899, allocations: 5.295 MB / 1.06 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/3.909, allocations: 3.83 MB / 1.063 GB, free: 68.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000234/3.909, allocations: 29.75 kB / 1.063 GB, free: 68.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.02644/3.936, allocations: 8.668 MB / 1.072 GB, free: 68.02 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/3.936, allocations: 43.16 kB / 1.072 GB, free: 68.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001655/3.936, allocations: 95.17 kB / 1.072 GB, free: 68.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004162/3.94, allocations: 0.9187 MB / 1.073 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01063/3.951, allocations: 1.463 MB / 1.074 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01719/3.968, allocations: 9.711 MB / 1.084 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.011/3.979, allocations: 492.9 kB / 1.084 GB, free: 63.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001708/3.981, allocations: 339.8 kB / 1.085 GB, free: 63.83 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (755): * Single equations (assignments): 745 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00254/3.984, allocations: 0.5076 MB / 1.085 GB, free: 63.67 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001675/3.985, allocations: 0.5066 MB / 1.086 GB, free: 63.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02069/4.006, allocations: 6.165 MB / 1.092 GB, free: 62.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0209/4.027, allocations: 5.117 MB / 1.097 GB, free: 62.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.769e-05/4.027, allocations: 11.56 kB / 1.097 GB, free: 62.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001283/4.027, allocations: 18.2 kB / 1.097 GB, free: 62.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08452/4.112, allocations: 21.42 MB / 1.118 GB, free: 61.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.245e-05/4.112, allocations: 7.188 kB / 1.118 GB, free: 61.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005332/4.117, allocations: 0.5872 MB / 1.118 GB, free: 61.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005475/4.123, allocations: 1.135 MB / 1.119 GB, free: 61.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000894/4.124, allocations: 79.39 kB / 1.119 GB, free: 61.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02554/4.149, allocations: 14.62 MB / 1.134 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00478/4.154, allocations: 2.815 MB / 1.136 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02306/4.177, allocations: 9.656 MB / 1.146 GB, free: 45.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004187/4.181, allocations: 1.034 MB / 1.147 GB, free: 44.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002106/4.184, allocations: 74.84 kB / 1.147 GB, free: 44.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006646/4.19, allocations: 248 kB / 1.147 GB, free: 44.58 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001293/4.192, allocations: 265.3 kB / 1.147 GB, free: 44.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004481/4.192, allocations: 108.2 kB / 1.147 GB, free: 44.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008947/4.201, allocations: 3.289 MB / 1.151 GB, free: 43.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.192e-06/4.201, allocations: 0 / 1.151 GB, free: 43.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01228/4.213, allocations: 1.961 MB / 1.153 GB, free: 43.08 MB / 0.4948 GB 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 (292): * Single equations (assignments): 283 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(8,67.2%) 26} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02601/4.239, allocations: 11.76 MB / 1.164 GB, free: 36.55 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01754/4.257, allocations: 6.722 MB / 1.171 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/4.257, allocations: 0 / 1.171 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009718/4.267, allocations: 3.492 MB / 1.174 GB, free: 32.32 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009385/4.276, allocations: 1.073 MB / 1.175 GB, free: 32 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05638/4.333, allocations: 17.85 MB / 1.192 GB, free: 17.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01216/4.345, allocations: 6.587 MB / 1.199 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009592/4.355, allocations: 4.113 MB / 1.203 GB, free: 8.637 MB / 0.4948 GB Notification: Performance of SimCode: time 2.294e-06/4.355, allocations: 0 / 1.203 GB, free: 8.637 MB / 0.4948 GB 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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:657:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp153 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:657:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp153 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1