Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.881/1.881, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.323e-05/3.341e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.09842, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5763/0.6747, allocations: 156.2 MB / 456.2 MB, free: 4.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.6751, allocations: 96.38 kB / 456.2 MB, free: 4.715 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.897/2.573, allocations: 397 MB / 0.8333 GB, free: 10.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.996e-06/2.573, allocations: 0 / 0.8333 GB, free: 10.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001157/2.574, allocations: 303.6 kB / 0.8336 GB, free: 9.836 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.7539/3.328, allocations: 11.31 MB / 0.8446 GB, free: 17.82 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/3.328, allocations: 10.78 kB / 0.8446 GB, free: 17.82 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008885/3.337, allocations: 1.82 MB / 0.8464 GB, free: 17.7 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05512/3.392, allocations: 6.423 MB / 0.8527 GB, free: 17.05 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0375/3.429, allocations: 9.657 MB / 0.8621 GB, free: 16.5 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00162/3.431, allocations: 0.943 MB / 0.863 GB, free: 16.48 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006505/3.438, allocations: 1.236 MB / 0.8642 GB, free: 16.47 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07125/3.509, allocations: 20.66 MB / 0.8844 GB, free: 14.94 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009886/3.51, allocations: 22.31 kB / 0.8844 GB, free: 14.93 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005869/3.516, allocations: 0.5262 MB / 0.8849 GB, free: 14.93 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001459/3.517, allocations: 0.8515 MB / 0.8858 GB, free: 14.91 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05935/3.577, allocations: 18.64 MB / 0.904 GB, free: 14.8 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1825/3.759, allocations: 65.85 MB / 0.9683 GB, free: 268 kB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07105/3.83, allocations: 46.54 MB / 1.014 GB, free: 5.992 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3864/4.217, allocations: 8.076 MB / 1.022 GB, free: 87.48 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07538/4.292, allocations: 23.8 MB / 1.045 GB, free: 86.56 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.731e-05/4.292, allocations: 104.5 kB / 1.045 GB, free: 86.52 MB / 490.8 MB Notification: Performance of pre-optimization done (n=771): time 1.337e-05/4.292, allocations: 1.688 kB / 1.045 GB, free: 86.52 MB / 490.8 MB Notification: Performance of matching and sorting (n=813): time 0.1067/4.399, allocations: 27.03 MB / 1.071 GB, free: 84.21 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/4.399, allocations: 123.3 kB / 1.071 GB, free: 84.14 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01288/4.412, allocations: 3.772 MB / 1.075 GB, free: 83.75 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002133/4.414, allocations: 137.3 kB / 1.075 GB, free: 83.72 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004977/4.419, allocations: 4.86 MB / 1.08 GB, free: 81 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004374/4.424, allocations: 2.693 MB / 1.083 GB, free: 79.27 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001275/4.425, allocations: 166.2 kB / 1.083 GB, free: 79.27 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0009138/4.426, allocations: 0.6776 MB / 1.083 GB, free: 78.93 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01325/4.439, allocations: 5.078 MB / 1.088 GB, free: 78.91 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0159/4.455, allocations: 7.555 MB / 1.096 GB, free: 74.89 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01718/4.473, allocations: 6.444 MB / 1.102 GB, free: 72.34 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/4.473, allocations: 23.75 kB / 1.102 GB, free: 72.34 MB / 490.8 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.04499/4.518, allocations: 15.43 MB / 1.117 GB, free: 66.44 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.601e-05/4.518, allocations: 37.31 kB / 1.117 GB, free: 66.44 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001584/4.518, allocations: 78.47 kB / 1.117 GB, free: 66.44 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01349/4.532, allocations: 4.109 MB / 1.121 GB, free: 65.19 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01314/4.545, allocations: 1.669 MB / 1.123 GB, free: 65.14 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0197/4.565, allocations: 12.21 MB / 1.135 GB, free: 57.23 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/4.575, allocations: 453.3 kB / 1.135 GB, free: 57.07 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002712/4.578, allocations: 400 kB / 1.136 GB, free: 57 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 814 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004563/4.582, allocations: 0.5866 MB / 1.136 GB, free: 56.61 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003281/4.586, allocations: 0.6053 MB / 1.137 GB, free: 56.29 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04375/4.629, allocations: 14.38 MB / 1.151 GB, free: 47.36 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002948/4.63, allocations: 197.5 kB / 1.151 GB, free: 47.2 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/4.63, allocations: 0 / 1.151 GB, free: 47.2 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001667/4.63, allocations: 31.92 kB / 1.151 GB, free: 47.2 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08448/4.715, allocations: 28.82 MB / 1.179 GB, free: 23.11 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001043/4.715, allocations: 4 kB / 1.179 GB, free: 23.1 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01008/4.725, allocations: 1.056 MB / 1.18 GB, free: 22.29 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01333/4.738, allocations: 3.981 MB / 1.184 GB, free: 18.95 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002029/4.74, allocations: 177.5 kB / 1.184 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.435/5.175, allocations: 12.01 MB / 1.196 GB, free: 77.71 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/5.175, allocations: 7.094 kB / 1.196 GB, free: 77.71 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05861/5.234, allocations: 21.79 MB / 1.217 GB, free: 76.4 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007076/5.241, allocations: 1.778 MB / 1.219 GB, free: 76.31 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00329/5.245, allocations: 123.3 kB / 1.219 GB, free: 76.31 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00815/5.253, allocations: 328.5 kB / 1.22 GB, free: 76.31 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00301/5.256, allocations: 0.5779 MB / 1.22 GB, free: 76.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002076/5.258, allocations: 222 kB / 1.22 GB, free: 76.3 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007865/5.266, allocations: 2.805 MB / 1.223 GB, free: 76.09 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.172e-06/5.266, allocations: 0 / 1.223 GB, free: 76.09 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01361/5.279, allocations: 2.214 MB / 1.225 GB, free: 76.09 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (551): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * 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.0591/5.339, allocations: 23.84 MB / 1.249 GB, free: 73.46 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03547/5.374, allocations: 13.01 MB / 1.261 GB, free: 71.89 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/5.374, allocations: 1.688 kB / 1.261 GB, free: 71.89 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01984/5.394, allocations: 6.73 MB / 1.268 GB, free: 69.04 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01238/5.406, allocations: 1.273 MB / 1.269 GB, free: 68.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09661/5.503, allocations: 25.27 MB / 1.294 GB, free: 59.1 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0182/5.521, allocations: 7.846 MB / 1.301 GB, free: 54.03 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01302/5.535, allocations: 4.782 MB / 1.306 GB, free: 49.58 MB / 490.8 MB Notification: Performance of SimCode: time 1.443e-06/5.535, allocations: 0 / 1.306 GB, free: 49.58 MB / 490.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_SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp310 = 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_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp310 = 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_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFMU.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_SMPM_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.o] Error 1