Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.405e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09328, allocations: 44.51 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4975/0.5909, allocations: 142.8 MB / 442.7 MB, free: 2.148 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003663/0.5913, allocations: 103.6 kB / 442.8 MB, free: 2.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.082/1.673, allocations: 232.6 MB / 0.6596 GB, free: 21.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.673, allocations: 0 / 0.6596 GB, free: 21.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006078/1.674, allocations: 159.9 kB / 0.6598 GB, free: 21.21 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03108/1.705, allocations: 6.794 MB / 0.6664 GB, free: 14.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/1.705, allocations: 12.03 kB / 0.6664 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005311/1.711, allocations: 1.132 MB / 0.6675 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03082/1.741, allocations: 3.655 MB / 0.6711 GB, free: 9.504 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02069/1.762, allocations: 5.932 MB / 0.6769 GB, free: 3.488 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007806/1.763, allocations: 0.5217 MB / 0.6774 GB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003371/1.766, allocations: 0.6874 MB / 0.6781 GB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3512/2.118, allocations: 11.31 MB / 0.6891 GB, free: 34.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005318/2.118, allocations: 22.14 kB / 0.6892 GB, free: 34.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003131/2.121, allocations: 309.1 kB / 0.6894 GB, free: 34.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009974/2.122, allocations: 489.9 kB / 0.6899 GB, free: 34.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0336/2.156, allocations: 10.5 MB / 0.7002 GB, free: 34.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09881/2.255, allocations: 38.32 MB / 0.7376 GB, free: 27.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02356/2.279, allocations: 18.42 MB / 0.7556 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0106/2.289, allocations: 4.202 MB / 0.7597 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04047/2.33, allocations: 13.66 MB / 0.773 GB, free: 19.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.397e-05/2.33, allocations: 69.91 kB / 0.7731 GB, free: 19.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=399): time 9.207e-06/2.33, allocations: 3.422 kB / 0.7731 GB, free: 19.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.03892/2.369, allocations: 14.25 MB / 0.787 GB, free: 13.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002921/2.372, allocations: 1.932 MB / 0.7889 GB, free: 11.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007281/2.379, allocations: 2.935 MB / 0.7918 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009755/2.38, allocations: 82.39 kB / 0.7918 GB, free: 10.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003117/2.383, allocations: 3.024 MB / 0.7948 GB, free: 7.703 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00263/2.386, allocations: 1.396 MB / 0.7962 GB, free: 6.625 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006464/2.387, allocations: 107.1 kB / 0.7963 GB, free: 6.543 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005465/2.387, allocations: 0.5331 MB / 0.7968 GB, free: 6.133 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007573/2.395, allocations: 2.847 MB / 0.7996 GB, free: 4.953 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009967/2.405, allocations: 4.845 MB / 0.8043 GB, free: 1.211 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009974/2.415, allocations: 3.755 MB / 0.808 GB, free: 15.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.599e-05/2.415, allocations: 18.09 kB / 0.808 GB, free: 15.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02667/2.442, allocations: 9.118 MB / 0.8169 GB, free: 11.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/2.442, allocations: 32 kB / 0.8169 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/2.442, allocations: 64.91 kB / 0.817 GB, free: 11.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01065/2.453, allocations: 2.474 MB / 0.8194 GB, free: 9.238 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01141/2.464, allocations: 1.049 MB / 0.8204 GB, free: 8.422 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01579/2.48, allocations: 5.403 MB / 0.8257 GB, free: 3.547 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009398/2.489, allocations: 325.5 kB / 0.826 GB, free: 3.277 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001833/2.491, allocations: 263.2 kB / 0.8263 GB, free: 3.031 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.001821/2.493, allocations: 437.6 kB / 0.8267 GB, free: 2.676 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002051/2.495, allocations: 418.6 kB / 0.8271 GB, free: 2.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03296/2.528, allocations: 8.004 MB / 0.8349 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001742/2.528, allocations: 97.52 kB / 0.835 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/2.528, allocations: 0 / 0.835 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/2.529, allocations: 22.94 kB / 0.835 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3749/2.904, allocations: 19.45 MB / 0.854 GB, free: 77.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.87e-05/2.904, allocations: 5.469 kB / 0.854 GB, free: 77.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004877/2.909, allocations: 0.5251 MB / 0.8545 GB, free: 77.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009321/2.918, allocations: 2.426 MB / 0.8569 GB, free: 77.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00111/2.919, allocations: 95.52 kB / 0.857 GB, free: 77.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/2.933, allocations: 7.149 MB / 0.864 GB, free: 74.69 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002348/2.935, allocations: 1.884 MB / 0.8658 GB, free: 73.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02819/2.963, allocations: 12.23 MB / 0.8777 GB, free: 71.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004189/2.967, allocations: 1.084 MB / 0.8788 GB, free: 71.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001665/2.969, allocations: 65.84 kB / 0.8789 GB, free: 71.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004941/2.974, allocations: 207.6 kB / 0.8791 GB, free: 71.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001554/2.976, allocations: 317.8 kB / 0.8794 GB, free: 71.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007147/2.976, allocations: 125 kB / 0.8795 GB, free: 71.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005578/2.982, allocations: 2.151 MB / 0.8816 GB, free: 71.72 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.982, allocations: 3.281 kB / 0.8816 GB, free: 71.72 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008165/2.99, allocations: 1.369 MB / 0.8829 GB, free: 71.72 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.03006/3.02, allocations: 14.8 MB / 0.8974 GB, free: 68.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01927/3.04, allocations: 7.228 MB / 0.9044 GB, free: 68.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/3.04, allocations: 3.375 kB / 0.9044 GB, free: 68.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01077/3.051, allocations: 3.594 MB / 0.908 GB, free: 67.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007838/3.058, allocations: 0.8899 MB / 0.9088 GB, free: 67.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04493/3.103, allocations: 13.91 MB / 0.9224 GB, free: 65.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008847/3.112, allocations: 4.56 MB / 0.9269 GB, free: 63.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006737/3.119, allocations: 2.587 MB / 0.9294 GB, free: 61.48 MB / 458.7 MB Notification: Performance of SimCode: time 1.873e-06/3.119, allocations: 0 / 0.9294 GB, free: 61.48 MB / 458.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_SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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_OpenCircuitCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFMU.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_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o] Error 1