Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.888e-05/3.894e-05, allocations: 0 / 292.3 MB, free: 8.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 50.41 MB / 342.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5979/0.706, allocations: 164.2 MB / 0.495 GB, free: 10.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.7064, allocations: 102 kB / 0.4951 GB, free: 10.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324/3.03, allocations: 386.1 MB / 0.8722 GB, free: 42.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.184e-06/3.03, allocations: 0 / 0.8722 GB, free: 42.81 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001352/3.032, allocations: 290.4 kB / 0.8724 GB, free: 42.78 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.06042/3.092, allocations: 11.03 MB / 0.8832 GB, free: 39.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.288e-05/3.092, allocations: 7.562 kB / 0.8832 GB, free: 39.3 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009341/3.102, allocations: 1.732 MB / 0.8849 GB, free: 39.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03862/3.14, allocations: 4.485 MB / 0.8893 GB, free: 38.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03423/3.175, allocations: 9.529 MB / 0.8986 GB, free: 37.32 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001209/3.176, allocations: 0.8999 MB / 0.8995 GB, free: 37.29 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006055/3.182, allocations: 1.187 MB / 0.9006 GB, free: 37.27 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06285/3.245, allocations: 18.41 MB / 0.9186 GB, free: 35.79 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008383/3.246, allocations: 25.14 kB / 0.9186 GB, free: 35.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005251/3.251, allocations: 0.5094 MB / 0.9191 GB, free: 35.79 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001383/3.252, allocations: 0.8211 MB / 0.9199 GB, free: 35.76 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05074/3.303, allocations: 15.34 MB / 0.9349 GB, free: 35.7 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1596/3.463, allocations: 61.01 MB / 0.9945 GB, free: 7.922 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04208/3.505, allocations: 32.95 MB / 1.027 GB, free: 9.258 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01215/3.517, allocations: 3.681 MB / 1.03 GB, free: 6.258 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04117/3.558, allocations: 8.839 MB / 1.039 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001131/3.558, allocations: 77.41 kB / 1.039 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=362): time 1.02e-05/3.558, allocations: 4 kB / 1.039 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=404): time 0.05441/3.613, allocations: 14 MB / 1.053 GB, free: 2.789 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/3.613, allocations: 90.58 kB / 1.053 GB, free: 2.688 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4022/4.015, allocations: 4.505 MB / 1.057 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009139/4.016, allocations: 91.2 kB / 1.057 GB, free: 87.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005109/4.021, allocations: 5.406 MB / 1.063 GB, free: 85.69 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002297/4.024, allocations: 1.406 MB / 1.064 GB, free: 84.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008315/4.025, allocations: 142.9 kB / 1.064 GB, free: 84.82 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005241/4.025, allocations: 0.5895 MB / 1.065 GB, free: 84.49 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008108/4.033, allocations: 2.845 MB / 1.067 GB, free: 84.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01124/4.045, allocations: 5.9 MB / 1.073 GB, free: 80.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/4.055, allocations: 4.235 MB / 1.077 GB, free: 80.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002422/4.055, allocations: 30.38 kB / 1.077 GB, free: 80.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02679/4.082, allocations: 9.32 MB / 1.086 GB, free: 80.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/4.082, allocations: 50.72 kB / 1.086 GB, free: 80.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001826/4.082, allocations: 103.1 kB / 1.087 GB, free: 80.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004073/4.086, allocations: 0.9431 MB / 1.087 GB, free: 80.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/4.098, allocations: 1.639 MB / 1.089 GB, free: 80.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01612/4.114, allocations: 9.38 MB / 1.098 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009518/4.124, allocations: 428.3 kB / 1.099 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/4.125, allocations: 367.7 kB / 1.099 GB, free: 76.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * 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): 840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001908/4.127, allocations: 0.5678 MB / 1.1 GB, free: 76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001841/4.129, allocations: 0.5376 MB / 1.1 GB, free: 75.72 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01892/4.148, allocations: 6.47 MB / 1.106 GB, free: 75.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.813e-05/4.148, allocations: 43.98 kB / 1.106 GB, free: 75.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/4.148, allocations: 8.922 kB / 1.106 GB, free: 75.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001029/4.148, allocations: 23.02 kB / 1.106 GB, free: 75.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04646/4.195, allocations: 15.91 MB / 1.122 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.496e-05/4.195, allocations: 3.781 kB / 1.122 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007104/4.202, allocations: 0.7682 MB / 1.123 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003909/4.206, allocations: 0.7715 MB / 1.123 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009414/4.207, allocations: 87.25 kB / 1.124 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/4.221, allocations: 8.551 MB / 1.132 GB, free: 70.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/4.221, allocations: 8.75 kB / 1.132 GB, free: 70.53 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/4.245, allocations: 9.911 MB / 1.142 GB, free: 69.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004541/4.249, allocations: 1.091 MB / 1.143 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002067/4.251, allocations: 72.97 kB / 1.143 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006111/4.258, allocations: 238.4 kB / 1.143 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/4.259, allocations: 278.1 kB / 1.143 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004859/4.259, allocations: 120.5 kB / 1.143 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008707/4.268, allocations: 3.322 MB / 1.147 GB, free: 68.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.02e-07/4.268, allocations: 0 / 1.147 GB, free: 68.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01227/4.28, allocations: 1.991 MB / 1.149 GB, free: 68 MB / 0.5105 GB 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 (384): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02614/4.307, allocations: 11.98 MB / 1.16 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01874/4.325, allocations: 7.387 MB / 1.167 GB, free: 59.01 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/4.325, allocations: 0 / 1.167 GB, free: 59.01 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008755/4.334, allocations: 3.446 MB / 1.171 GB, free: 57.35 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01083/4.345, allocations: 1.262 MB / 1.172 GB, free: 56.99 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07184/4.417, allocations: 19.9 MB / 1.191 GB, free: 42.97 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01681/4.434, allocations: 7.402 MB / 1.199 GB, free: 37.44 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01262/4.446, allocations: 4.523 MB / 1.203 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of SimCode: time 2.124e-06/4.446, allocations: 0 / 1.203 GB, free: 33.23 MB / 0.5105 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_SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFunctions.cpp:595:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp147 = 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_SMPM_CurrentSourceFunctions.cpp:595:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp147 = 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_SMPM_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.o] Error 1