Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.183/2.183, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.176e-05, allocations: 5.75 kB / 292.3 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 50.4 MB / 342.7 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5557/0.6645, allocations: 159.2 MB / 0.4901 GB, free: 15.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003705/0.665, allocations: 101.1 kB / 0.4902 GB, free: 15.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.672/3.337, allocations: 387.4 MB / 0.8686 GB, free: 32.7 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.174e-06/3.337, allocations: 2.406 kB / 0.8686 GB, free: 32.7 MB / 474.8 MB Notification: Performance of Transformations before backend: time 0.001378/3.338, allocations: 278.5 kB / 0.8688 GB, free: 32.7 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.0626/3.401, allocations: 11.15 MB / 0.8797 GB, free: 30.75 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.588e-05/3.401, allocations: 9.812 kB / 0.8797 GB, free: 30.75 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01288/3.414, allocations: 1.91 MB / 0.8816 GB, free: 30.6 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06011/3.474, allocations: 4.569 MB / 0.8861 GB, free: 29.95 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04811/3.522, allocations: 9.739 MB / 0.8956 GB, free: 28.79 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001298/3.523, allocations: 0.8822 MB / 0.8964 GB, free: 28.76 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005674/3.529, allocations: 1.158 MB / 0.8976 GB, free: 28.75 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06114/3.59, allocations: 18.19 MB / 0.9153 GB, free: 27.32 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008048/3.591, allocations: 17.31 kB / 0.9153 GB, free: 27.31 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004928/3.596, allocations: 0.5024 MB / 0.9158 GB, free: 27.31 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001258/3.597, allocations: 0.7959 MB / 0.9166 GB, free: 27.29 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04857/3.646, allocations: 15.39 MB / 0.9316 GB, free: 27.23 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1617/3.808, allocations: 61.26 MB / 0.9915 GB, free: 1.43 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04579/3.853, allocations: 29.57 MB / 1.02 GB, free: 7.336 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01068/3.864, allocations: 4.002 MB / 1.024 GB, free: 5.77 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03621/3.9, allocations: 10.18 MB / 1.034 GB, free: 0 / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000124/3.901, allocations: 80.39 kB / 1.034 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=410): time 8.155e-06/3.901, allocations: 0 / 1.034 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=420): time 0.04962/3.95, allocations: 15.18 MB / 1.049 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/3.95, allocations: 124.4 kB / 1.049 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4224/4.373, allocations: 4.916 MB / 1.054 GB, free: 78.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001036/4.374, allocations: 95.55 kB / 1.054 GB, free: 78.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0055/4.379, allocations: 5.095 MB / 1.059 GB, free: 77.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002733/4.382, allocations: 1.456 MB / 1.06 GB, free: 76.59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00159/4.384, allocations: 131 kB / 1.061 GB, free: 76.59 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008194/4.385, allocations: 0.5706 MB / 1.061 GB, free: 76.27 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008974/4.394, allocations: 2.812 MB / 1.064 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01166/4.405, allocations: 5.236 MB / 1.069 GB, free: 73.26 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/4.417, allocations: 4.021 MB / 1.073 GB, free: 73.19 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001813/4.417, allocations: 26.53 kB / 1.073 GB, free: 73.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02954/4.447, allocations: 9.101 MB / 1.082 GB, free: 72.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/4.447, allocations: 42.64 kB / 1.082 GB, free: 72.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/4.447, allocations: 84.41 kB / 1.082 GB, free: 72.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005658/4.453, allocations: 1.129 MB / 1.083 GB, free: 72.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01101/4.464, allocations: 1.466 MB / 1.085 GB, free: 72.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02352/4.487, allocations: 12.47 MB / 1.097 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009826/4.497, allocations: 364.6 kB / 1.097 GB, free: 67.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002188/4.499, allocations: 322.1 kB / 1.097 GB, free: 67.36 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003176/4.503, allocations: 0.503 MB / 1.098 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002055/4.505, allocations: 0.5415 MB / 1.098 GB, free: 66.93 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02263/4.527, allocations: 7.07 MB / 1.105 GB, free: 66.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01747/4.545, allocations: 4.222 MB / 1.109 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.002e-05/4.545, allocations: 16.67 kB / 1.109 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001438/4.545, allocations: 18.42 kB / 1.109 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0657/4.611, allocations: 17.02 MB / 1.126 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.811e-05/4.611, allocations: 6.625 kB / 1.126 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006414/4.618, allocations: 0.6952 MB / 1.127 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005875/4.623, allocations: 1.186 MB / 1.128 GB, free: 64.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009909/4.624, allocations: 103 kB / 1.128 GB, free: 64.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02708/4.652, allocations: 16.02 MB / 1.144 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/4.652, allocations: 14.78 kB / 1.144 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02748/4.679, allocations: 10.84 MB / 1.154 GB, free: 53.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004707/4.684, allocations: 1.134 MB / 1.155 GB, free: 53.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002435/4.686, allocations: 86.28 kB / 1.155 GB, free: 53.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006285/4.693, allocations: 231 kB / 1.156 GB, free: 53.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/4.694, allocations: 302.2 kB / 1.156 GB, free: 53.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004292/4.695, allocations: 121.1 kB / 1.156 GB, free: 53.08 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008497/4.703, allocations: 3.365 MB / 1.159 GB, free: 51.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.575e-06/4.703, allocations: 4 kB / 1.159 GB, free: 51.79 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01185/4.715, allocations: 2.037 MB / 1.161 GB, free: 51.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 347 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02842/4.743, allocations: 13.24 MB / 1.174 GB, free: 44.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01971/4.763, allocations: 7.425 MB / 1.182 GB, free: 41.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/4.763, allocations: 3.719 kB / 1.182 GB, free: 41.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01051/4.774, allocations: 3.977 MB / 1.185 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/4.785, allocations: 1.301 MB / 1.187 GB, free: 39.21 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06735/4.852, allocations: 20.12 MB / 1.206 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01576/4.868, allocations: 7.351 MB / 1.213 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01097/4.879, allocations: 4.45 MB / 1.218 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of SimCode: time 1.663e-06/4.879, allocations: 0 / 1.218 GB, free: 12.68 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_MainsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFunctions.cpp:661:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp174 = 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_MainsFunctions.cpp:661:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp174 = 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_MainsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFMU.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_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o] Error 1