Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.018/2.018, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.742e-05, allocations: 6.031 kB / 292.3 MB, free: 8.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 50.41 MB / 342.7 MB, free: 6.273 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5602/0.6676, allocations: 157.4 MB / 0.4883 GB, free: 1.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.668, allocations: 98.94 kB / 0.4884 GB, free: 1.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.798/2.466, allocations: 375 MB / 0.8546 GB, free: 9.703 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.144e-06/2.466, allocations: 0 / 0.8546 GB, free: 9.703 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001178/2.468, allocations: 283.6 kB / 0.8549 GB, free: 9.426 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.7756/3.243, allocations: 10.73 MB / 0.8654 GB, free: 28.61 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/3.243, allocations: 10.34 kB / 0.8654 GB, free: 28.61 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009775/3.253, allocations: 1.696 MB / 0.867 GB, free: 28.48 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03814/3.291, allocations: 4.403 MB / 0.8713 GB, free: 27.88 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03728/3.329, allocations: 9.324 MB / 0.8804 GB, free: 27.36 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001613/3.33, allocations: 0.8728 MB / 0.8813 GB, free: 27.34 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005848/3.336, allocations: 1.152 MB / 0.8824 GB, free: 27.33 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06067/3.397, allocations: 18.06 MB / 0.9001 GB, free: 25.94 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007734/3.398, allocations: 24.94 kB / 0.9001 GB, free: 25.93 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004716/3.402, allocations: 0.4937 MB / 0.9006 GB, free: 25.93 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001279/3.404, allocations: 0.8118 MB / 0.9013 GB, free: 25.91 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05403/3.458, allocations: 15.08 MB / 0.9161 GB, free: 25.85 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1634/3.621, allocations: 59.12 MB / 0.9738 GB, free: 300 kB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04265/3.664, allocations: 32.81 MB / 1.006 GB, free: 2.641 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00944/3.673, allocations: 3.601 MB / 1.009 GB, free: 1.27 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03296/3.706, allocations: 8.53 MB / 1.018 GB, free: 13.24 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.643e-05/3.707, allocations: 72.03 kB / 1.018 GB, free: 13.17 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=350): time 6.051e-06/3.707, allocations: 0 / 1.018 GB, free: 13.17 MB / 0.4949 GB Notification: Performance of matching and sorting (n=390): time 0.04215/3.749, allocations: 13.52 MB / 1.031 GB, free: 2.508 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/3.749, allocations: 90.47 kB / 1.031 GB, free: 2.406 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01356/3.763, allocations: 4.361 MB / 1.035 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009194/3.763, allocations: 93.7 kB / 1.035 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005293/3.769, allocations: 5.252 MB / 1.041 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0023/3.771, allocations: 1.365 MB / 1.042 GB, free: 8.793 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008709/3.772, allocations: 138.2 kB / 1.042 GB, free: 8.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006577/3.773, allocations: 0.5767 MB / 1.043 GB, free: 8.152 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008137/3.781, allocations: 2.78 MB / 1.045 GB, free: 5.648 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3907/4.172, allocations: 5.763 MB / 1.051 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/4.183, allocations: 4.154 MB / 1.055 GB, free: 87.22 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001496/4.183, allocations: 29.19 kB / 1.055 GB, free: 87.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02909/4.212, allocations: 9.105 MB / 1.064 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/4.212, allocations: 49.47 kB / 1.064 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002467/4.213, allocations: 102.4 kB / 1.064 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004479/4.217, allocations: 0.9423 MB / 1.065 GB, free: 86.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01163/4.229, allocations: 1.593 MB / 1.067 GB, free: 86.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01727/4.246, allocations: 9.383 MB / 1.076 GB, free: 83.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008681/4.255, allocations: 412 kB / 1.076 GB, free: 83.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001672/4.257, allocations: 358.8 kB / 1.076 GB, free: 83.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * 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,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002042/4.259, allocations: 0.5517 MB / 1.077 GB, free: 83 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001626/4.26, allocations: 0.5109 MB / 1.077 GB, free: 83 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0195/4.28, allocations: 6.298 MB / 1.084 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.393e-05/4.28, allocations: 40.31 kB / 1.084 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/4.28, allocations: 7.5 kB / 1.084 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001231/4.28, allocations: 18.66 kB / 1.084 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04741/4.328, allocations: 15.41 MB / 1.099 GB, free: 81.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.629e-05/4.328, allocations: 3.938 kB / 1.099 GB, free: 81.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006989/4.335, allocations: 0.7412 MB / 1.099 GB, free: 81.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003901/4.339, allocations: 0.7688 MB / 1.1 GB, free: 81.92 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009921/4.34, allocations: 84.84 kB / 1.1 GB, free: 81.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/4.354, allocations: 8.553 MB / 1.109 GB, free: 78.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/4.354, allocations: 7.344 kB / 1.109 GB, free: 78.05 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02344/4.378, allocations: 9.516 MB / 1.118 GB, free: 77.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004035/4.382, allocations: 1.045 MB / 1.119 GB, free: 76.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002167/4.384, allocations: 71.38 kB / 1.119 GB, free: 76.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006051/4.39, allocations: 233.4 kB / 1.119 GB, free: 76.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001283/4.391, allocations: 259 kB / 1.119 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005046/4.392, allocations: 118 kB / 1.12 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008754/4.401, allocations: 3.163 MB / 1.123 GB, free: 76.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.062e-06/4.401, allocations: 0 / 1.123 GB, free: 76.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01176/4.413, allocations: 1.92 MB / 1.125 GB, free: 76.58 MB / 0.5105 GB 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 (368): * Single equations (assignments): 362 * 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 Backend phase and start with SimCode phase: time 0.02608/4.439, allocations: 11.3 MB / 1.136 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01868/4.457, allocations: 7.236 MB / 1.143 GB, free: 71.79 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/4.457, allocations: 4.312 kB / 1.143 GB, free: 71.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009096/4.467, allocations: 3.391 MB / 1.146 GB, free: 70.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/4.477, allocations: 1.159 MB / 1.147 GB, free: 69.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06319/4.54, allocations: 19.49 MB / 1.166 GB, free: 62.17 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01492/4.555, allocations: 7.294 MB / 1.173 GB, free: 56.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01028/4.565, allocations: 4.358 MB / 1.178 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of SimCode: time 1.523e-06/4.565, allocations: 0 / 1.178 GB, free: 52.64 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_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:503:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = 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_SMR_CurrentSourceFunctions.cpp:503:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = 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_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1