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.952/1.952, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.217e-05, allocations: 5.406 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.09138, allocations: 44.5 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5374/0.6289, allocations: 156.2 MB / 456.2 MB, free: 4.477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003792/0.6293, allocations: 99.62 kB / 456.3 MB, free: 4.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883/2.513, allocations: 397 MB / 0.8333 GB, free: 9.871 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.705e-06/2.513, allocations: 0 / 0.8333 GB, free: 9.871 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00115/2.514, allocations: 303.6 kB / 0.8336 GB, free: 9.574 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.758/3.272, allocations: 11.31 MB / 0.8446 GB, free: 20.72 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.484e-05/3.272, allocations: 9.188 kB / 0.8447 GB, free: 20.72 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009594/3.281, allocations: 1.82 MB / 0.8464 GB, free: 20.6 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0561/3.338, allocations: 6.423 MB / 0.8527 GB, free: 19.95 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03735/3.375, allocations: 9.651 MB / 0.8621 GB, free: 19.41 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001633/3.377, allocations: 0.9428 MB / 0.863 GB, free: 19.38 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006754/3.384, allocations: 1.236 MB / 0.8643 GB, free: 19.38 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07136/3.455, allocations: 20.51 MB / 0.8843 GB, free: 17.9 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008837/3.456, allocations: 31.36 kB / 0.8843 GB, free: 17.89 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00573/3.462, allocations: 0.5223 MB / 0.8848 GB, free: 17.89 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001468/3.463, allocations: 0.8528 MB / 0.8857 GB, free: 17.87 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05811/3.521, allocations: 18.47 MB / 0.9037 GB, free: 17.81 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2019/3.723, allocations: 65.85 MB / 0.968 GB, free: 3.227 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06611/3.789, allocations: 46.02 MB / 1.013 GB, free: 7.246 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02161/3.811, allocations: 7.777 MB / 1.021 GB, free: 128 kB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4369/4.248, allocations: 23.8 MB / 1.044 GB, free: 87.34 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.738e-05/4.248, allocations: 107.5 kB / 1.044 GB, free: 87.29 MB / 490.8 MB Notification: Performance of pre-optimization done (n=771): time 1.263e-05/4.248, allocations: 0 / 1.044 GB, free: 87.29 MB / 490.8 MB Notification: Performance of matching and sorting (n=813): time 0.08151/4.33, allocations: 27.03 MB / 1.07 GB, free: 84.99 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.996e-05/4.33, allocations: 123.7 kB / 1.07 GB, free: 84.92 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009543/4.339, allocations: 3.76 MB / 1.074 GB, free: 84.53 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001808/4.341, allocations: 138.3 kB / 1.074 GB, free: 84.5 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0037/4.345, allocations: 4.864 MB / 1.079 GB, free: 81.79 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004343/4.349, allocations: 2.703 MB / 1.082 GB, free: 80.04 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001586/4.351, allocations: 166 kB / 1.082 GB, free: 80.04 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0009689/4.352, allocations: 0.677 MB / 1.082 GB, free: 79.71 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/4.366, allocations: 5.082 MB / 1.087 GB, free: 79.68 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01643/4.383, allocations: 7.502 MB / 1.095 GB, free: 75.66 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01664/4.4, allocations: 6.449 MB / 1.101 GB, free: 73.11 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/4.4, allocations: 22.52 kB / 1.101 GB, free: 73.11 MB / 490.8 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.04455/4.444, allocations: 15.22 MB / 1.116 GB, free: 67.28 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.392e-05/4.445, allocations: 38.5 kB / 1.116 GB, free: 67.28 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/4.445, allocations: 80.06 kB / 1.116 GB, free: 67.28 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01282/4.458, allocations: 4.097 MB / 1.12 GB, free: 66.04 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01315/4.471, allocations: 1.667 MB / 1.122 GB, free: 65.98 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0183/4.489, allocations: 12.21 MB / 1.134 GB, free: 58.07 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01064/4.5, allocations: 449.7 kB / 1.134 GB, free: 57.92 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00281/4.503, allocations: 397.7 kB / 1.134 GB, free: 57.85 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.002939/4.506, allocations: 0.5909 MB / 1.135 GB, free: 57.45 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002377/4.508, allocations: 0.6059 MB / 1.136 GB, free: 57.13 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04015/4.548, allocations: 14.38 MB / 1.15 GB, free: 48.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002769/4.549, allocations: 197.5 kB / 1.15 GB, free: 47.93 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.65e-05/4.549, allocations: 0 / 1.15 GB, free: 47.93 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001566/4.549, allocations: 36.23 kB / 1.15 GB, free: 47.93 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07754/4.626, allocations: 28.81 MB / 1.178 GB, free: 23.85 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.97e-05/4.626, allocations: 7.422 kB / 1.178 GB, free: 23.84 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009919/4.636, allocations: 1.053 MB / 1.179 GB, free: 23.04 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01247/4.649, allocations: 3.991 MB / 1.183 GB, free: 19.69 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002058/4.651, allocations: 172.2 kB / 1.183 GB, free: 19.54 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.401/5.052, allocations: 12.14 MB / 1.195 GB, free: 77.57 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.748e-06/5.052, allocations: 4.719 kB / 1.195 GB, free: 77.57 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05795/5.11, allocations: 21.78 MB / 1.216 GB, free: 76.26 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006932/5.117, allocations: 1.778 MB / 1.218 GB, free: 76.16 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003286/5.12, allocations: 120.5 kB / 1.218 GB, free: 76.16 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008334/5.129, allocations: 329.7 kB / 1.218 GB, free: 76.16 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002791/5.132, allocations: 0.5825 MB / 1.219 GB, free: 76.15 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001342/5.133, allocations: 219.6 kB / 1.219 GB, free: 76.15 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007062/5.14, allocations: 2.804 MB / 1.222 GB, free: 75.95 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.092e-06/5.14, allocations: 5.25 kB / 1.222 GB, free: 75.95 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01363/5.154, allocations: 2.205 MB / 1.224 GB, free: 75.95 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.05677/5.211, allocations: 23.85 MB / 1.247 GB, free: 73.31 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03453/5.245, allocations: 12.84 MB / 1.26 GB, free: 72.34 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/5.245, allocations: 0 / 1.26 GB, free: 72.34 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01957/5.265, allocations: 6.683 MB / 1.266 GB, free: 69.52 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01231/5.277, allocations: 1.271 MB / 1.268 GB, free: 69.17 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08158/5.359, allocations: 25.23 MB / 1.292 GB, free: 59.59 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01808/5.377, allocations: 7.842 MB / 1.3 GB, free: 55.2 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01289/5.39, allocations: 4.775 MB / 1.305 GB, free: 50.75 MB / 490.8 MB Notification: Performance of SimCode: time 1.934e-06/5.39, allocations: 0 / 1.305 GB, free: 50.75 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