Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.41e-05/3.417e-05, allocations: 4 kB / 255.5 MB, free: 3.051 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09586, allocations: 44.5 MB / 300 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5144/0.6103, allocations: 150.1 MB / 450.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003614/0.6108, allocations: 102 kB / 450.2 MB, free: 10.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.807/2.418, allocations: 385.9 MB / 0.8165 GB, free: 29.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.144e-06/2.418, allocations: 0 / 0.8165 GB, free: 29.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009401/2.419, allocations: 299.6 kB / 0.8168 GB, free: 28.75 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.0503/2.469, allocations: 11.04 MB / 0.8275 GB, free: 17.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/2.469, allocations: 12.03 kB / 0.8276 GB, free: 17.6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008392/2.478, allocations: 1.778 MB / 0.8293 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05496/2.533, allocations: 6.34 MB / 0.8355 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3909/2.924, allocations: 9.439 MB / 0.8447 GB, free: 31.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001667/2.925, allocations: 0.9208 MB / 0.8456 GB, free: 31.49 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006782/2.932, allocations: 1.201 MB / 0.8468 GB, free: 31.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07136/3.004, allocations: 20.15 MB / 0.8665 GB, free: 30.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009111/3.004, allocations: 20.39 kB / 0.8665 GB, free: 30.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005699/3.01, allocations: 0.5172 MB / 0.867 GB, free: 30.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001471/3.012, allocations: 0.8417 MB / 0.8678 GB, free: 30.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05782/3.07, allocations: 18.21 MB / 0.8856 GB, free: 30.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1721/3.242, allocations: 63.97 MB / 0.9481 GB, free: 5.188 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05937/3.301, allocations: 45.62 MB / 0.9926 GB, free: 13.38 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02017/3.321, allocations: 7.721 MB / 1 GB, free: 8.555 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4608/3.782, allocations: 24.79 MB / 1.024 GB, free: 75.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/3.782, allocations: 99.48 kB / 1.024 GB, free: 75.51 MB / 474.7 MB Notification: Performance of pre-optimization done (n=759): time 1.411e-05/3.783, allocations: 2.062 kB / 1.024 GB, free: 75.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=799): time 0.08432/3.867, allocations: 26.69 MB / 1.051 GB, free: 73.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/3.867, allocations: 121.9 kB / 1.051 GB, free: 73.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008904/3.876, allocations: 3.551 MB / 1.054 GB, free: 73.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001794/3.878, allocations: 135.1 kB / 1.054 GB, free: 73.22 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003659/3.881, allocations: 4.721 MB / 1.059 GB, free: 70.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004358/3.886, allocations: 2.651 MB / 1.061 GB, free: 68.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/3.887, allocations: 160.8 kB / 1.062 GB, free: 68.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008688/3.888, allocations: 0.6673 MB / 1.062 GB, free: 68.55 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01301/3.901, allocations: 5.021 MB / 1.067 GB, free: 68.53 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01548/3.917, allocations: 7.372 MB / 1.074 GB, free: 65.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01631/3.933, allocations: 6.365 MB / 1.081 GB, free: 65.69 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/3.933, allocations: 21.16 kB / 1.081 GB, free: 65.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.04111/3.974, allocations: 15.02 MB / 1.095 GB, free: 62.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.33e-05/3.974, allocations: 36.91 kB / 1.095 GB, free: 62.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001543/3.975, allocations: 74.66 kB / 1.095 GB, free: 62.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0128/3.987, allocations: 4.11 MB / 1.099 GB, free: 61.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01278/4, allocations: 1.626 MB / 1.101 GB, free: 61.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/4.021, allocations: 12.18 MB / 1.113 GB, free: 53.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01086/4.032, allocations: 440.3 kB / 1.113 GB, free: 53.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002642/4.034, allocations: 390.9 kB / 1.114 GB, free: 53.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 790 * 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.004464/4.039, allocations: 0.5706 MB / 1.114 GB, free: 52.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003104/4.042, allocations: 0.5834 MB / 1.115 GB, free: 52.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.043/4.085, allocations: 14.18 MB / 1.129 GB, free: 46.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003038/4.085, allocations: 190.5 kB / 1.129 GB, free: 46.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/4.085, allocations: 3.953 kB / 1.129 GB, free: 46.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001653/4.086, allocations: 34.73 kB / 1.129 GB, free: 46.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07921/4.165, allocations: 28.37 MB / 1.157 GB, free: 25.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001187/4.165, allocations: 5.219 kB / 1.157 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00951/4.175, allocations: 1.025 MB / 1.158 GB, free: 25.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01245/4.187, allocations: 3.985 MB / 1.161 GB, free: 21.73 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002045/4.189, allocations: 167.2 kB / 1.162 GB, free: 21.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0183/4.207, allocations: 12.01 MB / 1.173 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/4.208, allocations: 7.281 kB / 1.173 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4583/4.666, allocations: 22.72 MB / 1.196 GB, free: 70.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00688/4.673, allocations: 1.733 MB / 1.197 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003262/4.676, allocations: 123.6 kB / 1.197 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008025/4.684, allocations: 323.2 kB / 1.198 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002976/4.687, allocations: 0.563 MB / 1.198 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002056/4.689, allocations: 217.3 kB / 1.198 GB, free: 70.63 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007489/4.697, allocations: 2.653 MB / 1.201 GB, free: 70.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.41e-07/4.697, allocations: 0 / 1.201 GB, free: 70.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01404/4.711, allocations: 2.14 MB / 1.203 GB, free: 70.43 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (535): * Single equations (assignments): 479 * 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.05911/4.77, allocations: 23.24 MB / 1.226 GB, free: 68.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03382/4.804, allocations: 12.68 MB / 1.238 GB, free: 67.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/4.804, allocations: 0 / 1.238 GB, free: 67.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01923/4.823, allocations: 6.616 MB / 1.245 GB, free: 67.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.011/4.834, allocations: 1.164 MB / 1.246 GB, free: 67.01 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08121/4.916, allocations: 24.81 MB / 1.27 GB, free: 59.39 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01742/4.933, allocations: 7.742 MB / 1.278 GB, free: 56.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01206/4.945, allocations: 4.571 MB / 1.282 GB, free: 52.96 MB / 474.7 MB Notification: Performance of SimCode: time 1.313e-06/4.945, allocations: 2.906 kB / 1.282 GB, free: 52.96 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_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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_SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1